View Single Post
Old 10-16-2016, 06:42 AM   #911
firefoxxy
Zealot
firefoxxy began at the beginning.
 
Posts: 105
Karma: 10
Join Date: Nov 2012
Location: Germany
Device: Kobo Libra 2
Hello!
I seem to have a problem with the Count Pages plugin: When the plugin counts the pages (that's what it should do) of downloaded fanfic (epubs), it sometimes 'skips' random epubs?

What happens in detail: I use FanFicFare to download stories from different fanfic-sites. Then the FFF calls Count Pages to count the pages of he epubs just downloaded and it puts the counted number of pages as a number in a column. Some time ago I realized that some books have no values in the pages-column. I don't get a result shown, even though the plugin didn't report any errors. The epubs that are not counted vary by size and source. When I start the Count Pages plugin manually to count those without a page number (a handful, never more than ten-twelve at once) it does its job - although even then sometimes it 'skips' one ebook or the other.

edit: I just downloaded another handful of stories. Even though no error message showed, there were some ebooks that had no pages counted. I looked into the details of the Count Pages job and found this:
(It's the last book in this list)
Spoiler:
Code:
Count Page/Word Statistics
DeDRM v6.1.0: In __init__
DeDRM v6.1.0: In load_resources
DeDRM v6.1.0: verdir D:\Calibre Portable\Calibre Settings\plugins\DeDRM\6.1.0
DeDRM v6.1.0: In initialize
-------------------------------
Logfile for book ID 24467 (Lest I Wither)
	Found 42 pages
24467
DeDRM v6.1.0: In __init__
DeDRM v6.1.0: In load_resources
DeDRM v6.1.0: verdir D:\Calibre Portable\Calibre Settings\plugins\DeDRM\6.1.0
DeDRM v6.1.0: In initialize
	Page count: 42.0

-------------------------------
Logfile for book ID 24468 (The Mirror of Maybe)
	Found 405 pages
24468
DeDRM v6.1.0: In __init__
DeDRM v6.1.0: In load_resources
DeDRM v6.1.0: verdir D:\Calibre Portable\Calibre Settings\plugins\DeDRM\6.1.0
DeDRM v6.1.0: In initialize
	Page count: 405.0

-------------------------------
Logfile for book ID 24470 (Both Sides)
	Found 20 pages
24470
DeDRM v6.1.0: In __init__
DeDRM v6.1.0: In load_resources
DeDRM v6.1.0: verdir D:\Calibre Portable\Calibre Settings\plugins\DeDRM\6.1.0
DeDRM v6.1.0: In initialize
	Page count: 20.0

-------------------------------
Logfile for book ID 24469 (School Work)
24469
DeDRM v6.1.0: In __init__
DeDRM v6.1.0: In load_resources
DeDRM v6.1.0: verdir D:\Calibre Portable\Calibre Settings\plugins\DeDRM\6.1.0
DeDRM v6.1.0: In initialize
Traceback (most recent call last):
  File "calibre_plugins.count_pages.jobs", line 141, in do_statistics_for_book
  File "calibre_plugins.count_pages.statistics", line 53, in get_page_count
  File "calibre_plugins.count_pages.statistics", line 88, 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 114, in communicate
WorkerError: Failed to connect to worker process

Calibre and all pplug-ins are up to date. I don't know what is going wrong. Could you maybe help me? Thank you.

Last edited by firefoxxy; 10-16-2016 at 07:49 AM. Reason: updated information: added Count Pages log
firefoxxy is offline   Reply With Quote