MAVProxy failing to load wp and other modules

1,508 views
Skip to first unread message

Bryan Field-Elliot

unread,
Jun 26, 2014, 11:52:52 AM6/26/14
to drones-...@googlegroups.com
MAVProxy can't seem to load three modules upon startup:

Failed to load module: No module named wp
Failed to load module: No module named rally
Failed to load module: No module named fence

I tried this in three different ways:

1. Install MAVProxy via "pip" on OSX
2. Install MAVProxy via "pip" on Ubuntu
3. Download MAVProxy 1.3.5 tarball onto OSX. Uncomment the line after "allow running without installing". And ran it "locally" (without installing).

In all cases - the above three modules don't load.

Is there something wrong with the current distribution?



Ben Nizette

unread,
Jun 26, 2014, 8:43:39 PM6/26/14
to drones-...@googlegroups.com
Hi Bryan,

Do any modules load?

Those ones appear at first glance to be the only default ones that
need direct access to pymavlink. It should have been pulled down as a
dependency of MAVProxy but maybe that's broken. Open a Python shell
and try "import pymavlink".

Certainly if you're downloading the tarball manually you'll need
pymavlink installed manually too.

Ben.
> --
> You received this message because you are subscribed to the Google Groups
> "drones-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to drones-discus...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Kevin Hester

unread,
Jun 27, 2014, 11:18:16 AM6/27/14
to drones-discuss
Hi Bryan,

I found the problem.  On Ubuntu the following will fix it:

sudo apt-get install python-opencv python-serial python-pyparsing python-numpy python-wxgtk2.8

This is the complete set of projects that mavproxy uses - some of which are implicitly pulled in by other Ubuntu packages, therefore some users might already have these packages 'for free'.  Though the only package I think is absolutely required is python-serial and python-wxgtk2.8 (I could be wrong though).

On OS-X stackoverflow claims that "brew install wxmac" is the package you want to get wxgtk.  (I'll update the droneapi wiki page)

Bryan Field-Elliot

unread,
Jun 27, 2014, 9:51:35 PM6/27/14
to drones-...@googlegroups.com
Ben to answer your other question, yes it appears to me that other modules are loading correctly:

STABILIZE> 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



On Thu, Jun 26, 2014 at 8:30 PM, Bryan Field-Elliot <bryanfie...@gmail.com> wrote:
pymavlink is installed via pip, and successfully imports from a python shell.

$ pip list | grep pymav

pymavlink (1.1.30)


$ python

Python 2.7.5 (default, Mar  9 2014, 22:15:05) 

[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin

Type "help", "copyright", "credits" or "license" for more information.

>>> import pymavlink

>>> 





On Thu, Jun 26, 2014 at 5:43 PM, Ben Nizette <benni...@gmail.com> wrote:

Bryan Field-Elliot

unread,
Jun 27, 2014, 9:51:52 PM6/27/14
to drones-...@googlegroups.com
Thank you!

Ubuntu fix: Worked.  "small_demo.py" executed successfully.

OSX fix: Did not work, even though "brew install wxmac" was successful. :(  to be conquered another day (unless you have more ideas now).  I'm content to have things working in Ubuntu today.

Bryan Field-Elliot

unread,
Jun 27, 2014, 9:53:26 PM6/27/14
to drones-...@googlegroups.com
pymavlink is installed via pip, and successfully imports from a python shell.

$ pip list | grep pymav

pymavlink (1.1.30)


$ python

Python 2.7.5 (default, Mar  9 2014, 22:15:05) 

[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin

Type "help", "copyright", "credits" or "license" for more information.

>>> import pymavlink

>>> 



On Thu, Jun 26, 2014 at 5:43 PM, Ben Nizette <benni...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages