Ask coding questions

← Back to all posts
Trying to run a new large script
SUPERMECHM500

I am trying to run a new operating system that will come in the future.
But a problem occurred. After including the ability to send emails, I am unable to load the display. Also I cannot import smtplib, but i heard ways to add modules to skulpt. "NotImplementedError: smtplib is not yet implemented in Skulpt on line 2*"

Link to repl: https://repl.it/@SUPERMECHM500/MechOSBeta-Visual-Version

Yes, it is called MechOS. It will be a revolutionary operating system for the future. There is a text version, which acts as an API for programs who can use MechOS' tools.

Answered by AllAwesome497 [earned 5 cycles]
View Answer
Voters
jeremiahmuoneke
AllAwesome497
Comments
hotnewtop
AllAwesome497

Ok I got this from someone else much better at this than I, he says since turtle which isnt actually python, it uses skulpt, which is an implementation of python using javascript, u can’t use packages skulpt doesn’t support :/ sorry

timmy_i_chen

This is because our Python Turtle repls use Skulpt, which is python implemented in JavaScript. What this means is that you can't have multiple files (as it is pure JS), and you can't import packages unless it is directly supported by skulpt, hence the error message.

AllAwesome497

Do u have a requirements.txt?

SUPERMECHM500

@AllAwesome497 no I do not, never thought I would need another text file...?

What would I need it for?

AllAwesome497

@SUPERMECHM500 requirement.txt tells repl what packages to install. Try making one and simpley put the word smtplib and see if that works

SUPERMECHM500

@AllAwesome497 Is this a file of the repl or a file in general?

AllAwesome497

@SUPERMECHM500 put it in the repl as a new file. It has to be named exactly that

SUPERMECHM500

@AllAwesome497 And whee do I go to make this new file?

AllAwesome497

@SUPERMECHM500 the plus symbol in the top section of the left side Edit: Also soon as u finish that should see a lot of things downloading in the console as if u did a pip install

SUPERMECHM500

@AllAwesome497 All I see is multiplayer and settings. Perhaps adding an image to your comment?

https://storage.googleapis.com/replit/images/1549547632321_86a9fd8afd525858f08f7eda7caea794.pn

AllAwesome497

@SUPERMECHM500 hmmm u don’t appear to have the files option. Lemme see if I can get someone who knows repl.it pretty well to help

SUPERMECHM500

Problem(s): Smtplib not implemented to Skulpt; Display not loading