Traceback (most recent call last):
File “/home/odroid/ardupilot/Tools/autotest/sim_vehicle.py”, line 25, in
from pymavlink import mavextra
ImportError: No module named pymavlink
I was wondering if anyone has come across this error or knows what I am needing to do to stop this from happening. Thanks.
I just happened to need the latest version of ardupilot, so i cloned the repo again. After the initial git clone command you need to cd to the ardupilot directory and run:
git submodule update --init --recursive
That will sync and download various submodules need by ardupilot, and I noticed pymavlink was one of them.
when I do either of the commands you say it does not show anything on my screen. I hit enter and then it just goes straight to the next line waiting for another command. Thanks
also after I run sim_vehicle.py -w -v ArduCopter. I get that output still but I forgot to say that I get another screen called ArduCopter and it says stuff and the last line is waiting for connection…
what directory are you running the command from? I need to look into running SITL. Did you have to build ardupilot first? Without submodules the build should have failed.
I’m having this same error. When I try and run git submodule update --init --recursive I get this:
From https://github.com/DroneCAN/libuavcan
* branch 3ef4b88d96466bbcf886f74d0ae169a4c8c1bdb0 -> FETCH_HEAD
Fetching submodule dsdl
fatal: remote error: upload-pack: not our ref 192295c4f9b67f4a20b0eabf74757b6597415f2b
fatal: the remote end hung up unexpectedly
Fetched in submodule path 'modules/uavcan', but it did not contain 3ef4b88d96466bbcf886f74d0ae169a4c8c1bdb0. Direct fetching of that commit failed.
OK, I have run that. Now I don’t get an error mentioning uavcan, just module not found (future or pymavlink, depending on whether I run python3 sim_vehicle from the autotest directory, or just sim_vehicle.py from any other directory).
I think this is a pythonpath issue:
When I run “which python3” I get /usr/bin/python3
When I run “which pip3” I get /usr/local/bin/pip3
How can I move/point pip/pip3 to the same place as python/python3? This is a fresh installation and I’m confused why pip is in /usr/local
Definitely do what python says, I believe it is pip install future
I’m not a python install expert but here is my info. below.
(base) veritas@DESKTOP-V9LAGA3:~/ardupilot$ which python3
/usr/bin/python3
(base) veritas@DESKTOP-V9LAGA3:~/ardupilot$ which pip3
/home/veritas/.local/bin/pip3
Would you push to text file all of your errors and the command used?