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

Got an error on first running demo, any idea? #56

Closed
polybahn opened this issue Jul 30, 2016 · 7 comments
Closed

Got an error on first running demo, any idea? #56

polybahn opened this issue Jul 30, 2016 · 7 comments

Comments

@polybahn
Copy link

Line 105,api.py - 2016-07-31 00:23:28,953 - INFO - Creating PTC session for zyy20853
Line 788,connectionpool.py - 2016-07-31 00:23:28,965 - INFO - Starting new HTTPS connection (1): sso.pokemon.com
Line 64,api.py - 2016-07-31 00:23:30,261 - INFO - Coordinates: 47.377938 8.5401898 0.0
Traceback (most recent call last):
File "demo.py", line 385, in
session = poko_session.authenticate(locationLookup=args.location)
File "/Users/MD103/Desktop/pokemon/pokemongo-api/pogo/api.py", line 148, in authenticate
}[self.provider](locationLookup=locationLookup, noop=noop)
File "/Users/MD103/Desktop/pokemon/pokemongo-api/pogo/api.py", line 139, in createPTCSession
noop=noop
File "/Users/MD103/Desktop/pokemon/pokemongo-api/pogo/api.py", line 71, in createPogoSession
location
File "/Users/MD103/Desktop/pokemon/pokemongo-api/pogo/session.py", line 57, in init
self.createApiEndpoint(),
File "/Users/MD103/Desktop/pokemon/pokemongo-api/pogo/session.py", line 85, in createApiEndpoint
req = self.wrapInRequest(payload)
File "/Users/MD103/Desktop/pokemon/pokemongo-api/pogo/session.py", line 116, in wrapInRequest
auth_info=info
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 522, in init
_ReraiseTypeErrorWithFieldName(message_descriptor.name, field_name)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 453, in _ReraiseTypeErrorWithFieldName
six.reraise(type(exc), exc, sys.exc_info()[2])
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 520, in init
copy.MergeFrom(new_val)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 1237, in MergeFrom
"expected %s got %s." % (cls.name, type(msg).name))
TypeError: Parameter to MergeFrom() must be instance of same class: expected AuthTicket got NoneType. for field RequestEnvelope.auth_ticket

@tsujin
Copy link

tsujin commented Jul 30, 2016

Possibly related to Python2.7? I would try running it with Python 3+

@CognitiveDisson
Copy link

CognitiveDisson commented Jul 31, 2016

same issue. In method wrapInRequest self.authTicket have value None. (Python 2.7.11)

@dnsBlah
Copy link
Contributor

dnsBlah commented Jul 31, 2016

just uninstall protobuff
and install the version mentioned in requirements
protobuf==3.0.0b3

@CognitiveDisson
Copy link

pip show protobuf

Metadata-Version: 2.0
Name: protobuf
Version: 3.0.0b3

@CognitiveDisson
Copy link

pip install --user -r requirements.txt - this solved my problem

@dnsBlah
Copy link
Contributor

dnsBlah commented Aug 1, 2016

sorry, i assumed you already did :)
please close your issue as well

@CognitiveDisson
Copy link

CognitiveDisson commented Aug 1, 2016

Solution has been precisely in the --user flag. I am not the author of the issue, I can't close

@polybahn polybahn closed this as completed Aug 1, 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