Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 07-27-2022, 08:35 PM   #1546
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,367
Karma: 171313058
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
One issue is that many websites are blocking based on too many requests (either from 1 IP address or from all IP addresses). If you try connecting with a web browser, you get either an error message or a captcha before you can continue.
DNSB is offline   Reply With Quote
Old 07-27-2022, 08:47 PM   #1547
cathasaigh
Junior Member
cathasaigh began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2022
Device: Kindle Paperwhite 11
Quote:
Originally Posted by DNSB View Post
One issue is that many websites are blocking based on too many requests (either from 1 IP address or from all IP addresses). If you try connecting with a web browser, you get either an error message or a captcha before you can continue.

Hmmm. I'm able to access goodreads.com and the mobile app from the same IP without issue.
cathasaigh is offline   Reply With Quote
Advert
Old 07-28-2022, 12:12 AM   #1548
cathasaigh
Junior Member
cathasaigh began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2022
Device: Kindle Paperwhite 11
After some trial and error, I discovered that if I queried one book at a time, with about 5 seconds between each query, it'd work. Kind of annoying, since I have hundreds of books, but at least it's working now. Thanks!
cathasaigh is offline   Reply With Quote
Old 07-28-2022, 10:26 AM   #1549
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,164
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
IMHO this PI should be honoring the same (tweakable) setting as the normal Get Metadata feature to avoid betting all Calibre usage black listed.

Why the friggan rush? You did not have page counts before. It took you quite a bit of time to accumulate hundreds of books. Believe me, I know! One of the first things I did with Calibre was enter my Paper Library (~900 paperbacks).

Many were so old, their (actual) covers were not available for download (or the quality was distorted). Batches of 10-20, correct obvious Author-Title errors-research Not Found (some were pre-ISBN), Slap the book on the Flatbed Scanner when needed, then add that.
Repeat until my back gave out and call it a day.
Later I would gather missing metadata for small batches.
Total time, working a couple of hours a whack: over a year. And note: that metadata had not been really cleaned (42 versions of Science Fiction). Sometimes I would have to retrieve the copy and review because the tag said "SF&F" but I did not remember any F (or the flip)
Take your time. Do the books NOW, that you plan to read in the near future. If you are like me, you will adjust what or how you file books in your library (hoo-boy, some adjustments affected lots of books ).
theducks is offline   Reply With Quote
Old 07-28-2022, 05:16 PM   #1550
astergremlin
Junior Member
astergremlin began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2022
Device: none
Qt6 error

calibre, version 6.1.0
ERROR: Unhandled exception: <b>AttributeError</b>:'QTextEdit' object has no attribute 'setTabStopWidth'

calibre 6.1 embedded-python: True
Windows-10-10.0.19044-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19044')
Python 3.10.1
Windows: ('10', '10.0.19044', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (7, 1, 0) && Count Pages (1, 11, 2) && FanFicFare (4, 14, 3) && Obok DeDRM (7, 1, 0)
Traceback (most recent call last):
File "calibre_plugins.count_pages.config", line 322, in view_prefs
File "calibre_plugins.count_pages.common_utils", line 817, in __init__
File "calibre_plugins.count_pages.common_utils", line 838, in _init_controls
AttributeError: 'QTextEdit' object has no attribute 'setTabStopWidth'
I'm getting this QT6 error in the latest update. I found a couple of other threads on the forum that seem to address this specific issue. Just a heads up so it can be fixed in the next release

Here's a link to a potential fix https://www.mobileread.com/forums/sh...&postcount=104
astergremlin is offline   Reply With Quote
Advert
Old 07-31-2022, 10:32 AM   #1551
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by astergremlin View Post
calibre, version 6.1.0
ERROR: Unhandled exception: <b>AttributeError</b>:'QTextEdit' object has no attribute 'setTabStopWidth'

calibre 6.1 embedded-python: True
Windows-10-10.0.19044-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19044')
Python 3.10.1
Windows: ('10', '10.0.19044', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (7, 1, 0) && Count Pages (1, 11, 2) && FanFicFare (4, 14, 3) && Obok DeDRM (7, 1, 0)
Traceback (most recent call last):
File "calibre_plugins.count_pages.config", line 322, in view_prefs
File "calibre_plugins.count_pages.common_utils", line 817, in __init__
File "calibre_plugins.count_pages.common_utils", line 838, in _init_controls
AttributeError: 'QTextEdit' object has no attribute 'setTabStopWidth'
I'm getting this QT6 error in the latest update. I found a couple of other threads on the forum that seem to address this specific issue. Just a heads up so it can be fixed in the next release

Here's a link to a potential fix https://www.mobileread.com/forums/sh...&postcount=104
My apologies for not replying earlier. I know of this and have deliberately not fixed it yet. That function is only intended for debugging and should rarely be used. And is in a lot of plugins. I have been waiting for things to settle down before fixing this in case there is an issue to fix elsewhere. I will try and update it sometime in the next week or so, but, it will be a low priority.

Were you needing to do something with this dialog? Or just poking around?
davidfor is offline   Reply With Quote
Old 08-01-2022, 07:06 AM   #1552
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Update to version 1.11.2 - Calibre 6/Qt6 compatibility fix

I have just released version 1.11.2 if the plugin. This is a fix for the calibre 6/Qt6 issue reported by @astergremlin. There are no other to the plugin.

The release notes are:
  • Fix: Qt6 compatiblility - Prefs viewer tab stops.

As usual, calibre will announce the update in the next hour or so. And any problems with the plugin should be reported here.

Last edited by davidfor; 08-01-2022 at 07:23 AM.
davidfor is offline   Reply With Quote
Old 08-02-2022, 05:52 PM   #1553
Kurohane
Junior Member
Kurohane began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Aug 2022
Location: Canada
Device: Kobo Clara HD
@davidfor Not sure what your preference is on community contributions, but I was playing around with Calibre plugins and made a few modifications to the count_pages plugin. Namely, a few more sources for page counts (Amazon, AmazonJP, Google) and an additional readability algorithm specifically for Japanese text. It doesn't have the latest update merged in but it is available on my GitHub https://github.com/sharder996/count_pages if you're interested.
Kurohane is offline   Reply With Quote
Old 09-29-2022, 05:52 PM   #1554
wegsa
Junior Member
wegsa began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2022
Device: Tablet
Count Pages works perfect with cbz ebooks with jpg files.
But now this plugin show me "0" pages with cbz with webp files.

i think, this plugin dont see every webp files as a page.

i use Calibre v6.5.0 and Count Pages v1.11.3
wegsa is offline   Reply With Quote
Old 10-03-2022, 11:52 PM   #1555
gbuggie
Junior Member
gbuggie began at the beginning.
 
gbuggie's Avatar
 
Posts: 3
Karma: 10
Join Date: Jul 2022
Location: Melbourne, AU
Device: Kobo Libra 2
Eek! Failed to initialize plugin. Help, please :)

Hi experts and geniuses!

I've searched all the threads, and I've tried all the suggestions, but I'm running out of patience and brain power! I like to think I'm pretty savvy, but this one is doing my head in!

I'm using:
calibre 6.6
Count Pages 1.11.3
macOS 12.5.1

Things I have already tried:
  • Ensuring calibre has full disk access
    Updating all plugins
    Installing "KoboBooks" plugin upon discovering it wasn't even installed
    Adding calibre to mac security firewall exception list
    Adding calibre to exception list in CleanMyMac X
    Disabling CleanMyMac X
    Running plugin on various books from various sources
    Um... I might've tried more, but I can't remember now. I've been going around in circles and also trying to solve other problems (some related, some not) at the same time, so I'm all jumbled up now

Any help from someone here would be greatly appreciated

Quote:
Count Page/Word Statistics
Failed to initialize plugin: '/Users/gbuggie/Library/Preferences/calibre/plugins/KoboBooks.zip'
do_count_statistics - book_path=/var/folders/n3/vgj7jlf531g2yb0bm810cnwr0000gn/C/calibre_6.6.0_tmp_2ixkvugw/13b19wa4_count_pages/801.epub, pages_algorithm=0, page_count_mode=Estimate, statistics_to_run=['WordCount', 'FleschReading', 'FleschGrade'], custom_chars_per_page=1500, icu_wordcount=True
do_count_statistics - job started for file book_path=/var/folders/n3/vgj7jlf531g2yb0bm810cnwr0000gn/C/calibre_6.6.0_tmp_2ixkvugw/13b19wa4_count_pages/801.epub
-------------------------------
Logfile for book ID 801 (A Woman in a Million)
801
Failed to initialize plugin: '/Users/gbuggie/Library/Preferences/calibre/plugins/KoboBooks.zip'
Traceback (most recent call last):
File "calibre_plugins.count_pages.jobs", line 164, in do_statistics_for_book
iterator, words = get_word_count(iterator, book_path, icu_wordcount)
File "calibre_plugins.count_pages.statistics", line 79, in get_word_count
iterator = _open_epub_file(book_path)
File "calibre_plugins.count_pages.statistics", line 94, in _open_epub_file
iterator.__enter__(only_input_plugin=True, run_char_count=True,
File "calibre/ebooks/oeb/iterator/book.py", line 146, in __enter__
File "calibre/ebooks/oeb/iterator/book.py", line 86, in run_extract_book
File "calibre/utils/ipc/simple_worker.py", line 255, in fork_job
File "calibre/utils/ipc/simple_worker.py", line 180, in run_job
File "calibre/utils/ipc/simple_worker.py", line 119, in communicate
calibre.utils.ipc.simple_worker.WorkerError: Worker failed
do_statistics_for_book: /var/folders/n3/vgj7jlf531g2yb0bm810cnwr0000gn/C/calibre_6.6.0_tmp_2ixkvugw/13b19wa4_count_pages/801.epub 0 Estimate [] ['WordCount', 'FleschReading', 'FleschGrade'] 1500 True
gbuggie is offline   Reply With Quote
Old 10-04-2022, 10:02 AM   #1556
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,733
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
@gbuggie - I have no idea from that what is going on as not a Mac user. Though I am confused as to what the KoboBooks metadata plugin is doing in there. Count pages has no dependency on it that I am aware of, and it appears to be throwing errors? So I would remove that for a start and see what happens next.

Do other types of background jobs work, such as converting a book format? Have you tried on a different epub - perhaps that particular one is corrupted, or protected by DRM or something?
kiwidude is offline   Reply With Quote
Old 10-04-2022, 11:35 AM   #1557
wegsa
Junior Member
wegsa began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2022
Device: Tablet
protocol for my "0" pages error with webp files

Quote:
Zähle Seiten/Wörter Statistiken
do_count_statistics - book_path=C:\Users\User\AppData\Local\Temp\calibre _yfkf3dc4\nh9c78yl_count_pages\6547.cbz, pages_algorithm=1, page_count_mode=Estimate, statistics_to_run=['PageCount'], custom_chars_per_page=1500, icu_wordcount=False
do_count_statistics - job started for file book_path=C:\Users\User\AppData\Local\Temp\calibre _yfkf3dc4\nh9c78yl_count_pages\6547.cbz
-------------------------------
Logfile for book ID 6547 (Bright Sun - Dark Shadows 01)
Method of counting _page_count_mode=Estimate _download_sources=[]
results= {'PageCount': 0}
6547
do_statistics_for_book: C:\Users\User\AppData\Local\Temp\calibre_yfkf3dc4\ nh9c78yl_count_pages\6547.cbz 1 Estimate [] ['PageCount'] 1500 False
Skipping non page count statistics for CBR/CBZ
wegsa is offline   Reply With Quote
Old 10-04-2022, 12:12 PM   #1558
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,733
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
@wegsa - I meant to reply to you earlier but I wanted to check something in the code first. For CBR/CBZ books the plugin currently counts the number of .jpeg, .jpg, .gif and .png files within the book and calls that a page for counting purposes.

Perhaps .webp files need to be added to that list? I know nothing about comics I'm afraid - if you want to PM me a link to one of these files I can do some investigation.
kiwidude is offline   Reply With Quote
Old 10-04-2022, 04:39 PM   #1559
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 876
Karma: 3501166
Join Date: Jan 2017
Location: Poland
Device: Various
I confirm, that add .webp extension to line:
Code:
COMIC_PAGE_EXTENSIONS = ['.jpeg', '.jpg', '.gif', '.png', '.webp']
works.
BeckyEbook is online now   Reply With Quote
Old 10-04-2022, 07:39 PM   #1560
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,733
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Thanks Becky, I will put it in the next release…
kiwidude is offline   Reply With Quote
Reply

Tags
count, count pages, page count, pages, plugin


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Quality Check kiwidude Plugins 1252 08-02-2025 09:53 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


All times are GMT -4. The time now is 07:54 AM.


MobileRead.com is a privately owned, operated and funded community.