On my Raspberry Pi I installed libusb
and pyusb
via sudo apt-get install libusb-dev python-usb
.
But running some Python code (pyrow, to read data from a rowing machine) gives me this error at import usb.core
:
ImportError: no module named core
This error suggests that I did not install pyusb
properly, so I did it again manually (downloading it and running sudo python setup.py install
), but this did not fix it.
I think the issue might have something to do with the directory /usr/local/lib/python2.7/dist-packages/usb
: on my Ubuntu laptop this folder exists and contains (among others) core.py
, but the folder on the Raspberry Pi seems to be non-existent. ls
in the parent-directory lists the folder, but mounting to it doesn't work...
How do I fix this issue? Do I have to use a specific version of pyusb on the Raspberry Pi?
- Hardware: Raspberry Pi model B
- OS: Raspbian Wheezy (build 2013-02-09)