-
Notifications
You must be signed in to change notification settings - Fork 119
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
Comments
Possibly related to Python2.7? I would try running it with Python 3+ |
same issue. In method wrapInRequest self.authTicket have value None. (Python 2.7.11) |
just uninstall protobuff |
pip show protobufMetadata-Version: 2.0 |
|
sorry, i assumed you already did :) |
Solution has been precisely in the |
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
The text was updated successfully, but these errors were encountered: