[HELP] No module named pgoapi.exceptions - line 38, in <module>
Hi I have this problem...
"Traceback (most recent call last):
File "pokecli.py", line 38, in
After this : pip install -r requirements.txt, I have this error :
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/ly/ylvd8kvn1_zf4_21ldq1smz00000gn/T/pip-build-V34e5q/protobuf-to-dict/
Thanks for help, many users with same problem.
Other Information
OS: OSX Sierra Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here) Python Version: Python 2.7.10
Got the same problem after the last pull. What has changed in pokecli.py or the dir structure??
Yes same problem with line 38. Sorry my english is bad
This is probably caused by #3241
But thats just a guess
No, it works with #3241. Do you run in vitrualenv? Maybe you should backup your config and make clean git clone.
could you paste more of the pip output? afaik #3241 hasn't been merged yet, so unless you're testing that specifically it shouldn't cause this
I will clone it from scratch and try it again.
EDIT: Cloned dev with no extras. Works now
You need to source bin/activate or add it to your launch script.
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!
I try "source bin/activate" but nothing happen, you think problem is here?
After:
virtualenv . && source bin/activate && pip install -r requirements.txt
you must run
./install.sh
finally will work doing
./run.sh
Ok, i try but same things.
(PokemonGo-Bot)plexmediaservermacbookpro15:PokemonGo-Bot Baptiste$ ./run.sh
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
Press any button or wait 20 seconds.Mer 10 aoû 2016 23:29:19 CESTPokebot Stopped.
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
Press any button or wait 20 seconds.
i did manage to bypass this error after pip install -r requirements.txt BUT pip from the bot/scripts folder not from python: Win10:
/c/python27/scripts/pip install -r requirements.txt > checks modules, shows its ok > run > import error /c/user/[...]/PokemonGo-Bot/Scripts/pip install -r requirements.txt > installs > run > ok