Die Suche ergab 4 Treffer

von laca
Montag 4. April 2011, 20:09
Forum: Installation/Konfigurieren
Thema: ImportError: No module named core
Antworten: 7
Zugriffe: 3316

Re: ImportError: No module named core

hmm, das wäre eine gute Erklärung, warum ich usb importieren kann, aber usb.core nicht da ist.
Wie kann ich das denn jetzt wieder feststellen?
Bzw. wenn es so ist, wie kann ich denn dann trotzdem pyusb benutzen?
von laca
Montag 4. April 2011, 18:47
Forum: Installation/Konfigurieren
Thema: ImportError: No module named core
Antworten: 7
Zugriffe: 3316

Re: ImportError: No module named core

Ahhh!!! Man man, da merkt man echt, das ich ne längere Zeit nicht programmiert hab...
Also:

Code: Alles auswählen

>>> usb.__file__
'/usr/lib/pymodules/python2.6/usb.so'
aber /usr/lib/pymodules/python2.6 ist doch in meinem path drin?!?
von laca
Montag 4. April 2011, 18:33
Forum: Installation/Konfigurieren
Thema: ImportError: No module named core
Antworten: 7
Zugriffe: 3316

Re: ImportError: No module named core

Ah ja klar. Sorry, vor lauter Ubuntu kam ich gar nicht auf die Idee :lol:
>>> import usb
>>> print usb._file_
Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
print usb._file_
AttributeError: 'module' object has no attribute '_file_'

Hmm und jetzt? Was hab ich denn ...
von laca
Montag 4. April 2011, 18:18
Forum: Installation/Konfigurieren
Thema: ImportError: No module named core
Antworten: 7
Zugriffe: 3316

ImportError: No module named core

Hallo,
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 ...