Open
Description
Hi, I'm trying to follow along here:
https://dev.3dr.com/advanced-python.html
Logs from solo showing error:
root@3dr_solo:/opt# cd my_python_code/
root@3dr_solo:/opt/my_python_code# virtualenv env
New python executable in env/bin/python
Installing setuptools, pip, wheel...done.
(env)root@3dr_solo:/opt/my_python_code# source ./env/bin/activate
(env)root@3dr_solo:/opt/my_python_code# pip install --no-index ./wheelhouse/* -UI
Ignoring indexes: https://pypi.python.org/simple
Exception:
Traceback (most recent call last):
File "/opt/my_python_code/env/lib/python2.7/site-packages/pip/basecommand.py", line 211, in main
status = self.run(options, args)
File "/opt/my_python_code/env/lib/python2.7/site-packages/pip/commands/install.py", line 282, in run
wheel_cache
File "/opt/my_python_code/env/lib/python2.7/site-packages/pip/basecommand.py", line 272, in populate_requirement_set
wheel_cache=wheel_cache
File "/opt/my_python_code/env/lib/python2.7/site-packages/pip/req/req_install.py", line 213, in from_line
wheel_cache=wheel_cache, constraint=constraint)
File "/opt/my_python_code/env/lib/python2.7/site-packages/pip/req/req_install.py", line 67, in __init__
req = pkg_resources.Requirement.parse(req)
File "/opt/my_python_code/env/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2980, in parse
reqs = list(parse_requirements(s))
File "/opt/my_python_code/env/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2924, in parse_requirements
"version spec")
File "/opt/my_python_code/env/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2889, in scan_list
raise RequirementParseError(msg, line, "at", line[p:])
RequirementParseError: Expected version spec in ./wheelhouse/* at /wheelhouse/*
Here are some logs from my laptop:
(env) Alexs-MacBook-Air:solo alex$ pip freeze > requirements.txt
(env) Alexs-MacBook-Air:solo alex$ pip wheel -r ./requirements.txt --build-option="--plat-name=py27"
/Users/alex/dev/ddc/solo/env/lib/python2.7/site-packages/pip/commands/wheel.py:126: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
cmdoptions.check_install_build_global(options)
Collecting dronekit==2.4.0 (from -r ./requirements.txt (line 1))
Using cached dronekit-2.4.0.tar.gz
Collecting monotonic==0.6 (from -r ./requirements.txt (line 2))
Using cached monotonic-0.6.tar.gz
Collecting pymavlink==1.1.72 (from -r ./requirements.txt (line 3))
Using cached pymavlink-1.1.72.tar.gz
Building wheels for collected packages: dronekit, monotonic, pymavlink
Running setup.py bdist_wheel for dronekit ... done
Stored in directory: /Users/alex/dev/ddc/solo
Running setup.py bdist_wheel for monotonic ... done
Stored in directory: /Users/alex/dev/ddc/solo
Running setup.py bdist_wheel for pymavlink ... done
Stored in directory: /Users/alex/dev/ddc/solo
Successfully built dronekit monotonic pymavlink
(env) Alexs-MacBook-Air:solo alex$ rsync -avz --exclude="*.pyc" --exclude="env" ./ [email protected]:/opt/my_python_code
[email protected]'s password:
building file list ... done
created directory /opt/my_python_code
./
dronekit-2.4.0-py2-none-py27.whl
hello_solo.py
monotonic-0.6-py2-none-py27.whl
pymavlink-1.1.72-py2-none-py27.whl
requirements.txt
sent 1914089 bytes received 136 bytes 294496.15 bytes/sec
total size is 1937897 speedup is 1.01
Metadata
Metadata
Assignees
Labels
No labels