06-06-2010, 06:08 PM | #31 |
Enthusiast
Posts: 29
Karma: 10
Join Date: May 2010
Device: kobo
|
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 |
06-06-2010, 06:36 PM | #32 | |
Addict
Posts: 305
Karma: 78651
Join Date: May 2010
Location: New Brunswick, Canada
Device: Kobo, Kobo Wifi, Kobo Touch
|
Quote:
Tim |
|
Advert | |
|
06-07-2010, 12:42 AM | #33 |
Connoisseur
Posts: 97
Karma: 126
Join Date: May 2010
Location: Carnarvon - Western Australia
Device: Kobo, Kobo Touch, Ipaq 214, HTC WildFire Android
|
Sorry about the cross post - I thought this might better in this thread....
Deleting Kobo files from my Kobo Reader works nicely, but I get an error message when I try and delete an EPUB book. I am using .7 and the June 1 Kobo driver. I don't seem to be able to copy the error to the clip board either. All I get when I paste is "Error Communicating with Device". Many thanks John in Sunny Carnarvon - Western Australia |
06-07-2010, 05:52 AM | #34 | |
Addict
Posts: 305
Karma: 78651
Join Date: May 2010
Location: New Brunswick, Canada
Device: Kobo, Kobo Wifi, Kobo Touch
|
Quote:
|
|
06-07-2010, 08:05 AM | #35 | |
Connoisseur
Posts: 97
Karma: 126
Join Date: May 2010
Location: Carnarvon - Western Australia
Device: Kobo, Kobo Touch, Ipaq 214, HTC WildFire Android
|
Quote:
I got the version updated with the kobo_plugin.py file dated 06-06-10. Sadly the problem deleting the EPUB file remains the same. Just in case - I have no SD inserted..... I note that when I use the original default plugin, I was able to delete EPUBs very nicely..... Cheers - and the best of luck! John |
|
Advert | |
|
06-07-2010, 08:15 AM | #36 | |
Addict
Posts: 305
Karma: 78651
Join Date: May 2010
Location: New Brunswick, Canada
Device: Kobo, Kobo Wifi, Kobo Touch
|
Quote:
Is the message the same or are you now seeing a different problem. Tim |
|
06-07-2010, 08:21 AM | #37 |
Connoisseur
Posts: 97
Karma: 126
Join Date: May 2010
Location: Carnarvon - Western Australia
Device: Kobo, Kobo Touch, Ipaq 214, HTC WildFire Android
|
|
06-07-2010, 09:04 AM | #38 | |
Addict
Posts: 305
Karma: 78651
Join Date: May 2010
Location: New Brunswick, Canada
Device: Kobo, Kobo Wifi, Kobo Touch
|
Quote:
Did you remove the old version of the plugin? Also, if possible open the zip file, extract the kobo_plugin.py file and see if line 267 which references a sd card is commented out. It is possible that I uploaded the wrong version of the plugin again. Tim |
|
06-07-2010, 09:15 AM | #39 | |
Connoisseur
Posts: 97
Karma: 126
Join Date: May 2010
Location: Carnarvon - Western Australia
Device: Kobo, Kobo Touch, Ipaq 214, HTC WildFire Android
|
Quote:
Yes, I started off from a complete new install, including removing the folders left in the AppData folder. The line 267 does appear to be commented out.... ContentID = path ContentID = ContentID.replace(self._main_prefix, "file:///mnt/onboard/") # ContentID = ContentID.replace(self._card_a_prefix, "file:///mnt/sd/") # print "ContentID: " + ContentID ImageID = self.delete_via_sql(ContentID, ContentType) Cheers John |
|
06-07-2010, 10:14 AM | #40 | |
Addict
Posts: 305
Karma: 78651
Join Date: May 2010
Location: New Brunswick, Canada
Device: Kobo, Kobo Wifi, Kobo Touch
|
Quote:
Tim |
|
06-07-2010, 10:28 PM | #41 | |
Addict
Posts: 305
Karma: 78651
Join Date: May 2010
Location: New Brunswick, Canada
Device: Kobo, Kobo Wifi, Kobo Touch
|
Quote:
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 |
|
06-07-2010, 11:21 PM | #42 | |
Connoisseur
Posts: 97
Karma: 126
Join Date: May 2010
Location: Carnarvon - Western Australia
Device: Kobo, Kobo Touch, Ipaq 214, HTC WildFire Android
|
Quote:
I was not aware of that small point - I will try and do better in future ;-) I'm looking forward to the update.... Cheers John |
|
06-08-2010, 12:47 AM | #43 |
Connoisseur
Posts: 97
Karma: 126
Join Date: May 2010
Location: Carnarvon - Western Australia
Device: Kobo, Kobo Touch, Ipaq 214, HTC WildFire Android
|
Still having problems deleting EPUBs
Hi Tim,
I tried again - but with a similar error code this time. 1. Added a Book to Calibre from Digital Editions 2. Sent it to the device 3. Removed the Koko Reader 4. Inserted the Kobo Reader 5. Tried a delete 6. Got this slightly different error message 7. Still can't copy the error to the clipboard.... Hope this helps.... Cheers John Last edited by JBlyth; 06-08-2010 at 12:49 AM. Reason: Incorrect image address |
06-08-2010, 02:22 AM | #44 |
Connoisseur
Posts: 97
Karma: 126
Join Date: May 2010
Location: Carnarvon - Western Australia
Device: Kobo, Kobo Touch, Ipaq 214, HTC WildFire Android
|
Stranger and Stranger....
It actually appears that the book has been deleted from the Kobo Reader's "database", but remains both on the Reader (physically) and the in Calibre database on the PC.... [Added later] However, it remains in the metadata.calibre file on the Kobo, I see Hope this points you in the right direction, Tim. Cheers John Last edited by JBlyth; 06-08-2010 at 02:27 AM. Reason: More information for Tim! |
06-08-2010, 09:12 PM | #45 |
Addict
Posts: 305
Karma: 78651
Join Date: May 2010
Location: New Brunswick, Canada
Device: Kobo, Kobo Wifi, Kobo Touch
|
I have attached a new version of the plugin to the first message in this thread (and deleted all the others). It seems to work on both Linux and Windows for my test cases (add-delete, add-eject-connect-delete, save books to disk)...
The only issue I currently know about is that the library does not update the on device status when you delete a book from the device. If this resolves most outstanding issues I may take some time to simplify the code (I guess I will do that either way... Changes in this are mostly related to path separators (linux vs Windows). I also added code to allow the delete to continue if a book is not found in the sqlite database (likely because it was deleted immediately after it was added or at least before the device was disconnected) The path separator issue affected most of the issues. If you see any issues, it would be helpful to know which OS and what the calibre display showed the path to be for the file. Tim Last edited by timlegge; 06-08-2010 at 09:14 PM. Reason: add more info |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New Calibre Kobo Driver allows deleting of Kobo Free books | timlegge | Kobo Reader | 46 | 08-27-2011 10:16 PM |
Updated Kobo driver in Calibre 0.7.5 | timlegge | Kobo Reader | 22 | 06-29-2010 08:14 AM |
Calibre now has Kobo driver ! | taming | Kobo Reader | 18 | 05-27-2010 07:36 PM |
Beta Beta Test of Major New Features | Starson17 | Calibre | 45 | 05-17-2010 10:55 AM |
New Kobo driver bug | Stinger | Calibre | 6 | 05-17-2010 09:47 AM |