View Single Post
Old 02-05-2023, 04:02 PM   #1606
del.libro
Junior Member
del.libro began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2013
Device: Kindle Paperwhite
Count Pages not storing readability stats

I just migrated my laptop to a new disk. My home folder (I'm on Linux) was copied from the old to the new -- so the calibre folder is the same. Right after I did this, there was an update to Calibre (to version 6.12).

After this, I noticed the plugin was no longer storing the readability states. Books that had the stats already still display it. I can manually add numbers to the columns and they will appear in the book details pane.

Log below. Apparently the "copy_reg" module is missing, or has been removed, or something.

Quote:
For book 'Purity: A Novel - Jonathan Franzen', using format azw3
Worker Launch took: 0.00 seconds
Job: 0 Count Page/Word Statistics finished
Count Page/Word Statistics
do_count_statistics - book_path=/tmp/calibre_6.12.0_tmp_zs3p3yjk/zrmyv7w6_count_pages/15454.azw3, pages_algorithm=3, page_count_mode=Estimate, statistics_to_run=['PageCount', 'WordCount', 'FleschReading', 'FleschGrade', 'GunningFog'], custom_chars_per_page=1880, icu_wordcount=True
do_count_statistics - job started for file book_path=/tmp/calibre_6.12.0_tmp_zs3p3yjk/zrmyv7w6_count_pages/15454.azw3
-------------------------------
Logfile for book ID 15454 (Purity: A Novel - Jonathan Franzen)
Method of counting _page_count_mode=Estimate _download_sources=[]
results= {'PageCount': 733, 'WordCount': 243505}
Found 733 pages
Found 243505 words
15454
Traceback (most recent call last):
File "calibre_plugins.count_pages.jobs", line 211, in do_statistics_for_book
iterator, text_analysis = get_text_analysis(iterator, book_path, nltk_pickle)
File "calibre_plugins.count_pages.statistics", line 324, in get_text_analysis
t = TextAnalyzer(nltk_pickle)
File "calibre_plugins.count_pages.nltk_lite.textanalyze r", line 22, in __init__
self.eng_tokenizer = pickle.loads(eng_tokenizer_pickle)
ModuleNotFoundError: No module named 'copy_reg\r'
do_statistics_for_book: /tmp/calibre_6.12.0_tmp_zs3p3yjk/zrmyv7w6_count_pages/15454.azw3 3 Estimate [] ['PageCount', 'WordCount', 'FleschReading', 'FleschGrade', 'GunningFog'] 1880 True
Page count: 733
Word count using icu_wordcount - trying to count_words
Word count - used count_words: 243505
Word count: 243505
del.libro is offline   Reply With Quote