Ask coding questions

← Back to all posts
Why does this code not run?
EclairFarron

Could anyone study the code and tell me why it does not run in Replit? I can locally run it without problems but not in Replit.
Thank you, in advance.

Answered by SixBeeps [earned 5 cycles]
View Answer
Voters
EclairFarron
Comments
hotnewtop
SixBeeps

You need to install the packages that the bot calls for. Just keep running the script, take this name

and run pip install on that package. Keep doing that until it runs or you get a new error.

EclairFarron

Thank you. I thought that it was something about the packages but I was not sure. So, Replit is not taking the requirements.txt.

SixBeeps

@EclairFarron I'm not entirely sure. I'm no Pythonista, but I'd still go through the built-in package manager if you can.

EclairFarron

@SixBeeps Thank you very much for your help. I remade the Repl, then I used the package manager. Now the bot nicely runs. Thanks a lot!