I am getting an error when trying to start my ardupilot build.
When I run:
sim_vehicle.py -w
I get the error:
Traceback (most recent call last):
File "/home/mikeyjoyce/ardupilot/Tools/autotest/sim_vehicle.py", line 31, in <module>
from pysim import util
File "/home/mikeyjoyce/ardupilot/Tools/autotest/pysim/util.py", line 16, in <module>
import pexpect
ImportError: No module named pexpect
Which is strange since pexpect is installed on my system which is proved by the following command and output:
pip3 show pexpect
And the output:
Name: pexpect
Version: 4.8.0
Summary: Pexpect allows easy control of interactive console applications.
Home-page: https://pexpect.readthedocs.io/
Author: Noah Spurrier; Thomas Kluyver; Jeff Quast
Author-email: noah@noah.org, thomas@kluyver.me.uk, contact@jeffquast.com
License: ISC license
Location: /home/mikeyjoyce/.local/lib/python3.6/site-packages
Requires: ptyprocess
Traceback (most recent call last):
File "/home/mikeyjoyce/ardupilot/Tools/autotest/sim_vehicle.py", line 31, in <module>
from pysim import util
File "/home/mikeyjoyce/ardupilot/Tools/autotest/pysim/util.py", line 18, in <module>
from pymavlink.rotmat import Vector3, Matrix3
ImportError: No module named pymavlink.rotmat
Yeah, I did that script. I eventually got it working I think @stephendade was correct in my system having python 2 also on the system. I just installed the prereqs for each python version