Hello, I’m following a course and trying to run sim_vehicle.py --map --console
but I get ImportError: No module named future
in response (full output at the end of the post). Before you ask, I’ve tried the following:
pip install future
(already exists, uninstalling and reinstalling didn’t help)
pip -m install future
pip3 install future
pip -U install future
sudo apt install python3-future
As mentioned in the title I’m on parrot-sec which is Debian based, such the other threads which mention Cygwin don’t really apply here, regardless, full error message:
SIM_VEHICLE: Start
SIM_VEHICLE: Killing tasks
SIM_VEHICLE: Starting up at -35.363261,149.165230,584,353 (CMAC)
SIM_VEHICLE: WAF build
SIM_VEHICLE: Configure waf
SIM_VEHICLE: "/home/thodoris/courseRoot/apm/ardupilot/modules/waf/waf-light" "configure" "--board" "sitl"
Setting top to : /home/thodoris/courseRoot/apm/ardupilot
Setting out to : /home/thodoris/courseRoot/apm/ardupilot/build
Autoconfiguration : enabled
Setting board to : sitl
Checking for 'g++' (C++ compiler) : /usr/bin/g++
Checking for 'gcc' (C compiler) : /usr/bin/gcc
Checking for need to link with librt : not necessary
Checking for HAVE_CMATH_ISFINITE : yes
Checking for HAVE_CMATH_ISINF : yes
Checking for HAVE_CMATH_ISNAN : yes
Checking for NEED_CMATH_ISFINITE_STD_NAMESPACE : yes
Checking for NEED_CMATH_ISINF_STD_NAMESPACE : yes
Checking for NEED_CMATH_ISNAN_STD_NAMESPACE : yes
Checking for header endian.h : yes
Checking for header byteswap.h : yes
Checking for program 'python' : /usr/bin/python
Checking for python version >= 2.7.0 : 2.7.18
Checking for program 'python' : /usr/bin/python
Checking for python version >= 2.7.0 : 2.7.18
Source is git repository : yes
Update submodules : yes
Checking for program 'git' : /usr/bin/git
Checking for program 'size' : /usr/bin/size
Benchmarks : disabled
Unit tests : enabled
'configure' finished successfully (1.689s)
SIM_VEHICLE: Building
SIM_VEHICLE: "/home/thodoris/courseRoot/apm/ardupilot/modules/waf/waf-light" "build" "--target" "bin/arducopter"
Waf: Entering directory (grave accent)/home/thodoris/courseRoot/apm/ardupilot/build/sitl'
[4/4] Processing modules/mavlink/message_definitions/v1.0/ardupilotmega.xml
Traceback (most recent call last):
File "/home/thodoris/courseRoot/apm/ardupilot/modules/mavlink/pymavlink/tools/mavgen.py", line 16, in <module>
from pymavlink.generator import mavgen
File "/home/thodoris/courseRoot/apm/ardupilot/modules/mavlink/pymavlink/generator/mavgen.py", line 12, in <module>
from future import standard_library
ImportError: No module named future
mavgen returned 1 error code
Waf: Leaving directory (grave accent)/home/thodoris/courseRoot/apm/ardupilot/build/sitl'
Build failed
-> task in 'mavlink' failed (exit status 1):
{task 140158693864144: mavgen ardupilotmega.xml -> }
''
SIM_VEHICLE: Build failed
SIM_VEHICLE: Killing tasks