I am getting this error when connecting my kindle, this is after Calibre finished its startup, then I connected the kindle. I assume I am getting this because Calibre isn't finished "reading" my device before the plugin does it's thing:
calibre, version 0.8.0
ERROR: Unhandled exception: <b>UnboundLocalError</b>:local variable 'device_uuid' referenced before assignment
Traceback (most recent call last):
File "calibre_plugins.book_sync.action", line 254, in _on_device_metadata_available
File "calibre_plugins.book_sync.action", line 115, in rebuild_menus
UnboundLocalError: local variable 'device_uuid' referenced before assignment
This is the info when restarting in debug mode:
calibre Debug log
calibre 0.8.0
Windows-7-6.1.7600
Windows
('Windows', '7', '6.1.7600')
Python 2.7.1
Windows: ('7', '6.1.7600', '', 'Multiprocessor Free')
Starting up...
Started up in 5.99800014496
Job: 1 Get device information finished
No details available.
DEBUG: 0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= None
DEBUG: 0.0 USBMS: dirs are: E:\ documents
DEBUG: 12.2 USBMS: scan from root False E:\documents
DEBUG: 15.4 USBMS: count found in cache: 739, count of files in metadata: 739, need_sync: False
DEBUG: 15.4 USBMS: Finished fetching list of books from device. oncard= None
DEBUG: 15.4 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
DEBUG: 15.4 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= cardb
Job: 2 Get list of books on device finished
No details available.
DEBUG: 21.5 USBMS: starting sync_booklists
BOOKSYNC: Metadata available: {'main': {u'device_store_uuid': u'ea994618-710c-4f6f-b99b-609219252e12', u'prefix': 'E:/', u'device_name': u'Amazon Kindle', u'calibre_version': u'0.8.0', u'location_code': 'main', u'last_library_uuid': u'c261bb36-ccf0-486c-8f6a-b0ee45cc5bec', u'date_last_connected': u'2011-05-12T16:53:37.960000+00:00'}}
Traceback (most recent call last):
File "calibre_plugins.book_sync.action", line 254, in _on_device_metadata_available
File "calibre_plugins.book_sync.action", line 115, in rebuild_menus
UnboundLocalError: local variable 'device_uuid' referenced before assignment
DEBUG: 46.5 USBMS: finished sync_booklists
Job: 3 Send metadata to device finished
No details available.
EDIT: I get the same error when connecting to a folder.
Last edited by nynaevelan; 05-12-2011 at 12:59 PM.
Reason: adding more info
|