cglatot / PokeManager

Uses Python API for Pokemon Go to mass transfer Pokemon
Other
146 stars 31 forks source link

Error on running the .bat #34

Closed Pokem0n2 closed 8 years ago

Pokem0n2 commented 8 years ago

capture i set everything ok just follow your steps, however, when i ran the .bat file, the window didn't show me a main menu like yours. may u figure out where the trouble is & help me fix this issue? many THANX! :-b

cglatot commented 8 years ago

The problem is in your location. Did you correctly set lat/long, or a location recognisable by Google maps?

Pokem0n2 commented 8 years ago

thanks for answering! here is my lat/long "-33.8934, 151.2062"

Pokem0n2 commented 8 years ago

btw, this is a set of coordinates in Australia, and Australia got a Pokemon game server.

cglatot commented 8 years ago

Copy/paste the line from the bat file here (edit out your username/password, but keep the quotes, etc

Pokem0n2 commented 8 years ago

python ".\pogo\demo.py" -a ptc -u "***" -p "***" -l "-33.8934, 151.2062"

cglatot commented 8 years ago

Hmmm, strange - should work from what I can see. What version of Python are you running? And did you install/update the requirements.txt?

Pokem0n2 commented 8 years ago

yup, i think so. that's extremely weird! i installed PY 2.7.12 and used pip command updating the txt already... :-<

cglatot commented 8 years ago

Hmmm I can't see why it isn't working. Try removing the project and redownload from Git?

What OS are you using?

Pokem0n2 commented 8 years ago

can u pack files which can run properly on ur pc into a .rar and send it to me liangxiao38250@hotmail.com? (P.S remember editing out ur account and password)

Pokem0n2 commented 8 years ago

running Win 10 Pro now :-)

oi-io commented 8 years ago

got same error here with a google account:

Creating Google session for xxxxxxx@gmail.com
Starting new HTTPS connection (1): android.clients.google.com
Starting new HTTPS connection (1): android.clients.google.com
Traceback (most recent call last):
  File "demo.py", line 443, in <module>
    session = poko_session.authenticate(args.location)
  File "F:\pokemon\PokeManager\pogo\api.py", line 148, in authenticate
    }[self.provider](locationLookup=locationLookup, noop=noop)
  File "F:\pokemon\PokeManager\pogo\api.py", line 100, in createGoogleSession
    noop=noop
  File "F:\pokemon\PokeManager\pogo\api.py", line 63, in createPogoSession
    location = Location(locationLookup, self.geo_key)
  File "F:\pokemon\PokeManager\pogo\location.py", line 26, in __init__
    self.latitude, self.longitude, self.altitude = self.setLocation(locationLookup)
  File "F:\pokemon\PokeManager\pogo\location.py", line 48, in setLocation
    raise GeneralPogoException('Error in Geo Request')
custom_exceptions.GeneralPogoException: Error in Geo Request

tried a few different coordinates too, same coordinates worked on other cl tools like pokemonGo-bot python2.7.6 on win8 also tried using my own Google map apikey with -g option

Pokem0n2 commented 8 years ago

finally... lol :-) i've found out where the problem is! it didn't work due to my network connection, authentication at sso.pokemon.com or pgorelease.nianticlabs.com may need normal conn. i just closed my VPN and everything rans well since then. DO appreciate ur works and thanks again!

cglatot commented 8 years ago

Thanks for letting me know! Hopefully it can work for others!

Pokem0n2 commented 8 years ago

@oi-io u may try using a VPN before running the .bat, or just shutting down ur VPN if u are using one, and then rerun the .bat again. hope this would help!

oi-io commented 8 years ago

@Pokem0n2, I don't using VPN and I have been running other Pokemon scripts for a few days, they are connecting the same end point so I don't think network is the issue. 多谢! @cglatot I got it around by authenticate without location session = poko_session.authenticate() it's only the transfer function I need to use anyway. Thanks for your input.

Pokem0n2 commented 8 years ago

@oi-io i run pokeminer, IVTool, PG-DesktopMap etc. properly too, using the same node. nevertheless, only PokeManager need to close the VPN, so why not give it a try dude? :-)

oi-io commented 8 years ago

@Pokem0n2 Thanks, but I don't need the location to work.

Pokem0n2 commented 8 years ago

well, i c... u only need PGO API to achieve the transfer function. good luck!

cglatot commented 8 years ago

I removed the need for location in the latest build. It is now optional, and should work without it.

Pokem0n2 commented 8 years ago

@cglatot that's awesome! do appreciate it!