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

No Module named pgoapi.exceptions (Startup Issues

Open zviper13579 opened this issue 10 years ago • 23 comments

Need help starting. This is what I get.

$ python pokecli.py Traceback (most recent call last): File "pokecli.py", line 38, in from pgoapi.exceptions import NotLoggedInException, ServerSideRequestThrottlingException, ServerBusyOrOfflineException ImportError: No module named pgoapi.exceptions

zviper13579 avatar Aug 08 '16 05:08 zviper13579

did u run 'pip install -r requirements.txt' in the virtual environment?

Please follow the installation guide step by step.

jasonliu119 avatar Aug 08 '16 05:08 jasonliu119

I did, I also tried to re download, but got an error: pip install requirements.txt Collecting requirements.txt Could not find a version that satisfies the requirement requirements.txt (from versions: ) No matching distribution found for requirements.txt

zviper13579 avatar Aug 08 '16 05:08 zviper13579

distribution for what library?

jasonliu119 avatar Aug 08 '16 05:08 jasonliu119

After going back into virtual machine and redownloading pip i get the same error

Traceback (most recent call last): File "pokecli.py", line 38, in from pgoapi.exceptions import NotLoggedInException, ServerSideRequestThrottlingException, ServerBusyOrOfflineException ImportError: No module named pgoapi.exceptions

zviper13579 avatar Aug 08 '16 05:08 zviper13579

After virtualenv . and source bin/activate, run pip install -r requirements.txt. please don't use sudo and remember to use -r in that command.

jasonliu119 avatar Aug 08 '16 05:08 jasonliu119

Di you use --recursive when you cloned the repository?

lpy avatar Aug 08 '16 06:08 lpy

Have same error. To me help: sudo apt-get install python-dev After that: pip install -r requirements.txt

Hok1988 avatar Aug 08 '16 06:08 Hok1988

Please use python 2.7, ofcouse using virtualenv and requirements installed

dausruddin avatar Aug 08 '16 06:08 dausruddin

I'm having the same issue (Windows):

"Traceback (most recent call last): File "C:\Users\Username\Documents\GitHub\PokemonGo-Bot\pokecli.py", line 38, in from pgoapi.exceptions import NotLoggedInException, ServerSideRequestThrottlingException, ServerBusyOrOfflineException ImportError: cannot import name ServerSideRequestThrottlingException"

Didn't have any issues before. Uninstalled and retried 3 times, same error.

Ralliekj avatar Aug 08 '16 06:08 Ralliekj

Hi ! Same error here. Launch command in good order (pretty sure). I tried in 3 servers (Debian 8) (in root and not root). Same error each time

There is a paste of my console ouput : http://pastebin.com/nQTg8yHF

I got an error after running pip command, see...

Think-It avatar Aug 08 '16 07:08 Think-It

Oh now I remember how I fixed that error yesterday. Clone dev branch instead of master. Using dev branch solved this issue on my side

dausruddin avatar Aug 08 '16 07:08 dausruddin

Other people and me had exactly the same issue as reported here https://github.com/PokemonGoF/PokemonGo-Bot/issues/2882

MrKaralis avatar Aug 08 '16 08:08 MrKaralis

did you use install.sh?

bruvv avatar Aug 08 '16 08:08 bruvv

Tried with my ubuntu desktop at work. It works...

Dunno what is the issue with debian :(

lucas-sticky avatar Aug 08 '16 08:08 lucas-sticky

@nivong The bot worked flawlessly for me before the change Niantic made last week, yesterday I did a git pull to download he changes that fixed the problem but the bot gave me that error.

MrKaralis avatar Aug 08 '16 08:08 MrKaralis

TL:DR can you also anwser questions ?

bruvv avatar Aug 08 '16 08:08 bruvv

Not very experienced so I only did a git pull to "update" the formerly working bot and didn't know I had to run install.sh after that.

MrKaralis avatar Aug 08 '16 08:08 MrKaralis

I give up

bruvv avatar Aug 08 '16 08:08 bruvv

Ok ty for your friendly efforts.

MrKaralis avatar Aug 08 '16 09:08 MrKaralis

I have the same problem. I used instal.sh. The files pgoapi are there but pokecli.py doesn't seems to find them.

Also, when i -e git+https://github.com/keyphact/pgoapi.git@249d3be7fbbdabc7f9adea17cbc899d6549e47a2#egg=pgoapi (in requirements.txt)

there is the following error : Cloning https://github.com/keyphact/pgoapi.git (to 249d3be7fbbdabc7f9adea17cbc899d6549e47a2) to ./src/pgoapi Could not find a tag or branch '249d3be7fbbdabc7f9adea17cbc899d6549e47a2', assuming commit.

PoubelleLaVie avatar Aug 08 '16 11:08 PoubelleLaVie