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

Bot Google login error: AttributeError: AuthGoogle instance has no attribute '_proxy'

Open Lntnam opened this issue 10 years ago • 36 comments

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

Lntnam avatar Sep 20 '16 09:09 Lntnam

same here and get same error from PokemonGo-Map : Exception message: AuthGoogle instance has no attribute '_proxy'

maybe problem with google API ?

ikariya69 avatar Sep 20 '16 09:09 ikariya69

same here too

farshidhss avatar Sep 20 '16 09:09 farshidhss

same here. i can login with my ptc accounts and the google api key but not login with my google accounts.

krkmastav avatar Sep 20 '16 10:09 krkmastav

There's been a PR in the pgoapi repo fixing this.

DeXtroTip avatar Sep 20 '16 11:09 DeXtroTip

I updated but doesn't seem to fix it

farshidhss avatar Sep 20 '16 12:09 farshidhss

same here, updated but still same problem

youyi1314 avatar Sep 20 '16 13:09 youyi1314

Same problem here, all up to date but same error.

victormx avatar Sep 20 '16 17:09 victormx

The fix hasn't been added to the api yet, only after that we can update the api in the bot.

DeXtroTip avatar Sep 20 '16 17:09 DeXtroTip

may I please have link to the api repo? I am unsure which one it is, thanks.

crvfts avatar Sep 20 '16 19:09 crvfts

pgoapi

DeXtroTip avatar Sep 20 '16 19:09 DeXtroTip

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'

mmixx avatar Sep 20 '16 20:09 mmixx

Same here.

halsafar avatar Sep 20 '16 20:09 halsafar

@mmixx They updated the version needed of gpsoauth in the requirements.txt. Did you upgrade it when testing the mentioned fix?

DeXtroTip avatar Sep 20 '16 21:09 DeXtroTip

Yep... I run ./setup.sh -u first before executing ./run.sh to make sure my copy is updated...

mmixx avatar Sep 20 '16 21:09 mmixx

@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...

mmixx avatar Sep 20 '16 21:09 mmixx

The bot was working fine until I pip install...

Then I started getting this error.

halsafar avatar Sep 20 '16 21:09 halsafar

@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?

DeXtroTip avatar Sep 20 '16 22:09 DeXtroTip

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...

mmixx avatar Sep 20 '16 22:09 mmixx

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.

farshidhss avatar Sep 20 '16 22:09 farshidhss

How to fix: src/pgoapi/pgoapi/auth_google.py lines 58 and 91, remove proxy=self._proxy

claudioferrari avatar Sep 21 '16 07:09 claudioferrari