ich benutze Ubuntu 10, bin aber leider was das Benutzen, Installieren und Einrichten von Linux angeht nicht so firm.
Hab Python2.6 und möchte gerne pyusb benutzen. Dafür bin ich mir pyusb-1.0.0-a1 runtergeladen und entpackt. Nun bin ich der Anleitung im pyusb-README gefolgt. D.h. python hatte ich ja schon, hab also noch libusb-1.0.8 runter geladen und laut der enthaltenen INSTALL-Datei installiert (als root). Dann hab ich als root "python setup.py install" im entpackten pyusb ausgeführt.
Jetzt dachte ich bin ich soweit fertig und kann pyusb benutzen. Ev. hab ich hier aber ja schon was falsch gemacht, bin wie gesagt noch nicht so Linux-fit.
Nun wollte ich mich alo langsam an pyusb herantasten und mit dem tutorial beginnen und stecke nun fest, da ich schon der import nicht funktioniert.
Auf der Idle bekomme ich:
Code: Alles auswählen
>>> import usb.core
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import usb.core
ImportError: No module named core
Code: Alles auswählen
Traceback (most recent call last):
File "workspace/myusb.py", line 2, in <module>
import usb.core
ImportError: No module named core
Hab jetzt leider die installations-Konsole schon zu, wie kann ich denn sehen, wo pyusb installiert wurde?
Falls das schon mal hilft, im sys.path hab ich übrigens:
Code: Alles auswählen
>>> import sys
>>> sys.path
['/home/laca', '/usr/bin', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/local/lib/python2.6/dist-packages']
laca