E
E
Edward2018-05-07 11:26:56
Python
Edward, 2018-05-07 11:26:56

Error import telebot on heroku, what to do?

I wrote a bot in python, it works on the local machine, the telebot library is installed. I'm running on heroku, I get an error related to the telebot library: ModuleNotFoundError: No module named 'telebot'. I included import telebot in the file. Who can tell what is the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick, 2018-05-08
@zdrzhn

this is in your code:
from telebot import types
import telebot
this is what you do in console:
1) pip3 install telebot (pip3 install telebot --upgrade if installed and need new version)
2) pip3 freeze > requirements.txt
3) git push heroku origin (or whatever you have)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question