Skip to content

Unable To Use gplaycli #296

Description

@AliBASE

please help, first time using gplaycli:

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\AliBase\AppData\Local\Programs\Python\Python312\Scripts\gplaycli.exe_main
.py", line 4, in
File "C:\Users\AliBase\AppData\Local\Programs\Python\Python312\Lib\site-packages\gplaycli\gplaycli.py", line 29, in
from gpapi.googleplay import GooglePlayAPI, LoginError, RequestError
File "C:\Users\AliBase\AppData\Local\Programs\Python\Python312\Lib\site-packages\gpapi\googleplay.py", line 14, in
from . import googleplay_pb2, config, utils
File "C:\Users\AliBase\AppData\Local\Programs\Python\Python312\Lib\site-packages\gpapi\googleplay_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "C:\Users\AliBase\AppData\Local\Programs\Python\Python312\Lib\site-packages\google\protobuf\descriptor.py", line 553, in new
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions