View Single Post
Old 02-03-2017, 03:10 AM   #1041
BananaTricky
Junior Member
BananaTricky began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2017
Device: Kindle Paperwhite
Quote:
Originally Posted by davidfor View Post
I've tried these books and cannot reproduce the problem. What version of the plugin are you using? The 1.7.0 release, or the beta? And can you try it again. When the prompt to save the count is displayed, press the "View log" button, copy and post the log for me to see.
Hi, it is definitely returning the word count. I'm using the 1.7.0 version and this is the view log:

Count Page/Word Statistics
-------------------------------
Logfile for book ID 11685 (Silver-Tongued Devil)
Goodreads edition has 400 pages
Found 119748 words
11685
Goodreads book url: u'http://www.goodreads.com/book/show/32181510'
Word count using icu_wordcount - trying to count_words
Word count - used count_words: 119748
Word count: 119748

Whereas this is what I get with a book that does return the page count:

Count Page/Word Statistics
-------------------------------
Logfile for book ID 11657 (Wrecking Ball)
Goodreads edition has 310 pages
11657
Goodreads book url: u'http://www.goodreads.com/book/show/33701864'
Traceback (most recent call last):
File "calibre_plugins.count_pages.jobs", line 151, in do_statistics_for_book
File "calibre_plugins.count_pages.statistics", line 76, in get_word_count
File "calibre_plugins.count_pages.statistics", line 92, in _open_epub_file
File "site-packages\calibre\ebooks\oeb\iterator\book.py", line 144, in __enter__
File "site-packages\calibre\ebooks\oeb\iterator\book.py", line 87, in run_extract_book
File "site-packages\calibre\utils\ipc\simple_worker.py", line 229, in fork_job
File "site-packages\calibre\utils\ipc\simple_worker.py", line 122, in communicate
WorkerError: Worker failed

Which looks worse, but I don't know what it's supposed to look like

Alison
BananaTricky is offline   Reply With Quote