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

Donkey UI cannot launch due to protobuf version #1062

Closed
sctse999 opened this issue Nov 22, 2022 · 2 comments · Fixed by #1067
Closed

Donkey UI cannot launch due to protobuf version #1062

sctse999 opened this issue Nov 22, 2022 · 2 comments · Fixed by #1067
Assignees

Comments

@sctse999
Copy link
Contributor

I did a fresh donkey install on Windows 11 with miniconda. For some reason I remove the dependency of pytorch and fastai. As a result, my pip list shows that my protobuf version is 4.x.x

When I launch donkey ui, it fails and shows the stacktrace below:

WARNING:kivy:stderr:     _message.Message._CheckCalledFromGeneratedFile()
 TypeError: Descriptors cannot not be created directly.
WARNING:kivy:stderr: 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.
WARNING:kivy:stderr: 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:
WARNING:kivy:stderr: If you cannot immediately regenerate your protos, some other possible workarounds are:
  1. Downgrade the protobuf package to 3.20.x or lower.
WARNING:kivy:stderr:  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).
WARNING:kivy:stderr:  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

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

I then pinned the protobuf version to 3.20.3 and tried again. Donkey UI launched successfully.

I think we should pin the protobuf version to 3.20.x. Any thoughts?

@sctse999 sctse999 changed the title Donkey UI cannot launch due to protobuf versionn Donkey UI cannot launch due to protobuf version Nov 22, 2022
@DocGarbanzo
Copy link
Contributor

I think we should be doing what you suggest in the windows yaml file.

@sctse999
Copy link
Contributor Author

How about ubuntu and mac yaml? Should we pin them as well?

Let me send a PR afterwards.

@sctse999 sctse999 linked a pull request Nov 30, 2022 that will close this issue
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.

2 participants