|
|
#1906 | |
|
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,942
Karma: 7955879
Join Date: Sep 2020
Device: none
|
Quote:
portable calibre: "C:\CALIBRE_8\Calibre Settings\resources\images\Count Pages\count_pages.png" for calibre main install, on Windows, this would be: "C:\%appdata%\calibre\resources\images\Count Pages\count_pages.png" |
|
|
|
|
|
|
#1907 | |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20
Karma: 25272
Join Date: Apr 2016
Device: None
|
Quote:
|
|
|
|
|
|
|
#1908 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,131
Karma: 150871427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Due to a change in the version of Python in the new calibre beta, there is a warning that comes up when you run calibre in debug mode. If fixed this and I've upped the version to 1.14.5.
Here is the warning and the fix. Code:
calibre_plugins.count_pages.statistics:415: SyntaxWarning: "\D" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\D"? A raw string is also an option. calibre_plugins.count_pages.statistics:416: SyntaxWarning: "\D" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\D"? A raw string is also an option. Code:
get_cbz_page_count(r'''C:\Dev\Tools\eclipse\workspace\_Misc\misery-depot.zip''')
get_cbr_page_count(r'''C:\Dev\Tools\eclipse\workspace\_Misc\misery-depot.cbr''')
|
|
|
|
|
|
#1909 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,828
Karma: 80512154
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
@jswolf please don't take this the wrong way. You're making a mountain out of a molehill here. The warning is in a section of code that is only executed when the plugin is being tested; it's a purely cosmetic message in the calibre log.
|
|
|
|
|
|
#1910 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,131
Karma: 150871427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#1911 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,741
Karma: 13151503
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Because generating a new version only for those 2 warnings when they aren't even an error in the new calibre version doesn't make sense (at least from my point of view).
|
|
|
|
|
|
#1912 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 50,428
Karma: 178402706
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
For me, given that at this time those errors are cosmetic only, it makes sense to fix the issue when a new release is made for other reasons. Looking at previous release dates, Python 3.15.0 is due for release on 2026-Oct-01 and that it is unlikely that calibre 10 would be released until the version is at least 3.15.2, we have a fair while before this becomes a real issue.
|
|
|
|
|
|
#1913 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,131
Karma: 150871427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#1914 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,131
Karma: 150871427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
It could be that someday these warnings could change into an error. Why not have it fixed before it becomes a problem?
|
|
|
|
|
|
#1915 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,307
Karma: 16800000
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
deleted
Last edited by jackie_w; 01-24-2026 at 05:25 AM. |
|
|
|
|
|
#1916 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19
Karma: 10658
Join Date: Apr 2018
Device: Samsung S25 Ultra
|
Since Calibre Version 9 creates a Pages column, I notice that the page count generated by this plugin is frequently much different that the Calibre page count. For example an epub has 364 pages per the plugin and 241 per Calibre. This is not a big deal since I realize that both are estimates but wonder if there are plans to modify the plugin to near-match Calibre's estimate.
|
|
|
|
|
|
#1917 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,529
Karma: 62503986
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
FWIW I use the APNX mode and it says 553 while the new pages says 390 And if I use the calibre viewer mode it goes over 900 |
|
|
|
|
|
|
#1918 | |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 50,428
Karma: 178402706
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
As for calibre's page counts? I open a book in the calibre ebook-viewer and the last page is labelled as 2069. Count Page (ASPN) gives me 2430 and calibre's Pages shows 2222. Asides, worrying about page counts in a reflowable format is like arguing about how many angels can dance on the head of a pin. It may be fun but in the end nothing will be decided. |
|
|
|
|
|
|
#1919 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19
Karma: 10658
Join Date: Apr 2018
Device: Samsung S25 Ultra
|
Ahh! It has been a decade, maybe, since I looked at that. I will check my settings and tweak them. Thank you!
|
|
|
|
|
|
#1920 | |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19
Karma: 10658
Join Date: Apr 2018
Device: Samsung S25 Ultra
|
Quote:
|
|
|
|
|
![]() |
| Tags |
| count, count pages, page count, pages, plugin |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [GUI Plugin] Open With | kiwidude | Plugins | 405 | 02-09-2026 08:54 AM |
| [GUI Plugin] Quality Check | kiwidude | Plugins | 1281 | 02-09-2026 08:51 AM |
| [GUI Plugin] Quick Preferences | kiwidude | Plugins | 63 | 02-09-2026 08:48 AM |
| [GUI Plugin] Kindle Collections (old) | meme | Plugins | 2070 | 08-11-2014 01:02 AM |
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 01:27 PM |