Bot Google login error: AttributeError: AuthGoogle instance has no attribute '_proxy'
Expected Behavior
Bot to start normally
Actual Behavior
Unable to start after updating latest dev & master
Your FULL config.json (remove your username, password, gmapkey and any other private info)
http://pastebin.com/PUBmNvnV
Output when issue occurred
http://pastebin.com/uKLC7vQt
Steps to Reproduce
./setup.sh -u then start
Other Information
OS: Branch: both Git Commit: master: fef76945022210f4663c091b55750c57684026ec dev: d1e983f45f4687580c2a305591dd9178477be444 Python Version: 2.7.10
same here and get same error from PokemonGo-Map : Exception message: AuthGoogle instance has no attribute '_proxy'
maybe problem with google API ?
same here too
same here. i can login with my ptc accounts and the google api key but not login with my google accounts.
There's been a PR in the pgoapi repo fixing this.
I updated but doesn't seem to fix it
same here, updated but still same problem
Same problem here, all up to date but same error.
The fix hasn't been added to the api yet, only after that we can update the api in the bot.
may I please have link to the api repo? I am unsure which one it is, thanks.
The fix that they have there still give error... What I've seen was, these two lines:
user_login = perform_master_login(username, password, self.GOOGLE_LOGIN_ANDROID_ID, proxy=self._proxy)
token_data = perform_oauth(None, self._refresh_token, self.GOOGLE_LOGIN_ANDROID_ID, self.GOOGLE_LOGIN_SERVICE, self.GOOGLE_LOGIN_APP,
self.GOOGLE_LOGIN_CLIENT_SIG, proxy=self._proxy)
They've added the proxy=self._proxy on one of the parameters of perform_master_login and perform_oauth which is not accepted on the said functions from lib/python2.7/site-packages/gpsoauth/__init__.py... Below are the defined functions and their allowed arguments:
def perform_master_login(email, password, android_id,
service='ac2dm', device_country='us', operatorCountry='us',
lang='en', sdk_version=17):
def perform_oauth(email, master_token, android_id, service, app, client_sig,
device_country='us', operatorCountry='us', lang='en', sdk_version=17):
When I removed the added argument which is proxy=self._proxy from both functions, I didn't get the error and the bot runs smoothly...
PS. With the mentioned fix from their (pgoapi) repository, here is the error I get when I used it:
user_login = perform_master_login(username, password, self.GOOGLE_LOGIN_ANDROID_ID, proxy=self._proxy)
TypeError: perform_master_login() got an unexpected keyword argument 'proxy'
Same here.
@mmixx They updated the version needed of gpsoauth in the requirements.txt. Did you upgrade it when testing the mentioned fix?
Yep... I run ./setup.sh -u first before executing ./run.sh to make sure my copy is updated...
@DeXtroTip I just found out that there is an updated gpsoauth version 0.4.0... the one that is on requirements.txt is 0.3.0...
The bot was working fine until I pip install...
Then I started getting this error.
@mmixx Yeah, that was the one I was saying. Oh, I thought that it would update anyway since the api needs the 0.4.0 Have you tried the fix now?
Yep... I changed the gpsoauth version on requirements.txt, run ./setup.sh, and then applied the fix posted on pgoapi and it works...
EDIT: Btw, If you don't apply the fix from their github page... it still gives errors...
This was really frustrating! The only solution for me was to manually delete the proxy=self._proxy from this file: src/pgoapi/pgoapi/auth_google.py now bot works fine for me.
How to fix: src/pgoapi/pgoapi/auth_google.py lines 58 and 91, remove proxy=self._proxy