Very nasty, when I connect a SONY PRS-t1, PRST2 or PRST3 I get in 50% of the cases the error:
Code:
calibre, version 1.3.0
ERREUR : Erreur: Erreur pendant la communication avec l'appareil connecté
The SONY database is corrupted. Delete the file /Volumes/READER/Sony_Reader/database/books.db on your reader and then disconnect reconnect it. If you are using an SD card, you should delete the file on the card as well. Note that deleting this file will cause your reader to forget any notes/highlights, etc. Underlying error:
Traceback (most recent call last):
File "site-packages/calibre/devices/prst1/driver.py", line 293, in remove_orphaned_records
DatabaseError: database disk image is malformed
Traceback (most recent call last):
File "site-packages/calibre/gui2/device.py", line 85, in run
File "site-packages/calibre/gui2/device.py", line 476, in _books
File "site-packages/calibre/devices/prst1/driver.py", line 163, in books
File "site-packages/calibre/devices/usbms/driver.py", line 248, in books
File "site-packages/calibre/devices/prst1/driver.py", line 246, in sync_booklists
File "site-packages/calibre/devices/prst1/driver.py", line 276, in update_device_database
File "site-packages/calibre/devices/prst1/driver.py", line 320, in remove_orphaned_records
DeviceError: The SONY database is corrupted. Delete the file /Volumes/READER/Sony_Reader/database/books.db on your reader and then disconnect reconnect it. If you are using an SD card, you should delete the file on the card as well. Note that deleting this file will cause your reader to forget any notes/highlights, etc. Underlying error:
Traceback (most recent call last):
File "site-packages/calibre/devices/prst1/driver.py", line 293, in remove_orphaned_records
DatabaseError: database disk image is malformed
This makes calibre unusable for SONY PRS devices.
If I have a look on [URL="http://bazaar.launchpad.net/~kovid/calibre/trunk/view/head:/src/calibre/devices/prst1/driver.py"/devices/prst1/driver.py[/URL] I have the impression that the code should be able to continue to work even if remove_orphaned_records generates an exception.
When I let rebuild the books.db, the SONY PRS generates empty collections/collection database entries. I have added the two databases for an investigation.