Ticket #4307 (closed defect: wontfix)

Opened 8 months ago

Last modified 5 weeks ago

PRS-500 not recognized in 0.6.30

Reported by: reader99 Owned by: kovidgoyal
Priority: major Milestone:
Component: SONY PRS driver Version: trunk
Keywords: prs-500 usb Cc:

Description

When connecting a PRS 500 with Calibre 0.6.30, two errors are presented. The top most one (probably the second one displayed) reads:

ERROR: ERROR: Unhandled exception: <b>Error</b>:Device sent zero bytes

Traceback (most recent call last):

File "site-packages/calibre/gui2/init.py", line 243, in dispatch File "site-packages/calibre/gui2/ui.py", line 799, in device_detected File "site-packages/calibre/devices/prs500/driver.py", line 172, in run_session File "site-packages/calibre/devices/prs500/driver.py", line 612, in card_prefix File "site-packages/calibre/devices/prs500/driver.py", line 172, in run_session File "site-packages/calibre/devices/prs500/driver.py", line 444, in path_properties File "site-packages/calibre/devices/prs500/driver.py", line 415, in _bulk_read File "site-packages/calibre/devices/prs500/driver.py", line 402, in bulk_read_packet File "site-packages/calibre/devices/libusb.py", line 255, in bulk_read

Error: Device sent zero bytes

Clearing that one reveals a second (probably displayed first, but hidden by the second) that reads:

Device is in use by another application:

Underlying error:Failed to set device configuration to: 2. Error code: -9

Traceback (most recent call last):

File "site-packages/calibre/gui2/device.py", line 57, in run File "site-packages/calibre/gui2/device.py", line 195, in _get_device_information File "site-packages/calibre/devices/prs500/driver.py", line 168, in run_session File "site-packages/calibre/devices/prs500/driver.py", line 271, in open

Device Busy?: Device is in use by another application: Underlying error:Failed to set device configuration to: 2. Error code: -9

If I revert back to 0.6.29 without reseting either device, I am able to connect successfully.

Change History

comment:1 Changed 8 months ago by kovidgoyal

this is on what OS?

comment:2 Changed 8 months ago by kovidgoyal

  • Status changed from new to closed
  • Resolution set to fixed

Fixesed in branch trunk. The fix will be in the next release.

comment:3 Changed 8 months ago by stdo

Had the same one here on MacOSX 10.6.2

comment:4 Changed 8 months ago by adstretch

  • Status changed from closed to reopened
  • Resolution fixed deleted

issue is still present in 0.6.31 under snow leopard 10.6.2, even after deleting plist and preferences. Duplicated on 2 computers with the same PRS-500, not an upgraded unit.

comment:5 Changed 8 months ago by kovidgoyal

  • Status changed from reopened to closed
  • Resolution set to worksforme

Works for me on OS X 10.4 with an non upgraded PRS 500. Unfortunately, I don't have 10.6 to test with, but I don't really think it should make a difference. I should note that even if you are not in the US , SONY will upgrade your reader for free and pay for shipping both ways.

comment:6 Changed 8 months ago by reader99

  • Status changed from closed to reopened
  • Resolution worksforme deleted

The original bug was for 10.6.2. (Is it possible to add a trac-custom OS field?) I can confirm that 0.6.32 still has the issue. Clearly, it's not the device driver itself if it works on 10.4, but rather there is a change in the way threading is handled with the python included in Snow Leopard. (Snow Leopard python -V reports "Python 2.6.1", FWIW.)

comment:7 Changed 8 months ago by kovidgoyal

yeah unfortunately I lack an Apple computer capable of running 10.6.2 system to debug on. Without that, this is impossible to debug for me. I would suggest you downgrade to 0.6.29 and stay with it as long as you continue to use the 500 on OS X. Or if you are willing to get your hands dirty, I'll point you to where in the source I think the problems are.

comment:8 Changed 5 weeks ago by kovidgoyal

  • Status changed from reopened to closed
  • Resolution set to wontfix
Note: See TracTickets for help on using tickets.