-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Description
virtualenv packj
. packj/bin/activate
pip install -r requirements.txt
(packj) uzer@smarttop ~/packj $
python3 /home/uzer/packj.git/main.py pypi yt-dlp
Traceback (most recent call last):
File "/home/uzer/packj.git/main.py", line 23, in <module>
from static_util import get_static_proxy_for_language
File "/home/uzer/packj.git/static_util.py", line 4, in <module>
from static_proxy.py_analyzer import PyAnalyzer
File "/home/uzer/packj.git/static_proxy/py_analyzer.py", line 13, in <module>
import proto.python.ast_pb2 as ast_pb2
File "/home/uzer/packj.git/proto/python/ast_pb2.py", line 32, in <module>
_descriptor.EnumValueDescriptor(
File "/home/uzer/packj/lib/python3.8/site-packages/google/protobuf/descriptor.py", line 755, in __new__
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not 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
Metadata
Metadata
Assignees
Labels
No labels