player_data not in response_dict [dev]
This is the log:
Traceback (most recent call last):
File "pokecli.py", line 183, in <module>
main()
File "pokecli.py", line 169, in main
bot.start()
File "D:\New folder\PokemonGo-Bot\pokemongo_bot\__init__.py", line 30, in start
self._setup_api()
File "D:\New folder\PokemonGo-Bot\pokemongo_bot\__init__.py", line 166, in _setup_api
player = response_dict['responses']['GET_PLAYER']['player_data']
KeyError: 'player_data'
Can someone help me take a look at this please. Thanks!
Try a git pull. I had the same issue with a previous version.
My code is latest. Still the same issue. I looked at the dump of response_dict but there is no 'player_data' field, only 'profile'. Tried to change that to match in the code. Didn't work.
Hmm. Are you on master or dev branch ?
I'm on dev. Sorry I forgot to add a tag.
your pgoapi is outdated. try pip install -r requirements.txt
It should be pgoapi-1.1.0 right? I'm still having the error.
Have the same issue. Also have pgoapi-1.1.0.
Are you using Windows or OS X?
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"
Try doing a git clone into a new folder, and redoing pip install Or deleting the pgoapi folder.
Ok, looks like a
pip install --upgrade -r requirements.txt
did the trick.
http://pastebin.com/aL8duZpj
I am having this issue and pip says all is updated
EDIT: renaming the pgoapi folder inside the dev repo allowed it to run correctly.
For anyone who have the same problem, delete whole folder and do git pull