Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

No module named 'telegram' #7

Open
bingbong553 opened this issue Feb 9, 2018 · 8 comments
Open

No module named 'telegram' #7

bingbong553 opened this issue Feb 9, 2018 · 8 comments
Labels

Comments

@bingbong553
Copy link

I have installed everything correctly but every time I type in Telegram API key I get a;

[I] Loading...

Traceback (most recent call last):
File "./setup.py", line 83, in
from telegram.ext import Updater, MessageHandler, Filters
ImportError: No module named 'telegram'
root@DietPi:~/lanGhost#

Could you help me out here old chap?

@xdavidhu
Copy link
Owner

Hey!

setup.py should install the Telegram package if you didn't cancel the requirements install and then restart itself and start the Telegram verification process.

Try restarting the setup.py script after you made sure it installed the python-telegram-bot package.

@nmkmms
Copy link

nmkmms commented Feb 16, 2018

Where the python-telegram-bot must be installed?

@xdavidhu
Copy link
Owner

Yes @nmkmms, the python-telegram-bot package is necessary for lanGhost to work.

@tehmaNoF
Copy link

How to install python-telegram-bot ?

@extbodyan
Copy link

extbodyan commented Feb 24, 2018

@tehmaNoF git clone https://github.com/python-telegram-bot/python-telegram-bot

python setup.py install

git submodule update --init --recursive

@tehmaNoF
Copy link

Hey,
Still says :
File "/root/lanGhost/setup.py", line 83, in
from telegram.ext import Updater, MessageHandler, Filters
ModuleNotFoundError: No module named 'telegram'

@xdavidhu
Copy link
Owner

xdavidhu commented Feb 25, 2018

@tehmaNoF Try installing it with pip3:

pip3 install python-telegram-bot

If that's not working:

python3 -m pip install python-telegram-bot

If you don't have pip3, you can install it with this command:

sudo apt update && sudo apt install python3-pip -y

@ChandraOrbit
Copy link

ChandraOrbit commented Mar 8, 2018

I experienced the same thing.
I tried using Raspberry Pi Zero W

i got error

TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants