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

KeyError: 'profile' when running #81

Closed
GhaziBenDahmane opened this issue Jul 22, 2016 · 5 comments
Closed

KeyError: 'profile' when running #81

GhaziBenDahmane opened this issue Jul 22, 2016 · 5 comments

Comments

@GhaziBenDahmane
Copy link

Traceback (most recent call last):
  File "pokecli.py", line 120, in <module>
    main()
  File "pokecli.py", line 114, in main
    bot.start()
  File "/home/xxx/PokemonGo-Bot/bot.py", line 24, in start
    self._setup_api()
  File "/home/xxx/PokemonGo-Bot/bot.py", line 155, in _setup_api
    player = response_dict['responses']['GET_PLAYER']['profile']
KeyError: 'profile'

I'm having this error whenever i'm trying to run the client , every requirement is installed and i'm pretty sure my account's data are correct .
does anyone know where the problem is coming from?

@ztukaz
Copy link

ztukaz commented Jul 22, 2016

['GET_PLAYER']['player_data']
cause profile doesn't exist in the response

@patrik7
Copy link

patrik7 commented Jul 27, 2016

I am having the exact opposite problem pgoapi returns response_dict['responses']['GET_PLAYER']['profile'] while the code expects player_data

@tejado
Copy link
Owner

tejado commented Jul 27, 2016

In which commit version of pgoapi do you have this issue?

@patrik7
Copy link

patrik7 commented Jul 27, 2016

I tried installing and uninstalling pgoapi multiple times, actually, I spent few hours on this. It seems like the protobufs generated in the past, 3 days back (as sudo), were not being overwritten on reinstalls. I am trying a vanila directory with vanila venv. If that works I'll close this ticket.

@patrik7
Copy link

patrik7 commented Jul 27, 2016

It's working! I am good. Thanks tejado

@tejado tejado closed this as completed Jul 29, 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