![]() |
#1606 | |
Junior Member
![]() 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:
|
|
![]() |
![]() |
![]() |
#1607 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,899
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
did you also copy the configuration folder? That has the settings thet the PI uses to know where to put stuff
|
![]() |
![]() |
Advert | |
|
![]() |
#1608 | |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Oct 2013
Device: Kindle Paperwhite
|
Quote:
I also did the obvious experiment of creating a new column and telling CP to use that, and I got the same behavior and error. If I disable the readability stats (by setting the columns for storing them nothing), no error is thrown, so it seems fairly clear the that missing/mis-referenced copy_reg is the problem. |
|
![]() |
![]() |
![]() |
#1609 | |
Junior Member
![]() Posts: 7
Karma: 64
Join Date: Apr 2014
Location: Homer, Illinois, US
Device: Kindle Paperwhite 2
|
I'm encountering the same problem since the most recent update to the plugin.
Code:
ModuleNotFoundError: No module named 'copy_reg\r' Calibre (6.12) Ubuntu 22.10 Quote:
|
|
![]() |
![]() |
![]() |
#1610 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jan 2023
Device: none
|
Since the last update from 02-03-2023 the readability statistics #fleshease (Flesh-Grad) no longer works and leaves an empty field. Word/page count work as always.
Calibre is 6.12. OS is Ubuntu 22.04. Last edited by arcchancellor; 02-09-2023 at 12:02 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#1611 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,899
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#1612 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49
Karma: 52704
Join Date: Nov 2017
Device: none
|
Same here on Mac OS 12.6.1, Calibre 6.9.0 and Count Pages 1.12.1, using Gunning Fox Index.
|
![]() |
![]() |
![]() |
#1613 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,721
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
I am aware of this Gunning Fog issue, someone raised it on Github too. As I posted in another thread recently I’m not able to do much work on plugins as much as I might like right at the moment with other real world priorities of relocating across the planet. I’m still at least 6 weeks away from my computer allegedly arriving and clearing customs assuming it is in one piece, and just got keys to my new house this week. So my life is chaos at the moment.
I have however tried to make sure that any breaking issues get fixed when I can and this one would fall into that category. It looks like it is a Python compatibility issue from v2 to v3 related to the calibre upgrade. At best I may get an hour or two to look at it this weekend if lucky, no promises at this point however. |
![]() |
![]() |
![]() |
#1614 | |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Oct 2013
Device: Kindle Paperwhite
|
Quote:
|
|
![]() |
![]() |
![]() |
#1615 | |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,721
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
All will no doubt be revealed when I find time to peek at the code again… |
|
![]() |
![]() |
![]() |
#1616 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,721
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Ok quick update on this. That couple of hours I thought I might have didn't happen. I've taken a small peek at it now, and it is definitely not looking like a 5 minute job for me to fix which is all I have to spare right now.
The way I see it there are three options: 1. Try to make the existing NLTK Lite code Python 3 compatible - or at least the subset of it bundled with this plugin. There is only a handful of files in there, so it might not be too hard a job to do. Contributions welcome ![]() 2. Alternatively I put the whole latest NLTK library (which is huge) as part of the plugin. Not keen on doing that, am sure Kovid wouldn't want me too either. 3. Another alternative is to grab just the bits out of the latest NLTK I need. Which would require much analysis and investigation. Then on top of that for options 2 and 3 I may also have to replace the actual analysis code, if there are compatibility issues between the old NLTK Lite and NLTK current. I found what looks to be an interesting wrapper library here for instance: https://pypi.org/project/py-readability-metrics/ TLDR - not going to happen in the next month or so at least until my computer arrives and is operational. Last edited by kiwidude; 02-16-2023 at 08:44 PM. |
![]() |
![]() |
![]() |
#1617 |
Member
![]() Posts: 24
Karma: 10
Join Date: Sep 2020
Device: PC
|
I'm currently having a problem. I installed the Count Pages extension and activated it in FanFicFare. So far no problems. After loading a text with FanFicFare, Count Pages was started automatically and all 5 values were calculated. Currently only pages and words are calculated. Fleshkincaid, Gunnigfog, and Readability remain blank lately. All available updates are installed.
|
![]() |
![]() |
![]() |
#1618 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,115
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#1619 |
Member
![]() Posts: 24
Karma: 10
Join Date: Sep 2020
Device: PC
|
Thanks for the hint.
Unfortunately, my English is bad. I would be grateful for a link to get started. |
![]() |
![]() |
![]() |
#1620 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,899
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
Tags |
count, count pages, page count, pages, plugin |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Quality Check | kiwidude | Plugins | 1247 | 04-18-2025 01:51 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 05:42 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 |