Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 05-21-2011, 07:13 PM   #886
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by meme View Post
A new version with a number of bug fixes is available on the first post of this thread (see my signature for the link).

<snip>
The changes include:

- Fixed creating only empty collections when Kindle is reconnected on Windows
- Fixed incorrect number of books in collections when using split character
- Fixed crash of calibre when using Customize to change toolbar icon menu style
- Fixed incorrectly showing error if FONT_FAMILY setting does not exist
- Changed Edit to sort author by Calibre author_sort if available else name defined in Mobi book
- Removed invalid extension warnings to avoid false positives, but left in debug output
- Added warning message if two collection names from Calibre would conflict if prefix/suffix is ignored
- Added error message if no books on device are retrieved from Calibre
- Added error message if no books on device are retrieved from Kindle
- Added title of book in warning message about manually edited Calibre collections instead of code
- Changed displayed pathnames to full paths in correct windows/linux style
- Requires Calibre 0.8.2 or later due to build_bar fix
Thank you for all of your hard work Meme!!
Nyssa is offline  
Old 05-22-2011, 05:28 AM   #887
belfastbiker
Member
belfastbiker began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Oct 2009
Device: iPhone 3GS, Kindle 3, Mac, PC
Went into the new addon to check it was still customise via tag, and got this, hope it helps.




calibre, version 0.8.2
ERROR: Unhandled exception: <b>AttributeError</b>:'Main' object has no attribute 'tool_bar'

Traceback (most recent call last):
File "calibre_plugins.kindle_collections.ui", line 178, in customize
File "site-packages\calibre\customize\__init__.py", line 169, in do_user_config
File "calibre_plugins.kindle_collections.__init__", line 83, in save_settings
File "calibre_plugins.kindle_collections.ui", line 147, in rebuild_menus
AttributeError: 'Main' object has no attribute 'tool_bar'
belfastbiker is offline  
Old 05-22-2011, 06:15 AM   #888
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by belfastbiker View Post
Went into the new addon to check it was still customise via tag, and got this, hope it helps.

calibre, version 0.8.2
ERROR: Unhandled exception: <b>AttributeError</b>:'Main' object has no attribute 'tool_bar'
What version of the plugin are you running? Check the About menu. If not 1.6.2, then you need to ugprade as this error is expected with 0.8.2 and the older versions of the plugin. And make sure you restart calibre after you've added the plugin.

Last edited by meme; 05-22-2011 at 06:22 AM.
meme is offline  
Old 05-22-2011, 07:10 AM   #889
belfastbiker
Member
belfastbiker began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Oct 2009
Device: iPhone 3GS, Kindle 3, Mac, PC
Quote:
Originally Posted by meme View Post
What version of the plugin are you running? Check the About menu. If not 1.6.2, then you need to ugprade as this error is expected with 0.8.2 and the older versions of the plugin. And make sure you restart calibre after you've added the plugin.


1.6.2,

0.8.2.
belfastbiker is offline  
Old 05-22-2011, 08:25 AM   #890
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Can you post the zip file you downloaded? (I'll ask you to remove it once I have it, but I'm curious as to what it contains).

Then can you download and install the plugin again, restart calibre and check again?

I just downloaded it from the first post and double checked looking at the source code - and the tool_bar attribute is definitely not in the files. tool_bar was an item in the old source code that is no longer in 0.8.2 calibre so I replaced it.
meme is offline  
Old 05-22-2011, 10:51 AM   #891
belfastbiker
Member
belfastbiker began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Oct 2009
Device: iPhone 3GS, Kindle 3, Mac, PC
Quote:
Originally Posted by meme View Post
Can you post the zip file you downloaded? (I'll ask you to remove it once I have it, but I'm curious as to what it contains).

Then can you download and install the plugin again, restart calibre and check again?

I just downloaded it from the first post and double checked looking at the source code - and the tool_bar attribute is definitely not in the files. tool_bar was an item in the old source code that is no longer in 0.8.2 calibre so I replaced it.


Sure.
Attached Files
File Type: zip Kindle Collections (1).zip (76.8 KB, 155 views)
belfastbiker is offline  
Old 05-22-2011, 10:52 AM   #892
CRussel
(he/him/his)
CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.
 
CRussel's Avatar
 
Posts: 12,296
Karma: 80074820
Join Date: Jul 2010
Location: Sunshine Coast, BC
Device: Oasis (Gen3),Paperwhite (Gen10), Voyage, Paperwhite(orig), iPad Air M3
Just had the latest version wipe my Collections to zero again. Editing the Kindle version, then trying to import it back into Calibre, net result, a mess.

Honestly, this is a great idea and you've done some good work with it. But I'm giving up until it syncs with the collections on my Kindle to Calibre and Calibre back to Kindle. It takes way too much work to lose that work in a single press of some wrong and unclear button. :-(
CRussel is offline  
Old 05-22-2011, 10:57 AM   #893
belfastbiker
Member
belfastbiker began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Oct 2009
Device: iPhone 3GS, Kindle 3, Mac, PC
Removed plugin, restart Calibre, downloaded addon again, same result at same place.


calibre, version 0.8.2
ERROR: Unhandled exception: <b>AttributeError</b>:'Main' object has no attribute 'tool_bar'

Traceback (most recent call last):
File "calibre_plugins.kindle_collections.ui", line 178, in customize
File "site-packages\calibre\customize\__init__.py", line 169, in do_user_config
File "calibre_plugins.kindle_collections.__init__", line 83, in save_settings
File "calibre_plugins.kindle_collections.ui", line 147, in rebuild_menus
AttributeError: 'Main' object has no attribute 'tool_bar'
belfastbiker is offline  
Old 05-22-2011, 10:59 AM   #894
belfastbiker
Member
belfastbiker began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Oct 2009
Device: iPhone 3GS, Kindle 3, Mac, PC
One thing - even after I REMOVE the plugin, and restart Calibre, the icon for it is STILL there....

Yup, juse tested that again, icon stil there on the toolbar, lets me click into it and all....

Last edited by belfastbiker; 05-22-2011 at 11:01 AM. Reason: Checked twice
belfastbiker is offline  
Old 05-22-2011, 11:47 AM   #895
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by CRussel View Post
Just had the latest version wipe my Collections to zero again. Editing the Kindle version, then trying to import it back into Calibre, net result, a mess.

Honestly, this is a great idea and you've done some good work with it. But I'm giving up until it syncs with the collections on my Kindle to Calibre and Calibre back to Kindle. It takes way too much work to lose that work in a single press of some wrong and unclear button. :-(
Can you describe in detail what you are doing?

What settings are you using?

If you create a custom column and then use Import to that column, then you are 'syncing' the collections from Kindle to Calibre.

If you setup your Settings to 'Create' for that custom column and then hit Create Collections you are 'syncing' your calibre collections to your Kindle.

Or are you doing something else?
meme is offline  
Old 05-22-2011, 11:53 AM   #896
CRussel
(he/him/his)
CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.
 
CRussel's Avatar
 
Posts: 12,296
Karma: 80074820
Join Date: Jul 2010
Location: Sunshine Coast, BC
Device: Oasis (Gen3),Paperwhite (Gen10), Voyage, Paperwhite(orig), iPad Air M3
Quote:
Originally Posted by meme View Post
Can you describe in detail what you are doing?

What settings are you using?

If you create a custom column and then use Import to that column, then you are 'syncing' the collections from Kindle to Calibre.

If you setup your Settings to 'Create' for that custom column and then hit Create Collections you are 'syncing' your calibre collections to your Kindle.

Or are you doing something else?
Apparently. I used the edit directly on Kindle option (sorry, on wrong computer to actually check the exact option name.) Then imported the column into Calibre. It warned me that it would overwrite data in the column (yes, I expected that, since I'd updated the collections on the Kindle since I'd last imported.) And promptly erased all my collections in Calibre, leaving the column blank. It did NOT import my Kindle collections back into Calibre.

This is the second time this has done this, previous was a couple of versions ago (Calibre was at 7.58or so, if I remember correctly. IAC, before 8.x.)
CRussel is offline  
Old 05-22-2011, 12:04 PM   #897
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by CRussel View Post
Apparently. I used the edit directly on Kindle option (sorry, on wrong computer to actually check the exact option name.) Then imported the column into Calibre. It warned me that it would overwrite data in the column (yes, I expected that, since I'd updated the collections on the Kindle since I'd last imported.) And promptly erased all my collections in Calibre, leaving the column blank. It did NOT import my Kindle collections back into Calibre.

This is the second time this has done this, previous was a couple of versions ago (Calibre was at 7.58or so, if I remember correctly. IAC, before 8.x.)
Ok, so it failed to import your collections from the Kindle, or failed to update the column information correctly. If you run import again now (or whenever you get a chance), are the entries still blank but you know (via Edit Collections or on the Kindle) that there are collections on the Kindle? If its repeatable, could you run the program in debug mode and then PM me the output?

I will do some testing on this again this week, but I haven't changed any of the import code in a while.
meme is offline  
Old 05-22-2011, 12:10 PM   #898
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by belfastbiker View Post
One thing - even after I REMOVE the plugin, and restart Calibre, the icon for it is STILL there....

Yup, juse tested that again, icon stil there on the toolbar, lets me click into it and all....
That doesn't sound like a plugin error, more like a calibre or install error.

The plugin file you attached is the correct version - and it does not contain the tool_bar attribute. You can delete the zip file from your earlier post (to avoid anyone accidentally downloading it).

If you delete the plugin, then the icon should not be there, and you certainly shouldn't be able to run it.

If you are on Windows, the plugin file is just stored in C:\Users\YOURNAME\AppData\Roaming\calibre\plugins\

If you go to that directory (using your username), the 'Kindle Collections.zip' file should be gone if you delete the plugin. If its still there, you can delete it yourself, then restart calibre and see if the icon/plugin is gone. (There is a Kindle Collections.json file which contains your Customization settings which you can leave there).
meme is offline  
Old 05-22-2011, 12:11 PM   #899
CRussel
(he/him/his)
CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.
 
CRussel's Avatar
 
Posts: 12,296
Karma: 80074820
Join Date: Jul 2010
Location: Sunshine Coast, BC
Device: Oasis (Gen3),Paperwhite (Gen10), Voyage, Paperwhite(orig), iPad Air M3
Fortunately, it did not get a chance to erase what was on the Kindle, so this time (as opposed to previous), I didn't have to start all over. (With 300+ books on the Kindle, it's a bit of a pain.<G>)

I moved to a different computer to make sure there wasn't any legacy (central shared Calibre database on my Windows Home Server.) Used import on this computer, and got the Kindle collections back into Calibre. Now set to Create for your Collections plugin, and that seems to be working. What I am going to avoid completely is directly editing the Kindle collections file. That seems to be what triggers the issue. Plus it's a royal pain to do anyway, so better to do all the manipulation in Calibre.
CRussel is offline  
Old 05-22-2011, 12:47 PM   #900
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
The plugin wouldn't have erased your collections on the Kindle anyway in this situation. If you did a Create with a blank column, it would have left all the collections as Kindle only (unless you unchecked that box). And there is always the restore collections from the last create/edit. But I can understand your concern

I'll test out editing/importing. Technically it shouldn't make any difference, but that's what bugs are

Yep, best to edit directly in Calibre and run Create. Edit was mainly added for people who didn't use or want to use Calibre to organize their collections, although it should still work fine. Appreciate the feedback. Hopefully I can figure out what the issue is - and at the very least I should be able to add a check that the plugin has actually read collections from the Kindle before proceeding with the import.
meme is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Kindle Collections (Update) NiLuJe Plugins 475 05-23-2025 08:22 AM
Kindle Collections plugin JosephWebber Plugins 1 08-21-2017 11:44 AM
[GUI Plugin] WebOS Kindle-Import CranstD Plugins 0 01-24-2012 03:36 PM
Finding and using Kindle Collections Plugin djchapple Plugins 2 08-03-2011 10:06 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 04:22 AM.


MobileRead.com is a privately owned, operated and funded community.