Git Product home page Git Product logo

Comments (13)

rmackay9 avatar rmackay9 commented on August 22, 2024

Unphased,
you've followed all the instructions on this page of course? http://dev.ardupilot.com/wiki/raspberry-pi-via-mavlink/

from mavproxy.

rmackay9 avatar rmackay9 commented on August 22, 2024

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.

unphased avatar unphased commented on August 22, 2024

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.

vmayoral avatar vmayoral commented on August 22, 2024

@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.

unphased avatar unphased commented on August 22, 2024

I'm not using mavlink anymore, but thanks for the clarification.

from mavproxy.

asuhler avatar asuhler commented on August 22, 2024

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.

asuhler avatar asuhler commented on August 22, 2024

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.

gitkosala avatar gitkosala commented on August 22, 2024

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.

tridge avatar tridge commented on August 22, 2024

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.

asuhler avatar asuhler commented on August 22, 2024

@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.

gmorph avatar gmorph commented on August 22, 2024

Closing as original issue is resolved.
Thanks, Grant.

from mavproxy.

thelastpolaris avatar thelastpolaris commented on August 22, 2024

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.

hsuhonghai avatar hsuhonghai commented on August 22, 2024

it's true, it works ([thelastpolaris]

from mavproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.