3drobotics / solodevguide

Solo Development Guide (SDG).
http://dev.3dr.com/
40 stars 62 forks source link

Not a supported wheel / No module name drone kit #328

Closed tasarmiento closed 8 years ago

tasarmiento commented 8 years ago

I am receiving both "not supported wheel" and "no module named drop kit" errors when trying to run the hello world example. I've tried a number of suggestions from other posts, but nothing has solved the issue. Any help would be appreciated. Thank you.

Running: solo script run hello world.py

connecting to solo... checking pip... uploading script bundle... ./ ./dronekit-2.9.0-py2-none-any.whl ./helloworld.py ./monotonic-1.2-py2.py3-none-any.whl ./pymavlink-2.0.6-cp27-cp27m-any.whl ./README.md ./requirements.txt ./wheelhouse/ ./wheelhouse/dronekit-2.9.0-py2-none-any.whl ./wheelhouse/monotonic-1.2-py2.py3-none-any.whl ./wheelhouse/pymavlink-2.0.6-cp27-none-macosx_10_11_intel.whl 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 pymavlink-2.0.6-cp27-none-macosx_10_11_intel.whl is not a supported wheel on this platform. running script...

Traceback (most recent call last): File "/log/solo-script/helloworld.py", line 1, in from dronekit import connect ImportError: No module named drone kit

From: solo script pack

checking Internet connectivity... Creating script archive... site packages directory: /var/folders/vw/9k_l47hd5bd5tq3nytg06qlw0000gs/T/tmpzY0WWO/content/env/lib/python2.7/site-packages script is at /var/folders/vw/9k_l47hd5bd5tq3nytg06qlw0000gs/T/tmpWShtBN Requirement already satisfied (use --upgrade to upgrade): wheel in ./env/lib/python2.7/site-packages script is at /var/folders/vw/9k_l47hd5bd5tq3nytg06qlw0000gs/T/tmpa7_cUd Collecting dronekit>=2.0.0 (from -r requirements.txt (line 1)) Using cached dronekit-2.9.0-py2-none-any.whl Saved ./wheelhouse/dronekit-2.9.0-py2-none-any.whl Collecting monotonic==1.2 (from dronekit>=2.0.0->-r requirements.txt (line 1)) Using cached monotonic-1.2-py2.py3-none-any.whl Saved ./wheelhouse/monotonic-1.2-py2.py3-none-any.whl Collecting pymavlink==2.0.6 (from dronekit>=2.0.0->-r requirements.txt (line 1)) Saved ./wheelhouse/pymavlink-2.0.6-cp27-none-macosx_10_11_intel.whl Skipping dronekit, due to already being wheel. Skipping monotonic, due to already being wheel. Skipping pymavlink, due to already being wheel. Creating tarball (solo-script.tar.gz)

tasarmiento commented 8 years ago

UPDATE: Fixed both errors.

Updated the WHEEL file Tag to read "cp27-none-any" And, cleared the pip wheel cache at: ~/Library/Caches/pip Re-ran "solo script pack" Re-ran "solo script run helloworld.py"

Output as expected.