Skip to content

update protobuf version #473

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

Merged
merged 1 commit into from
Apr 29, 2022
Merged

Conversation

NicolasM0
Copy link
Contributor

google.protobuf.descriptor_pool don't have enum_types_by_name field in version 3.13.0

When importing mavsdk, I get:

  File "C:\Users\fclav\anaconda3\lib\site-packages\mavsdk\__init__.py", line 7, in <module>
    from .system import System
  File "C:\Users\fclav\anaconda3\lib\site-packages\mavsdk\system.py", line 8, in <module>
    from . import action
  File "C:\Users\fclav\anaconda3\lib\site-packages\mavsdk\action.py", line 5, in <module>
    from . import action_pb2, action_pb2_grpc
  File "C:\Users\fclav\anaconda3\lib\site-packages\mavsdk\action_pb2.py", line 16, in <module>
    from . import mavsdk_options_pb2 as mavsdk__options__pb2
  File "C:\Users\fclav\anaconda3\lib\site-packages\mavsdk\mavsdk_options_pb2.py", line 21, in <module>
    _ASYNCTYPE = DESCRIPTOR.enum_types_by_name['AsyncType']
AttributeError: 'NoneType' object has no attribute 'enum_types_by_name'

Updating protobuf to the last version (3.20.1) fix this issues

_descriptor_pool don't have `enum_types_by_name` field in version 3.13.0
Copy link
Collaborator

@JonasVautherin JonasVautherin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot! 🚀

@JonasVautherin JonasVautherin merged commit 026790d into mavlink:main Apr 29, 2022
@NicolasM0 NicolasM0 deleted the protobuf_version branch April 29, 2022 11:41
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 this pull request may close these issues.

2 participants