Difference between revisions of "Installation of WeDo Python Support"
From wikidb
(→Fixing a Missing usb.core) |
|||
Line 34: | Line 34: | ||
== Fixing a Missing usb.core == | == Fixing a Missing usb.core == | ||
− | This is | + | This is the symptom. |
<pre> | <pre> | ||
sudo python | sudo python | ||
Line 47: | Line 47: | ||
The problem is an old version of pyusb. It should be 1.0 ore greater. | The problem is an old version of pyusb. It should be 1.0 ore greater. | ||
[http://comments.gmane.org/gmane.comp.python.pyusb.user/687 pyusb fix link] | [http://comments.gmane.org/gmane.comp.python.pyusb.user/687 pyusb fix link] | ||
+ | I found it at: [http://sourceforge.net/projects/pyusb/?source=dlp] | ||
<pre> | <pre> | ||
− | + | unzip pyusb-1.0.0a3.zip | |
− | + | cd pyusb-1.0.0a3/ | |
− | + | sudo python setup.py install | |
− | + | ls /usr/local/lib/python2.7/dist-packages/ | |
− | + | easy-install.pth pyusb-1.0.0a3.egg-info usb wedo-1.0.0-py2.7.egg | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</pre> | </pre> |
Revision as of 09:47, 12 May 2013
Contents
Software Dependancies
Some or all of the following are required.
aptitude install python-pip aptitude install python-dev aptitude install python-usb aptitude install git
Standard install for WeDo Library - Failing
pip install wedo
A possible workaround for the missing CHANGES.rst file.
cd build/wedo/ cat one two three > CHANGES.rst python setup.py install
Workaround install for WeDo Library
git clone git://github.com/itdaniher/WeDoMore.git cd WeDoMore/ sudo python setup.py install
Fixing a Missing usb.core
This is the symptom.
sudo python >>> from wedo import WeDo Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/wedo-1.0.0-py2.7.egg/wedo/__init__.py", line 8, in <module> import usb.core ImportError: No module named core
The problem is an old version of pyusb. It should be 1.0 ore greater. pyusb fix link I found it at: [1]
unzip pyusb-1.0.0a3.zip cd pyusb-1.0.0a3/ sudo python setup.py install ls /usr/local/lib/python2.7/dist-packages/ easy-install.pth pyusb-1.0.0a3.egg-info usb wedo-1.0.0-py2.7.egg