'Error with the random module when launching the telegram bot to the server

I'm trying to run a bot on the Heroku server, but there are difficulties: The bot should start working after the command:

$ heroku ps:scale worker=1

But I get the following message:

»   Warning: heroku update available from 7.53.0 to 7.59.2.
Scaling dynos... !
 !    Couldn't find that process type (worker).

Earlier, in CMD, I prescribed:

$ git push heroku master

And I got the answer that everything is fine except:

remote:        ERROR: Could not find a version that satisfies the requirement random (from versions: none)
remote:        ERROR: No matching distribution found for random
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed

Please help me to sort out the problem.



Solution 1:[1]

Like many languages, Python ships with a standard library that includes a certain amount of basic functionality out of the box. Most of the dependencies in your requirements.txt file are included in this standard library. There is no need to install them yourself. You may remove random module from requirement text file . This should work.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Anupam Singh