|
|
#46 | |
|
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 1006620
Join Date: May 2010
Location: USA
Device: Kindle Fire HD, Kindle 4, Kindle PW, Galaxy Tab
|
Quote:
I wish I would have known that, I would have picked the epub version instead. But no worries, when I start big jobs like that I just move on to something else while it is running. Although I am debating whether I want to keep the data, seeing a book has over 20,000 might deter me away from wanting to read it.
__________________
Nyn |
|
|
|
|
|
|
#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. |
|
|
|
|
Enthusiast
|
|
|
|
#48 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,088
Karma: 1211092
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
@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.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#49 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,088
Karma: 1211092
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
v1.1.1 Released
Changes in this release:
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#50 |
|
Evil Hat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,964
Karma: 21580288
Join Date: Dec 2010
Location: Nashville, TN, USA
Device: Sony T1, Acer Iconia A200
|
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.
__________________
"The crap is legion." - MrsJoseph
|
|
|
|
|
|
#51 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,088
Karma: 1211092
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
@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.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#52 | |
|
Evil Hat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,964
Karma: 21580288
Join Date: Dec 2010
Location: Nashville, TN, USA
Device: Sony T1, Acer Iconia A200
|
Quote:
That's what I get for doing my updates backwards from my usual method. I almost always update calibre first. Thanks for the explanation!
__________________
"The crap is legion." - MrsJoseph
|
|
|
|
|
|
|
#53 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 211
Karma: 1023506
Join Date: Feb 2010
Location: California
Device: kindle 3, Fire, Asus Transformer & Fire HD
|
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. |
|
|
|
|
|
#54 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,088
Karma: 1211092
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
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?
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#55 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 294
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!) |
|
|
|
|
|
|
#56 |
|
Junior Member
![]() Posts: 8
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' |
|
|
|
|
|
#57 | |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,088
Karma: 1211092
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
Quote:
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
|
#58 | |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,088
Karma: 1211092
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
Quote:
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
|
#59 |
|
Junior Member
![]() Posts: 8
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.
|
|
|
|
|
|
#60 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,088
Karma: 1211092
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
@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.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [GUI Plugin] Kindle Collections | meme | Plugins | 1853 | 05-18-2013 11:14 AM |
| [GUI Plugin] Quality Check | kiwidude | Plugins | 631 | 05-10-2013 04:10 PM |
| [GUI Plugin] Open With | kiwidude | Plugins | 183 | 04-22-2013 02:25 PM |
| [GUI Plugin] Quick Preferences | kiwidude | Plugins | 20 | 11-05-2012 06:40 PM |
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |