06-09-2011, 06:55 PM | #46 | |
eBook Junkie
Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
Quote:
|
|
06-11-2011, 08:47 PM | #47 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
A bug in this plugin if only word count is configured:
Code:
Traceback (most recent call last): File "calibre_plugins.count_pages.action", line 56, in count_pages NameError: global name 'is_value_word_col' is not defined Code:
calibre, version 0.8.5 ERROR: Failed to count pages: <b>Failed</b>: Count ePub Pages Count ePub Pages Python function terminated unexpectedly: 'NoneType' object is not iterable Traceback (most recent call last): File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 147, in main return run_entry_point() File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 116, in run_entry_point return getattr(pmod, func)() File "/Users/ldolse/calibredev/heuristics/src/calibre/utils/ipc/worker.py", line 181, in main result = func(*args, **kwargs) File "/Users/ldolse/calibredev/heuristics/src/calibre/utils/ipc/worker.py", line 138, in arbitrary_n return func(*args, **kwargs) File "calibre_plugins.count_pages.jobs", line 53, in do_count_pages TypeError: 'NoneType' object is not iterable Last edited by ldolse; 06-13-2011 at 08:30 AM. |
Advert | |
|
06-12-2011, 08:43 AM | #48 |
Calibre Plugins Developer
Posts: 4,661
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@Idolse - thx for that, between this and the Find Duplicates plugin this is obviously going to be one of those days to try my patience with crappy dev tools...
Will have a new version later. May as well change the MOBI page count algorithm while I am at it to use the MOBI file directly rather than require a conversion. |
06-12-2011, 09:37 AM | #49 |
Calibre Plugins Developer
Posts: 4,661
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.1.1 Released
Changes in this release:
|
06-12-2011, 08:07 PM | #50 |
IOC Chief Archivist
Posts: 3,950
Karma: 53868218
Join Date: Dec 2010
Location: Fruitland Park, FL, USA
Device: Meebook M7, Paperwhite 2021, Fire HD 8+, Fire HD 10+, Lenovo Tab P12
|
I like the word count addition, but I ran into a problem today and I'm not sure where it came from.
Today I updated Plugin Updater, restarted, then updated Count Pages (also with Updater), restarted again. I didn't notice right away, but my Count Pages button was missing from the toolbar. Once I noticed, I went into Preferences > Plugins and tried to open the configuration but it told me I had to restart calbre before configuring. Okay, I restarted again. Same result. Restarted again, this time shutting it down then starting from the icon rather than using the "restart" button. Same result. I didn't pursue the troubleshooting at that point because I was getting ready to update to 0.8.5 anyway, so I just uninstalled 0.8.4 then installed 0.8.5. (Normally I just install over the old one but since I was having problems and other people were having different problems, I figured it couldn't hurt to install clean.) Anyway, once that was done, I started calibre and the button is back where it should be and working perfectly. Thing is, I don't know if it was a problem with the plugin, an updating problem, or a calibre problem, which is why I'm bringing it to you. And no, I didn't try a debug, and since there were no error messages, I have no errors to share. I know, I'm not much help, but I just thought I'd mention what happened. Edited to add: Before I went into Preferences>Plugins, I also went into the toolbar config and the button was not available to add to any toolbars. It wasn't there at all. |
Advert | |
|
06-12-2011, 09:20 PM | #51 |
Calibre Plugins Developer
Posts: 4,661
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@CWatkinsNash - I had forgotten that this plugin is now dependent on 0.8.5, I have just now updated the plugin index and first post to mention that which would have prevented you from installing it.
A plugin disappearing from your toolbar when you know it is installed is a sign it is throwing an error at Calibre startup, you can view the error by starting in debug mode. In this case the error would have been it could not find something in your Calibre 0.8.4 it was depending on. Now you are at 0.8.5 you will have no further issues with your toolbar. |
06-12-2011, 09:27 PM | #52 |
IOC Chief Archivist
Posts: 3,950
Karma: 53868218
Join Date: Dec 2010
Location: Fruitland Park, FL, USA
Device: Meebook M7, Paperwhite 2021, Fire HD 8+, Fire HD 10+, Lenovo Tab P12
|
LOL Well, that explains it! That's what I get for doing my updates backwards from my usual method. I almost always update calibre first. Thanks for the explanation!
|
06-13-2011, 07:09 AM | #53 |
Addict
Posts: 272
Karma: 1050426
Join Date: Feb 2010
Location: California
Device: iPad Mini w/Retina, Kindle 3, Kindle Fire HDX 8.9, & Asus Transformer
|
Since upgrading to 1.1.1 the plug in no longer counts most mobi files I get this error.
Count ePub/Mobi Statistics Failed to initialize plugin: 'F:\\Calibre Portable\\Calibre Settings\\plugins\\Goodreads Covers.zip' Failed to initialize plugin: 'F:\\Calibre Portable\\Calibre Settings\\plugins\\Goodreads Metadata.zip' ------------------------------- Logfile for book ID 21 (Granite Lake Wolves 01: Wolf Signs - MOBI) FAILED TO COUNT PAGES FAILED TO COUNT WORDS 21 Failed to initialize plugin: 'F:\\Calibre Portable\\Calibre Settings\\plugins\\Goodreads Covers.zip' Failed to initialize plugin: 'F:\\Calibre Portable\\Calibre Settings\\plugins\\Goodreads Metadata.zip' Traceback (most recent call last): File "calibre_plugins.count_pages.jobs", line 92, in do_statistics_for_book File "calibre_plugins.count_pages.statistics", line 31, in get_word_count File "calibre_plugins.count_pages.statistics", line 141, in get_mobi_standard_word_count File "calibre_plugins.count_pages.statistics", line 182, in _read_mobi_file UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 1485: invalid start byte It was working before because it had counted the pages (before update), I added word count column but no go. |
06-13-2011, 07:57 AM | #54 |
Calibre Plugins Developer
Posts: 4,661
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
I see from your debug log that you still have installed legacy versions of the Goodreads metadata plugins that no longer work. I would suggest uninstalling both the "Goodreads Covers" and "Goodreads Metadata" plugins. If you cannot do it from the gui, do it from a command line with:
calibre-customize -r "Goodreads Covers" calibre-customize -r "Goodreads Metadata" In regards to your Mobi error, all mobi files are working fine for me. Could you PM me a link to one of the files giving you an error? |
06-13-2011, 08:15 AM | #55 | |
Addict
Posts: 293
Karma: 21022
Join Date: Mar 2011
Location: NL
Device: Sony PRS-650
|
Quote:
While a lot of users use your update plugin, you could maybe add a extra clear warning to users that have installed this plugin (it is not seen on the updater at all!) |
|
06-13-2011, 08:17 AM | #56 |
Member
Posts: 10
Karma: 10
Join Date: Mar 2011
Device: none
|
I didn't realise that the plugin can count the number of the words untill yesterday. But after I configured the plugin, I got this message every time I try to count the words. And it happend with all the books I tryed. With count the pages I don't have any trouble, but I really wanna use the count words.
Traceback (most recent call last): File "site-packages\calibre\gui2\actions\edit_metadata.py", line 495, in do_one_apply File "site-packages\calibre\library\database2.py", line 1907, in set_metadata File "site-packages\calibre\library\database2.py", line 1821, in doit File "site-packages\calibre\library\custom_columns.py", line 461, in set_custom File "site-packages\calibre\library\custom_columns.py", line 480, in _set_custom File "site-packages\calibre\library\custom_columns.py", line 141, in adapt_text AttributeError: 'int' object has no attribute 'decode' |
06-13-2011, 08:26 AM | #57 | |
Calibre Plugins Developer
Posts: 4,661
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
|
|
06-13-2011, 08:28 AM | #58 | |
Calibre Plugins Developer
Posts: 4,661
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
|
|
06-13-2011, 08:35 AM | #59 |
Member
Posts: 10
Karma: 10
Join Date: Mar 2011
Device: none
|
Thank you very much. It was because of the column. I changed the tipe of the column and now it works perfectly. Thanks a lot, I really love this plugin, is the best of all I have installed.
|
06-13-2011, 08:44 AM | #60 |
Calibre Plugins Developer
Posts: 4,661
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@desideria - glad you are now up and running. I am guessing it was of type "text"? I think I allowed you to "choose" text columns then didn't test that, I will fix it in the next release.
|
Tags |
count, count pages, page count, pages, plugin |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Quality Check | kiwidude | Plugins | 1195 | 07-08-2024 02:59 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] Quick Preferences | kiwidude | Plugins | 62 | 03-16-2024 11:47 PM |
[GUI Plugin] Kindle Collections (old) | meme | Plugins | 2070 | 08-11-2014 12:02 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |