MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Kobo Reader (https://www.mobileread.com/forums/forumdisplay.php?f=223)
-   -   New Calibre Kobo Driver allows deleting of Kobo Free books (https://www.mobileread.com/forums/showthread.php?t=85352)

timlegge 05-31-2010 10:32 PM

New Calibre Kobo Driver allows deleting of Kobo Free books
 
Hi

I posted in the Calibre forum (https://www.mobileread.com/forums/showthread.php?t=85226) but you may have missed it.

I have released a plugin for calibre that will allow you to view and delete any books on the device (free, pdf or epub). The details are in the link above. Beware that you must have the 0.6.95 version of calibre.

If it gets some testing it might get into the an upcoming release. Read the details from the link above. I would be interested in hearing of issues.

regards

Tim

marnom 05-31-2010 11:23 PM

As I said on the other thread, works on 0.6.96 on Windows

timlegge 05-31-2010 11:33 PM

Quote:

Originally Posted by marnom (Post 936316)
As I said on the other thread, works on 0.6.96 on Windows

Great, thanks. I did test a little on OSX today and it seems to work there too.

Tim

JBlyth 06-01-2010 07:36 AM

Quote:

Originally Posted by marnom (Post 936299)
So far, it works nicely with calibre-0.6.96 on Windows.

(Sorry to cross-post)

Shouldn't that be 0.6.95???? [Edit] I later found the BETA 0.6.96 solved this issue (NOT the standard version)

Anyway, I get the following error when I try to import the ZIP file. (My OS is WIN 7 64 bit)

ERROR: ERROR: Unhandled exception: <b>ImportError</b>:cannot import name isbytestring

Traceback (most recent call last):
File "site-packages\calibre\gui2\dialogs\config\__init__.py", line 545, in add_plugin
File "site-packages\calibre\customize\ui.py", line 284, in add_plugin
File "site-packages\calibre\customize\ui.py", line 67, in load_plugin
File "<string>", line 341, in <module>
ImportError: cannot import name isbytestring

Cheers
John in Sunny Carnarvon - Western Australia

timlegge 06-01-2010 08:29 AM

Quote:

Originally Posted by JBlyth (Post 936743)
(Sorry to cross-post)

Shouldn't that be 0.6.95????

Anyway, I get the following error when I try to import the ZIP file. (My OS is WIN 7 64 bit)

ERROR: ERROR: Unhandled exception: <b>ImportError</b>:cannot import name isbytestring

Traceback (most recent call last):
File "site-packages\calibre\gui2\dialogs\config\__init__.py", line 545, in add_plugin
File "site-packages\calibre\customize\ui.py", line 284, in add_plugin
File "site-packages\calibre\customize\ui.py", line 67, in load_plugin
File "<string>", line 341, in <module>
ImportError: cannot import name isbytestring

Cheers
John in Sunny Carnarvon - Western Australia

Hi

That is strange. Did you remember to disable the built in driver? I have not seen that error, its an odd one because the built in driver would also use that module. I do have access to a Windows 7 device but it will be later today (or this week) before I can try it.

I assume that you were using the beta driver since you quote the version.

Tim

marnom 06-01-2010 09:57 AM

I used to have that error when I tried the plugin with the stable release, did you dowload the beta one (0.6.95 or higher)?

mylesau 06-01-2010 11:15 AM

Hi Tim,

I'm running Windows 7 (32bit) with Calibre 0.6.96. Books all list correctly with the NEW (1.0.0) plug-in, however when I try to delete a book (either in the database or an added epub file) I get the following error:
--------------------------------------------------------------
coercing to Unicode: need string or buffer, NoneType found

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 256, in delete_books
TypeError: coercing to Unicode: need string or buffer, NoneType found
--------------------------------------------------------------
Thanks for working toward a great plug-in.

Myles.

JBlyth 06-01-2010 11:36 AM

Quote:

Originally Posted by timlegge (Post 936772)
Hi

That is strange. Did you remember to disable the built in driver? I have not seen that error, its an odd one because the built in driver would also use that module. I do have access to a Windows 7 device but it will be later today (or this week) before I can try it.

I assume that you were using the beta driver since you quote the version.

Tim

Hi Tim,

I disabled the "Kobo Reader Reader Interface 1.0.0" before browsing to the kobo_plugin.zip file and clicking ADD. I have tried again, but still received the same error.

It seems there is a beta version 0.6.96 somewhere, but I can't find it on the site as yet....

Cheers again
John in Sunny Carnarvon -Western Australia

timlegge 06-01-2010 11:40 AM

Quote:

Originally Posted by mylesau (Post 937006)
Hi Tim,

I'm running Windows 7 (32bit) with Calibre 0.6.96. Books all list correctly with the NEW (1.0.0) plug-in, however when I try to delete a book (either in the database or an added epub file) I get the following error:
--------------------------------------------------------------
coercing to Unicode: need string or buffer, NoneType found

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 256, in delete_books
TypeError: coercing to Unicode: need string or buffer, NoneType found
--------------------------------------------------------------
Thanks for working toward a great plug-in.

Myles.

Hi

Can you open the zip file for the plugin and look in kobo_plugin.py and let me know what line 256 is? You will need a decent editor like vim or textpad.

For me it looks to be: ContentID = ContentID.replace(self._card_a_prefix, '').

Tim

mylesau 06-01-2010 11:43 AM

Line 256:

Code:

ContentID = ContentID.replace(self._card_a_prefix, '')

JBlyth 06-01-2010 12:02 PM

Quote:

Originally Posted by JBlyth (Post 937035)
Hi Tim,

It seems there is a beta version 0.6.96 somewhere, but I can't find it on the site as yet....

Well, I found the BETA version and I been able to get the new plugin to install OK.

So it seems on Windows 7 64 bit at least the beta 0.6.96 is required.

All the supplied books are listed as promised, but I will leave it until tomorrow to try deleting any as it is well past my bedtime ;-)

Cheers - and thanks for such a dynamic piece of software!
John in Sunny Carnarvon - Western Australia

timlegge 06-01-2010 01:02 PM

Quote:

Originally Posted by mylesau (Post 937048)
Line 256:

Code:

ContentID = ContentID.replace(self._card_a_prefix, '')

Hi

You could try commenting out that line with a # at the beginning of the line and adding the file back into the zip. I will do some research...

Tim

timlegge 06-01-2010 01:05 PM

Quote:

Originally Posted by JBlyth (Post 937084)
Well, I found the BETA version and I been able to get the new plugin to install OK.

So it seems on Windows 7 64 bit at least the beta 0.6.96 is required.

All the supplied books are listed as promised, but I will leave it until tomorrow to try deleting any as it is well past my bedtime ;-)

Cheers - and thanks for such a dynamic piece of software!
John in Sunny Carnarvon - Western Australia

Yes, I should have been clearer. This plugin absolutely REQUIRES the beta version at http://calibre-ebook.com/downloads/betas/. Be aware that from my understanding there is no going back to an earlier version (but I believe the beta is set to become stable soon).

Tim

timlegge 06-01-2010 02:27 PM

Quote:

Originally Posted by mylesau (Post 937006)
Hi Tim,

I'm running Windows 7 (32bit) with Calibre 0.6.96. Books all list correctly with the NEW (1.0.0) plug-in, however when I try to delete a book (either in the database or an added epub file) I get the following error:
--------------------------------------------------------------
coercing to Unicode: need string or buffer, NoneType found

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 256, in delete_books
TypeError: coercing to Unicode: need string or buffer, NoneType found
--------------------------------------------------------------
Thanks for working toward a great plug-in.

Myles.

Try using the attached plugin file. I think I know what is happening. I have a SD card installed and never thought of testing without one

Tim

I removed the copy of the plugin. from this thread. Go to https://www.mobileread.com/forums/showthread.php?t=85226 for the latest copy (it will always be the attached to the first message)

SensualPoet 06-01-2010 07:07 PM

So it deletes the free books ... can I delete them selectively? Can I restore them selectively later? Thanks!


All times are GMT -4. The time now is 07:05 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.