View Single Post
Old 06-07-2010, 10:28 PM   #41
timlegge
Addict
timlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than mom
 
Posts: 305
Karma: 78651
Join Date: May 2010
Location: New Brunswick, Canada
Device: Kobo, Kobo Wifi, Kobo Touch
Quote:
Originally Posted by dantaipan View Post
Thanks Tim, I tried the update unfortunately now I get this:

local variable 'ImageID' referenced before assignment

Traceback (most recent call last):
File "site-packages\calibre\gui2\device.py", line 58, in run
File "site-packages\calibre\gui2\device.py", line 308, in _delete_books
File "<string>", line 269, in delete_books
File "<string>", line 227, in delete_via_sql
UnboundLocalError: local variable 'ImageID' referenced before assignment

D
I found the issue. You tried to delete a book that you copied to the device without ejecting the device first and reconnecting it. The driver relies on the kobo to correctly update its database with the required rows but that only happens with a disconnect.

I have added code to address the issue but it needs more review/testing before it is ready for a release. Maybe tomorrow night.

Tim
timlegge is offline   Reply With Quote