xdavidhu / lanGhost

👻 A LAN dropbox chatbot controllable via Telegram
MIT License
353 stars 60 forks source link

No module named 'telegram' #7

Open bingbong553 opened 6 years ago

bingbong553 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

Where the python-telegram-bot must be installed?

xdavidhu commented 6 years ago

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

tehmaNoF commented 6 years ago

How to install python-telegram-bot ?

extbodyan commented 6 years ago

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

python setup.py install

git submodule update --init --recursive

tehmaNoF commented 6 years ago

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

xdavidhu commented 6 years ago

@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 commented 6 years ago

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

i got error

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