Comments (13)
Unphased,
you've followed all the instructions on this page of course? http://dev.ardupilot.com/wiki/raspberry-pi-via-mavlink/
from mavproxy.
I know that sitl requires the map, maybe there are some additional packages listed here?
http://dev.ardupilot.com/wiki/setting-up-sitl-on-linux/
from mavproxy.
Yes I have followed the instructions. Everything listed in that tutorial works fine, but it does not touch upon the GUI related stuff.
I don't need any of the GUI stuff, but I want to test it. So, it is not helpful that all I get is Failed to load module: No module named map
. Can you tell me what the next step is in finding out what happened to these modules?
from mavproxy.
@unphased I believe the modules are programmed for Desktop Linux (@rmackay9 correct me if i'm mistaken please). I also tried it in the BeagleBone (running a Ubuntu FS) and in OS X.The modules are not loadable.
If you wish to get something specific you probably need to implement a module for the Rpi.
from mavproxy.
I'm not using mavlink anymore, but thanks for the clarification.
from mavproxy.
I have a similar problem with a module I developed. It works perfectly in Ubuntu desktop, but it will not load on a raspberry pi. I have confirmed that the module is in the correct directory and that all the dependencies are installed, but I cannot get even a simple script that prints "hi" whenever telemetry data is received to load. I receive the following error:
module list
STABILIZE> log: log transfer
param: parameter handling
relay: relay handling
tuneopt: tuneopt command handling
arm: arm/disarm handling
mode: mode handling
calibration: calibration handling
rc: rc command handling
auxopt: auxopt command handling
misc: misc commands
cmdlong: cmdlong handling
battery: battery commands
output: output control
module load rabbit
STABILIZE> Failed to load module: No module named rabbit
I have confirmed that the command above works on my Ubuntu desktop. I am unable to find any differences between the imported libraries and code structure of my code vs the code of modules that do load on the pi, i.e. "mavlink_battery.py". I actually copied the code from "mavlink_battery.py" and just modified it for my purposes. Is there any known reason why it would be unable to find/load a module specifically on a Raspberry Pi? Any suggestions as to how I should go about fixing it? Thanks!
from mavproxy.
I have an update: There's something different about the python environment, more specifically the libraries, on the pi's vs desktop. Any non-standard library that is installed, even when installed using easy_install or pip, doesn't seem to show in the eyes of the module manager. Commenting out all non-standard libraries results in the module loading correctly on the pi's. The ubuntu installs do not seem to be effected by this problem at all. I'll keep trying to isolate the problem.
from mavproxy.
Hi @asuhler , Did you find that solution ? I got the same problem. I can't load my module, even when I try another module like mavproxy_antenna.py.
from mavproxy.
It is almost certainly because of missing base python modules.
Try "set moddebug 2" then "load module antenna" and see what it says
from mavproxy.
@gitkosala @tridge
The problem was in fact a python module. I have no idea why that particular python module would load on other python programs, whereas mavproxy could not load it, but re-installing the package fixed the problem. Comment out imports until the module loads, and check your installation of the python module that didn't load. Also, try re-installing the required packages one by one, and make sure they all install correctly. That's tripped me up a few times in the past. If all fails, uninstall mavproxy and python, including all installed packages, and start over. Good luck! Let me know if you run into more problems!
from mavproxy.
Closing as original issue is resolved.
Thanks, Grant.
from mavproxy.
I found a better solution that doesn't require manual checking and re-installation of python modules. Just install this:
sudo apt-get install python-matplotlib python-serial python-wxgtk2.8 python-lxml
sudo apt-get install python-scipy python-opencv ccache gawk git python-pip python-pexpect
Found it here http://dev.ardupilot.com/wiki/simulation-2/sitl-simulator-software-in-the-loop/setting-up-sitl-on-linux/
Hope it helps
from mavproxy.
it's true, it works ([thelastpolaris]
from mavproxy.
Related Issues (20)
- Using OptiTrack with MAVProxy is giving these errors HOT 1
- Chat module issues & enhancements list HOT 5
- Wrong magic number for 2019/01/01 HOT 1
- Link menu "remove" should show "Connection type" (e.g. udpin, etc)
- Not compatible with Python 3.12 because of deprecated imp module. HOT 1
- graph not working with matplotlib 3.8.0+
- When Running MavProxy Map I get libpng warning: iCCP: known incorrect sRGB profile HOT 1
- Mavproxy Optilink Motive compatability 2.x and 3.x HOT 2
- MAVExplorer map display issue, MacOS
- MAVProxy, with Vicon tracking more than one object.
- python 2.7 fails with NameError HOT 2
- REQUEST_AUTOPILOT_CAPABILITIES: failed because also connected with MP HOT 2
- Run mavproxy as subprocess?
- Chat: Bug report in chat module on loading, unloading and reloading HOT 1
- Chat: The chat module continues to work even after unloading.
- Mavproxy link 1 down Error HOT 2
- KML list doesn't work HOT 11
- mavproxy optitrack
- Siyi: typo in pitch control HOT 1
- MAVproxy >= 1.8.66 causes exception in thread log_writer on exit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mavproxy.