Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named pgoapi.exceptions #3303

Closed
ghost opened this issue Aug 9, 2016 · 3 comments
Closed

ImportError: No module named pgoapi.exceptions #3303

ghost opened this issue Aug 9, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 9, 2016

Curtiss-MacBook-Pro:PokemonGo-Bot curtismcintyre$ python pokecli.py --config ./configs/config.json
Traceback (most recent call last):
File "pokecli.py", line 38, in
from pgoapi.exceptions import NotLoggedInException, ServerSideRequestThrottlingException, ServerBusyOrOfflineException
ImportError: No module named pgoapi.exceptions

How to Fix this?

@KingArsalan14
Copy link

hey i had the same error and i fixed it by writing pip install -r requirements.txt , hope this helps !

@nifloutch
Copy link

Hi, maybe you forgot to run the first line :

$ source bin/activate
$ python pokecli.py

When I do not source the bin/activate file I have the same error

@spencerby28
Copy link

spencerby28 commented Aug 9, 2016

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!

@ghost ghost mentioned this issue Aug 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants