Problem with the "random" library?

Hello, I have my app here on GitHub and when I try to run it on Streamlit Cloud I get this error messages:

ERROR: Could not find a version that satisfies the requirement random (from versions: none)
ERROR: No matching distribution found for random

What am I supposed to do to fix it?

The app did work on Heroku actually (here it is).

Hello @Farquad

I’m pretty sure you don’t need the random line in your requirements.txt, as there is no random package on Pypi to install (Search results · PyPI), it is actually native to Python.
So Streamlit Cloud will error when trying to install it. Heroku might as well have failed installing it but nethertheless continued its deployment since it actually is not blocking the app.

Happy Streamlitin’ :balloon: !

1 Like