G
G
gederuzsk2020-05-07 23:38:08
Python
gederuzsk, 2020-05-07 23:38:08

How to add a package to Heroku?

Good afternoon!
I'm trying to host a simple telegram bot on Heroku.
But it does not work due to the lack of versions of the packages used by my bot.
How to be in such a situation? Is it possible to install the required versions of the packages (most likely not, since the file system is in the cloud storage, it's not Win on the HDD))))) but still)
Thank you!

PS Maybe there are other free options for bot hosting? Free - because this is non-commercial use, but just for fun.

Here is the log of an attempt to push a bot on Heroku.

Enumerating objects: 8, done.
Counting objects: 100% (8/8), done.
Delta compression using up to 6 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (6/6), 519 bytes | 519.00 KiB/s, done.
Total 6 (delta 2), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Found python-3.6.10, removing
remote: -----> Requirements file has been changed, clearing cached dependencies
remote: -----> Installing python-3.8.2
remote: -----> Installing pip
remote: -----> Installing SQLite3


these very lines are the reasons for failure))
remote: -----> Installing requirements with pip
remote:        ERROR: Could not find a version that satisfies the requirement instagram==2.1.0 (from -r /tmp/build_v72fc77750e4a6ae97774648477/requirements.txt (line 1)) (from versions: 1.3.3, 1.3.4)
remote:        ERROR: No matching distribution found for instagram==2.1.0 (from -r /tmp/build_v72fc77750e4a6ae97774648477/requirements.txt (line 1))
remote:  !     Push rejected, failed to compile Python app.


remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to ghdghdghdhrt.
remote:
To https://git.heroku.com/ghdghdghdhrt.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/ghdghdghdhrt.git'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
o5a, 2020-05-08
@gederuzsk

It is possible in requirements.txt instead of the line with "instagram =" to register its path to github, so that it is installed from there

https://github.com/OlegYurchik/pyInstagram/archive/master.zip

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question