-
Notifications
You must be signed in to change notification settings - Fork 186
Description
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:
- Downgrade the protobuf package to 3.20.x or lower.
- 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