Hi!

I have a problem with PyUSB and Python 3:
Everything seems to run fine with Python 2.6, but when I'm using Python
3.1, an ImportError is raised when I try to import any part of PyUSB:

>>> import usb.core
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.1/dist-packages/usb/__init__.py", line
24, in <module>
    from legacy import *
ImportError: No module named legacy

By running "python -v -v" and "python3 -v -v", I found that Python 3 is
not recursing into dist-packages/usb when it's looking for legacy.py,
while 2.6 does.
Is this a bug in the v3 __init__.py or is something wrong with my Python
3 setup?

-- Patrick

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Pyusb-users mailing list
Pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to