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

Problem with latest pymavlink - mavutil #571

Closed
mtbsteve opened this issue Jul 14, 2021 · 5 comments · May be fixed by #889
Closed

Problem with latest pymavlink - mavutil #571

mtbsteve opened this issue Jul 14, 2021 · 5 comments · May be fixed by #889

Comments

@mtbsteve
Copy link

When I import pymavlink with from pymavlink import mavutil
I am getting the following error:

Traceback (most recent call last):
  File "/home/apsync/ws/src/zed_yolo/nodes/zed_ros_to_mavlink.py", line 34, in <module>
    from pymavlink import mavutil
  File "/home/apsync/.local/lib/python3.7/site-packages/pymavlink-2.4.15-py3.7-linux-aarch64.egg/pymavlink/mavutil.py", line 2005, in <module>
    mavlink.MAV_TYPE_DECAROTOR:   mode_mapping_acm,
AttributeError: module 'pymavlink.dialects.v20.ardupilotmega' has no attribute 'MAV_TYPE_DECAROTOR'

I cloned the repro, and built it with python3 setup.py install --user from within the pymavlink directory. No errors or warnings during build.
Any idea anyone? Thanks!

@peterbarker
Copy link
Contributor

peterbarker commented Jul 14, 2021 via email

@peterbarker
Copy link
Contributor

@mtbsteve did you get this fixed?

@mtbsteve
Copy link
Author

Yes I managed to get it working- thanks!

@tmendoza271
Copy link

tmendoza271 commented Sep 21, 2023

On Wed, 14 Jul 2021, mtbsteve wrote: AttributeError: module 'pymavlink.dialects.v20.ardupilotmega' has no attribute 'MAV_TYPE_DECAROTOR'
Update your mavlink definitions. If that's not a possiblity, we can potentially work around this.

@peterbarker What do you mean by "update your mavlink definitions"? I'm having the same issue

@marko-castral
Copy link

marko-castral commented Oct 9, 2023

On Wed, 14 Jul 2021, mtbsteve wrote: AttributeError: module 'pymavlink.dialects.v20.ardupilotmega' has no attribute 'MAV_TYPE_DECAROTOR'
Update your mavlink definitions. If that's not a possiblity, we can potentially work around this.

@peterbarker What do you mean by "update your mavlink definitions"? I'm having the same issue

Looks like this pops on different places. Same issues with different dialect (v10.ardupilotmega) here. MAV_TYPE_VTOL_(TAILSITTER)_QUADROTOR/DUALROTOR have to be renamed accordingly in your lib scripts.

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.

4 participants