Ask coding questions

← Back to all posts
Run and Debugger
imyash0722

Debugger

I have to manually install python packages every time I ran the debugger, it says No module names 'discord' which in my prior projects was preinstalled and had to simply be imported. I cannot find the official discord.py package in the Packages tab

Flask

When I run my code the flask server is supposed to stay up for a while(or so it had and does in my other projects) but in this specific project(for which I wanted to pull and commit using GitHub) the flask server turns off in a blink of an eye and repeats Repl is waking up in the preview.

NOTE:

  • I am still working on this project thus all files might not function properly speaking independently for each file.
  • Though I am certain server.py(the flask file) works(it is called into the main.py, thought I might add that).
  • Since I am unable to run the code for a required amount of time I am unable to test the solution.

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

I cannot find the official discord.py package in the Packages tab

Discord.py has been discontinued. See here: https://gist.github.com/Rapptz/4a2f62751b9600a31a0d3c78100287f1

the flask server turns off in a blink of an eye

That's because the code throws an error and closes the Python process, thus meaning nothing is being hosted on the server.

imyash0722

@SixBeeps Oh okay, so discord.py is completely discontinued. Thank you very much for the quick reply!