NoMore201 / googleplay-api

Google Play Unofficial Python API
Other
409 stars 208 forks source link

Error in protobuf on Import #131

Closed cstayyab closed 3 years ago

cstayyab commented 4 years ago

The following line of code:

from gpapi.googleplay import GooglePlayAPI

generates this error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Development\googleplay-api\gpapi\googleplay.py", line 14, in <module>
    from . import googleplay_pb2, config, utils
  File "D:\Development\googleplay-api\gpapi\googleplay_pb2.py", line 21, in <module>
    create_key=_descriptor._internal_create_key,
AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key'

Following the version of related python packages:

protobuf==3.11.3
protobuf-compiler==1.0.18
gurnec commented 4 years ago

It looks like the protopy compiler from the protobuf-compiler package requires protobuf version 3.12.0 or greater. You should probably upgrade protobuf-compiler too just to be safe.