|
|
#1906 | |
|
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,786
Karma: 7945209
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: 81,656
Karma: 150265991
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,777
Karma: 80104644
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: 81,656
Karma: 150265991
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,712
Karma: 13151331
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: 49,612
Karma: 174632684
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.
|
|
|
|
![]() |
| Tags |
| count, count pages, page count, pages, plugin |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [GUI Plugin] Quality Check | kiwidude | Plugins | 1280 | 11-22-2025 09:09 PM |
| [GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 06:42 AM |
| [GUI Plugin] Quick Preferences | kiwidude | Plugins | 62 | 03-17-2024 12:47 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 |