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

No non-repeatable submessage field "pokemon_family" #61

Open
pengstrom opened this issue Jul 31, 2016 · 1 comment
Open

No non-repeatable submessage field "pokemon_family" #61

pengstrom opened this issue Jul 31, 2016 · 1 comment

Comments

@pengstrom
Copy link

I'm getting this message when running demo.py:

Traceback (most recent call last):
  File "demo.py", line 385, in <module>
    session = poko_session.authenticate(locationLookup=args.location)
  File "/home/legopelle/webdev/python/gym-rankings-backend/pogo/api.py", line 148, in authenticate
    }[self.provider](locationLookup=locationLookup, noop=noop)
  File "/home/legopelle/webdev/python/gym-rankings-backend/pogo/api.py", line 139, in createPTCSession
    noop=noop
  File "/home/legopelle/webdev/python/gym-rankings-backend/pogo/api.py", line 71, in createPogoSession
    location
  File "/home/legopelle/webdev/python/gym-rankings-backend/pogo/session.py", line 62, in __init__
    self.getInventory()
  File "/home/legopelle/webdev/python/gym-rankings-backend/pogo/session.py", line 216, in getInventory
    self.getProfile()
  File "/home/legopelle/webdev/python/gym-rankings-backend/pogo/session.py", line 249, in getProfile
    res = self.wrapAndRequest(payload)
  File "/home/legopelle/webdev/python/gym-rankings-backend/pogo/session.py", line 153, in wrapAndRequest
    self.parseDefault(res)
  File "/home/legopelle/webdev/python/gym-rankings-backend/pogo/session.py", line 207, in parseDefault
    self.inventory = Inventory(item)
  File "/home/legopelle/webdev/python/gym-rankings-backend/pogo/inventory.py", line 76, in __init__
    if data.HasField("pokemon_family"):
  File "/usr/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 835, in HasField
    raise ValueError(error_msg % field_name)
ValueError: Protocol message has no non-repeated submessage field "pokemon_family"

Is there some setup step I have missed?

@dnsBlah
Copy link
Contributor

dnsBlah commented Aug 1, 2016

I guess you did not receive a valid response from Inventory(item) ?
It's empty or something..

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

2 participants