Problem in running SITL in linux

while setting up sitl in linux as given on [ardupilot site] (http://ardupilot.org/dev/docs/setting-up-sitl-on-linux.html)

after running command : sim_vehicle.py --console --map --aircraft test

Failed to load module: No module named adsb. Use ‘set moddebug 3’ in the MAVProxy console to enable traceback
Loaded module console
Failed to load module: No module named map. Use ‘set moddebug 3’ in the MAVProxy console to enable traceback

Also the map is not coming

please help!!!

looks like an error with mavproxy, try to update it :slight_smile:
sudo pip install -U pymavlink MAVProxy

have you install all mavproxy dependencies ? http://ardupilot.github.io/MAVProxy/html/getting_started/download_and_installation.html

Or are you using a virtualenv ?

Failed to load module: No module named adsb. Use ‘set moddebug 3’ in the MAVProxy console to enable traceback

This one is almost certainly just a awart; you can safely ignore it for
now.

Loaded module console
Failed to load module: No module named map. Use ‘set moddebug 3’ in the MAVProxy console to enable traceback

This is probably missing a dependant library. Please do as the error
message instructs - “set modedebug 3” followed by “module load map”

Hello,
I just had the same problem.
I had a “fresh” Ubuntu install (16.04) with python 3 only.
Then I followed the steps to run SITL and also checked all the dependencies as khacyr listed.
Still did not work.
So, to find out what was wrong, I issued this command in the mavproxy console window (yes, thank you perterbarker!):
set moddebug 3
and
module load map
this gave me an error with some clues: libjasper.so.1 was missing!
Could not install it “easily” on Ubuntu… apt-get install libjasper-dev did not work
So I installed it directly from a debian package (from here: https://packages.debian.org/jessie/libjasper1 and one of its dependencies that were missing also from here: https://packages.debian.org/jessie/amd64/libjpeg62-turbo)
To install directly, I did

sudo dpkg -i libjpeg62-turbo_1.3.1-12_amd64.deb
sudo dpkg -i libjasper1_1.900.1-debian1-2.4+deb8u3_amd64.deb

and the map works like a charm!

I do not know why this dependency failed to be picked-up… maybe the devs could include them somewhere?

Just would like to register here to try to help the next guy.

Cheers!

2 Likes

Hello,
Mavproxy is python2 only. That why it will failed.

Yeah, I forgot to mention I had installed python 2.7 so in my case, it did not fail because of that. It failed because I did not have the 2 libraries (libjasper1 and libjpeg62-turbo)…

Cheers

Try downloading MAVProxy for python 2 rather than python 3, by typing python -m pip install MAVProxy. The script uses python 2 by default and pip takes 3 in case you have both 2 and 3 on your system

Yep I was using a virtualenv, and deactivating it solved for me

I did the same but getting the below as the error. Can you please help with this?
ModuleCmd_Load.c(208):ERROR:105: Unable to locate a modulefile for ‘map’