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

ImportError: cannot import name 'mavtest' from 'pymavlink' #880

Open
Winston1408 opened this issue Nov 29, 2023 · 1 comment
Open

ImportError: cannot import name 'mavtest' from 'pymavlink' #880

Winston1408 opened this issue Nov 29, 2023 · 1 comment

Comments

@Winston1408
Copy link

Hello,
I get the following error. Can someone please help?

python mavtester.py --device=/dev/ttyAMA0 --baudrate=57600

Traceback (most recent call last):
File "/home/winston/Desktop/pymavlink/examples/mavtester.py", line 8, in
from pymavlink import mavtest, mavutil
ImportError: cannot import name 'mavtest' from 'pymavlink'

@shancock884
Copy link
Contributor

Hi @Winston1408,
It seems that mavtest.py is not a part of the installed pymavlink package, but rather it exists locally within the examples directory alongside mavtester.py.

I believe that replacing this line in mavtester.py:

from pymavlink import mavtest, mavutil

with:

import mavtest
from pymavlink import mavutil

could do the trick....

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