Open ReedsHorton opened 6 years ago
Interestingly enough when I run the helloword.py
example from the solo dev guide as expalined here it works almost fully (a couple errors that do not seem to effect functionality).
reeds-mbp:helloworld ReedHorton$ solo script run helloworld.py
connecting to solo...
checking pip...
uploading script bundle...
./
./requirements.txt
./README.md
./wheelhouse/
./wheelhouse/future-0.15.2-py2-none-any.whl
./wheelhouse/pymavlink-2.0.6-py2-none-any.whl
./wheelhouse/dronekit-2.9.1-py2-none-any.whl
./wheelhouse/monotonic-1.2-py2.py3-none-any.whl
./helloworld.py
Not deleting env/bin
New python executable in env/bin/python
Installing setuptools, pip, wheel...done.
cp: can't stat '/usr/lib/python2.7/site-packages/greenlet*': No such file or directory
Ignoring indexes: https://pypi.python.org/simple
Processing ./wheelhouse/dronekit-2.9.1-py2-none-any.whl
Processing ./wheelhouse/future-0.15.2-py2-none-any.whl
Processing ./wheelhouse/monotonic-1.2-py2.py3-none-any.whl
Processing ./wheelhouse/pymavlink-2.0.6-py2-none-any.whl
Installing collected packages: pymavlink, future, monotonic, dronekit
Successfully installed dronekit-2.9.1 future-0.15.2 monotonic-1.2 pymavlink-2.0.6
running script...
ERROR LOADING MAVNATIVE - falling back to python implementation
Connecting to udpin:0.0.0.0:14550...
>>> PreArm: Need 3D Fix
>>> APM:Copter solo-1.3.1 (7e9206cc)
>>> PX4: 5e693274 NuttX: d48fa307
>>> Frame: QUAD
>>> PX4v2 00320019 31355105 36333436
>>> PreArm: Need 3D Fix
Vehicle state:
Global Location: LocationGlobal:lat=0.0,lon=0.0,alt=-4.05
Global Location (relative altitude): LocationGlobalRelative:lat=0.0,lon=0.0,alt=-4.05
Local Location: LocationLocal:north=None,east=None,down=None
Attitude: Attitude:pitch=-0.0487823411822,yaw=-2.17772245407,roll=-3.11577582359
Velocity: [0.089999999999999997, 0.01, -0.14000000000000001]
Battery: Battery:voltage=15.479,current=0.83,level=61
Last Heartbeat: 0.100144
Heading: 235
Groundspeed: 0.0
Airspeed: 0.0
Mode: LOITER
Is Armable?: False
Armed: False
Done.
Hi all, I am trying to run my Solo 3DR via the SOLO CLI tool and having some issues. When I try to run scripts from the dronekit-python/examples directory I get ImportErrors. Sorry for the block of text below but I'm hoping the more information the better. I am running Mac OSX 13.6. This is my first time using dronekit so perhaps I am simply doing something wrong. If I am inside the /simple_goto directory and run
solo script run simple_goto.py
I get the following output:If I run from the dronekit-python directory I get this output/errors:
There are a couple other issues I have had which may or may not be related. When I try and package the script I get an error with pip version control/babel 2.0 where it suggests I update pip to 18.1 but as you can see pip is already version 18.1
Finally I thought maybe I needed to update the solo but couldn't do that either:
I have versions: