View Single Post
Old 11-15-2006, 01:32 AM   #24
William Moates
Zealot
William Moates began at the beginning.
 
Posts: 107
Karma: 35
Join Date: Oct 2006
Location: Greensboro, NC
Device: Sony Librie / Sony Clie / Sony Reader
my error messages

Ok, here's the errors I got from libprs500-0.2:

Code:
VeeTechV1:/sw/bin wdmoates$ prs500.py info
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/Current/bin/prs500.py", line 290, in <module>
    main()
  File "/Library/Frameworks/Python.framework/Versions/Current/bin/prs500.py", line 183, in main
    dev.open()
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/libprs500/communicate.py", line 196, in open
    version = self._bulk_read(24, data_type=USBProtocolVersion)[0].version
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/libprs500/communicate.py", line 289, in _bulk_read
    packet = bulk_read_packet(data_type=data_type, size=packet_size)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/libprs500/communicate.py", line 281, in bulk_read_packet
    data = data_type(self.handle.bulkRead(PRS500Device.PRS500_BULK_IN_EP, size))
usb.USBError: usb_bulk_read: An error occured during read (see messages above)
I upgraded to libprs500-0.2.1, and here's the errors I get:

Code:
VeeTechV1:/sw/bin wdmoates$ prs500.py info
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/Current/bin/prs500.py", line 290, in <module>
    main()
  File "/Library/Frameworks/Python.framework/Versions/Current/bin/prs500.py", line 183, in main
    dev.open()
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/libprs500/communicate.py", line 192, in open
    version = self._bulk_read(24, data_type=USBProtocolVersion)[0].version
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/libprs500/communicate.py", line 286, in _bulk_read
    packet = bulk_read_packet(data_type=data_type, size=packet_size)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/libprs500/communicate.py", line 278, in bulk_read_packet
    data = data_type(self.handle.bulkRead(PRS500Device.PRS500_BULK_IN_EP, size))
usb.USBError: usb_bulk_read: An error occured during read (see messages above)
Still getting the error with bulk_read_packet. This is my fault, because I didn't get the error message to you sooner.

However, I did have some other successes:

Only Python 2.3 comes with Mac OS X versions 10.3 and 10.4, and Apple's documentation on it is sketchy. I first tried using Fink to upgrade, where I had to install xfree86 to upgrade to Python 2.5. The second time, I found out Python's website had Mac installers for Python 2.5 (you can find them here ), so I did that on my second Mac, which made things much easier.

In both cases, I've gotten libusb and pyUSB to install without much problem--they're mostly idiot-proof.

Here's the libprs500 commands which perform without error:

prs500.py
prs500.py --version
(when unplugged) prs500.py info

When I use these commands, I get the same bulk_read_packet error I mentioned above:

prs500.py info
prs500.py df
prs500.py cat
prs500.py ls

If you need more info, let me know.
William Moates is offline   Reply With Quote