PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

ImportError: No module named pgoapi.exceptions

Open Benji26 opened this issue 10 years ago • 5 comments

Expected Behavior

hi, i have this problem when starting on debian:

root@raspberrypi:/home/pi/PokemonGo-Bot# python pokecli.py Traceback (most recent call last): File "pokecli.py", line 38, in <module> from pgoapi.exceptions import NotLoggedInException, ServerSideRequestThrottlingException, ServerBusyOrOfflineException ImportError: No module named pgoapi.exceptions

i've ran pip install git+https://github.com/keyphact/pgoapi.git but nothing...

anyone have an idea ? Thank's

Other Information

OS: Debian

Benji26 avatar Aug 08 '16 18:08 Benji26

pip install -r requirements.txt -U

hklcf avatar Aug 08 '16 18:08 hklcf

pip install pgoapi

dymsokei avatar Aug 08 '16 18:08 dymsokei

i got this error too. bot works just fine an hour ago then this showed up

bibibkamal avatar Aug 08 '16 18:08 bibibkamal

I just solve this problem on Ubuntu My solution is switching from python3/pip3 to python2/pip2 It works like a charm

tnlin avatar Aug 09 '16 06:08 tnlin

In this particular case, pip install -r requirements.txt will install all listed package versions to the exact specified version. Most of them work just fine as pip should behave, as they are managed packages of the pypi. The exception here is the pgoapi package, listed on line 3. It is not a pypi package. It is a github repository. Pip handle it badly. In occasions you have to remove the whole repository cloned by pip (rm -rf pgoapi) and do pip install again, i.e. pip install -r requirements.txt

This is a great opportunity to learn python!

spencerby28 avatar Aug 09 '16 16:08 spencerby28