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

Python examples fail with error #212

Open
GlenHenshaw opened this issue Nov 26, 2024 · 1 comment
Open

Python examples fail with error #212

GlenHenshaw opened this issue Nov 26, 2024 · 1 comment

Comments

@GlenHenshaw
Copy link

Description

After installing the Kortex_api-2.6.0.post3-py3-none-any.whl, I would expect the python examples to run successfully. However, I receive the error message

 Traceback (most recent call last):
    File "/Users/glenhenshaw/dev/Kinova-kortex2_Gen3_G3L/api_python/examples/100-Overview/01-devices_routing.py", line 18, in <module>
      from kortex_api.RouterClient import RouterClientSendOptions
    File "/usr/local/lib/python3.9/site-packages/kortex_api/RouterClient.py", line 3, in <module>
      from .autogen.messages import Frame_pb2 as FramePb  # NOQA
    File "/usr/local/lib/python3.9/site-packages/kortex_api/autogen/messages/Frame_pb2.py", line 11, in <module>
      from google.protobuf import descriptor_pb2
    File "/usr/local/lib/python3.9/site-packages/google/protobuf/descriptor_pb2.py", line 1822, in <module>
      FileDescriptorSet = _reflection.GeneratedProtocolMessageType('FileDescriptorSet', (_message.Message,), dict(
  TypeError: Expected a message Descriptor, got Descriptor

Version

Kortex API version 2.6.0

KortexAPI :

Kortex Device :

Steps to reproduce

> git clone https://github.com/Kinovarobotics/Kinova-kortex2_Gen3_G3L
> python3 -m pip install https://artifactory.kinovaapps.com/artifactory/generic-public/kortex/API/2.6.0/kortex_api-2.6.0.post3-py3-none-any.whl
> cd 000-Getting_started
> python3 01-api_creation.py

Expected behavior

I expect the code to execute without errors.

@martinleroux
Copy link
Collaborator

Hi @GlenHenshaw ,
Try the following:
[download the .whl file]
pip install protobuf==3.20 deprecated==1.2.7
pip install </path/to/.whl> --no-deps

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

No branches or pull requests

2 participants