A
A
Alexey Fobius2021-02-26 01:52:59
Python
Alexey Fobius, 2021-02-26 01:52:59

Heroku swears at the library, what should I do?

I push the bot to Heroku, everything is fine, I upload it to the server, I turn it on

but the bot does not work, I go to the Heroku script logs, and I see that it cannot find the library pyowm.utils.config, but this is not a separate library, it is itself pyown, which I do in this case?

UPD:

I tried it heroku run pip install pyowm --app=названиеlater

heroku run pip install pyowm==2.10.0 --app=название
(the error said that there is no such version 3.1.1 , and offered a couple of options, the last one turned out to be 2.10.0).

none of this helped, the error is still:

from pyowm.utils.config import get_default_config
ModuleNotFoundError: No module named 'pyowm.utils.config'

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeniy _, 2021-02-26
@GeneD88

pyown is not a default package, it must first be installed on the server (Heroku)

S
Semyon, 2021-02-26
@Hitreno

I don’t know about Heroku specifically, but on some virtual server you can upload the archive itself with library files and install libs from the file
pip3 install путь_к_либе.tar.gz

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question