Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Ray & protobuf version issue #28

Closed
nijkah opened this issue May 26, 2022 · 0 comments · Fixed by #34
Closed

[Bug] Ray & protobuf version issue #28

nijkah opened this issue May 26, 2022 · 0 comments · Fixed by #34

Comments

@nijkah
Copy link
Member

nijkah commented May 26, 2022

$ 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
@nijkah nijkah linked a pull request May 30, 2022 that will close this issue
@nijkah nijkah closed this as completed May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant