You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ python3 tools/tune.py configs/mmtune/mmdet_asynchb_nevergrad_pso.py configs/mmdet/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py 17s
Traceback (most recent call last):
File "tools/tune.py", line 5, in <module>
import ray
File "/usr/local/lib/python3.7/site-packages/ray/__init__.py", line 91, in <module>
import ray._raylet # noqa: E402
File "python/ray/_raylet.pyx", line 104, in init ray._raylet
File "/usr/local/lib/python3.7/site-packages/ray/exceptions.py", line 5, in <module>
from ray.core.generated.common_pb2 import RayException, Language, PYTHON
File "/usr/local/lib/python3.7/site-packages/ray/core/generated/common_pb2.py", line 37, in <module>
create_key=_descriptor._internal_create_key),
File "/usr/local/lib/python3.7/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
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: