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 04-04-2021, 08:42 AM   #136
Uncle Robin
Diligent dilettante
Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.
 
Uncle Robin's Avatar
 
Posts: 3,661
Karma: 52758936
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra Colour
Quote:
Originally Posted by mapozyan View Post
There might have been some working scenarios like if you did "reindex all" once you reinstalled all the stuff and before doing any search?
I didn't reindex all, but I did reindex new books before running a search. From memory, I think it was about 15-20 new books
Uncle Robin is offline   Reply With Quote
Old 04-04-2021, 09:13 AM   #137
mapozyan
Connoisseur
mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.
 
Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
Quote:
Originally Posted by Uncle Robin View Post
I didn't reindex all, but I did reindex new books before running a search. From memory, I think it was about 15-20 new books
If you switch to new instance of ElasticSearch then you need to reindex everything. Otherwise your search results won't be complete.
mapozyan is offline   Reply With Quote
Advert
Old 04-04-2021, 11:00 AM   #138
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,217
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Hi, @mapozyan.

When you changed from QPushButton to QToolButton, I think you might have forgotten to handle the enter pressing event. Now, when you type your search and hit enter, the Help window pops up.
thiago.eec is offline   Reply With Quote
Old 04-04-2021, 11:56 AM   #139
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: 46,377
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
When I attempted to re-index all books, I got the following error message:

Code:
calibre, version 5.14.0
ERROR: Unhandled exception: <b>AttributeError</b>:'NoneType' object has no attribute 'library_id'

calibre 5.14 [64bit]  embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (7, 1, 0) && Annotations (1, 15, 0) && Baen (1, 2, 0) && Barnes & Noble (1, 2, 16) && Calibre Power Search Plugin (2, 0, 1) && Count Pages (1, 11, 0) && Diaps Editing Toolbag (0, 3, 7) && EpubCheck (0, 2, 3) && EpubMerge (2, 11, 0) && EpubSplit (3, 0, 0) && FanFicFare (4, 1, 0) && Fantastic Fiction (1, 4, 0) && Find Duplicates (1, 8, 5) && Goodreads (1, 5, 1) && Hyphenate This! (0, 1, 3) && ISFDB (3, 0, 0) && Job Spy (1, 0, 190) && Kindle hi-res covers (0, 5, 0) && KindleUnpack - The Plugin (0, 83, 0) && Kobo Books (1, 8, 2) && Kobo Utilities (2, 13, 1) && KoboTouchExtended (3, 4, 4) && Modify ePub (1, 6, 3) && Obok DeDRM (7, 1, 0) && Open With (1, 5, 13) && Quality Check (1, 11, 2) && Resize Cover (1, 1, 0) && ScrambleEbook (0, 4, 5) && SmartEject (2, 3, 0) && Smashwords Metadata (1, 0, 2)
Traceback (most recent call last):
  File "calibre_plugins.caps.main", line 627, in on_reindex_all
  File "calibre\db\cache.py", line 172, in library_id
AttributeError: 'NoneType' object has no attribute 'library_id'
One item is that I edited __init__.py to change the reported version to 2.0.1 since 2.0.1 out of the box reported 2.0.0.
DNSB is offline   Reply With Quote
Old 04-04-2021, 01:00 PM   #140
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: 46,377
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Yet another glitch. After wiping the indexes, I did a re-index on new books in both my libraries. When I switched libraries, I had to close calibre and re-open it otherwise PowerSearch kicked up an error. After the indexing, I still get the same error when I switch libraries:

Code:
calibre, version 5.14.0
ERROR: Unhandled exception: <b>AttributeError</b>:'NoneType' object has no attribute 'clear_search_caches'

calibre 5.14 [64bit]  embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (7, 1, 0) && Annotations (1, 15, 0) && Baen (1, 2, 0) && Barnes & Noble (1, 2, 16) && Calibre Power Search Plugin (2, 0, 1) && Count Pages (1, 11, 0) && Diaps Editing Toolbag (0, 3, 7) && EpubCheck (0, 2, 3) && EpubMerge (2, 11, 0) && EpubSplit (3, 0, 0) && FanFicFare (4, 1, 0) && Fantastic Fiction (1, 4, 0) && Find Duplicates (1, 8, 5) && Goodreads (1, 5, 1) && Hyphenate This! (0, 1, 3) && ISFDB (3, 0, 0) && Job Spy (1, 0, 190) && Kindle hi-res covers (0, 5, 0) && KindleUnpack - The Plugin (0, 83, 0) && Kobo Books (1, 8, 2) && Kobo Utilities (2, 13, 1) && KoboTouchExtended (3, 4, 4) && Modify ePub (1, 6, 3) && Obok DeDRM (7, 1, 0) && Open With (1, 5, 13) && Quality Check (1, 11, 2) && Resize Cover (1, 1, 0) && ScrambleEbook (0, 4, 5) && SmartEject (2, 3, 0) && Smashwords Metadata (1, 0, 2)
Traceback (most recent call last):
  File "calibre_plugins.caps.main", line 234, in on_search_all
  File "calibre_plugins.caps.main", line 247, in on_search
  File "calibre_plugins.caps.main", line 523, in do_search
  File "calibre\db\view.py", line 380, in set_marked_ids
AttributeError: 'NoneType' object has no attribute 'clear_search_caches'
DNSB is offline   Reply With Quote
Advert
Old 04-04-2021, 03:53 PM   #141
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,007
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by mapozyan View Post
I guess many people installed new version of ElasticSearch and the problem was when you try to connect to clean ElasticSearch instance. If you are using same instance as before the update to 2.0.0 it would work normally.
I only installed the new version of ElasticSearch after my current version failed.
ownedbycats is online now   Reply With Quote
Old 04-04-2021, 04:23 PM   #142
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,007
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I installed 2.0.1. and set it to re-index all my books and it seems to be working now.
ownedbycats is online now   Reply With Quote
Old 04-04-2021, 04:35 PM   #143
mapozyan
Connoisseur
mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.
 
Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
Quote:
Originally Posted by thiago.eec View Post
Hi, @mapozyan.

When you changed from QPushButton to QToolButton, I think you might have forgotten to handle the enter pressing event. Now, when you type your search and hit enter, the Help window pops up.
Hi Thiago,

Bad news is that QToolButton doesn't have "default" property. Will need to figure out how to emulate that.

Thanks for feedback!
mapozyan is offline   Reply With Quote
Old 04-04-2021, 04:44 PM   #144
mapozyan
Connoisseur
mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.
 
Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
Quote:
Originally Posted by DNSB View Post
Yet another glitch. After wiping the indexes, I did a re-index on new books in both my libraries. When I switched libraries, I had to close calibre and re-open it otherwise PowerSearch kicked up an error. After the indexing, I still get the same error when I switch libraries:
Thanks for error report! I actually didn't test how PowerSearch will manage multiple libraries. Will try it out.
mapozyan is offline   Reply With Quote
Old 04-04-2021, 05:18 PM   #145
Uncle Robin
Diligent dilettante
Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.
 
Uncle Robin's Avatar
 
Posts: 3,661
Karma: 52758936
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra Colour
Quote:
Originally Posted by ownedbycats View Post
I installed 2.0.1. and set it to re-index all my books and it seems to be working now.
I did the same, and had no errors. I actually forgot to select "reindex all books" and just hit "reindex new books", but it took 30+ minutes, so obviously it was a reindex of my entire library, with no errors
Uncle Robin is offline   Reply With Quote
Old 04-04-2021, 08:03 PM   #146
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,217
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by mapozyan View Post
Hi Thiago,

Bad news is that QToolButton doesn't have "default" property. Will need to figure out how to emulate that.

Thanks for feedback!
Yeah, I noticed that. Really unfortunate.
There must be a more elegant way to do this but this kind of work:

Spoiler:
Code:
self.search_textbox.editTextChanged.connect(self.on_search_text_changed)
self.search_textbox.lineEdit().returnPressed.connect(self.on_search_all)
...
self.search_help_button = Qt.QPushButton('?', self)
self.search_help_button.setDefault(False)
self.search_help_button.setAutoDefault(False)
...
self.cancel_button = Qt.QPushButton('&Cancel', self)
self.cancel_button.clicked.connect(self.on_cancel)
self.cancel_button.setVisible(False)
self.cancel_button.setDefault(False)
self.cancel_button.setAutoDefault(False)
self.layout.addWidget(self.cancel_button)

I said "kind of work" because it sets the 'Details' button as default, so it will be activated after a conversion starts.
thiago.eec is offline   Reply With Quote
Old 04-04-2021, 08:11 PM   #147
mapozyan
Connoisseur
mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.
 
Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
Quote:
Originally Posted by thiago.eec View Post
Yeah, I noticed that. Really unfortunate.
There must be a more elegant way to do this but this kind of work:

I said "kind of work" because it sets the 'Details' button as default, so it will be activated after a conversion starts.
Thanks, I already tried something similar:

https://github.com/mapozyan/caps/com...4b20ddd79de3f9

mapozyan is offline   Reply With Quote
Old 04-08-2021, 07:42 AM   #148
noonoo
Junior Member
noonoo began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2021
Device: none
Power Serach 2.0.1 crashes Calibre

Hi!
Has anyone else seen this problem? Everything worked fine with Power Search 2.0.1 until suddenly pressing the Power Search button terminates Calibre.

Fired up calibre-debug.exe -g and it writes this message to the console:
QWidget::repaint: Recursive repaint detected

OS: Windows 10
Calibre: 5.14
Elastic Search: 7.12.0
Power Search: 2.0.1

Cheers
noonoo is offline   Reply With Quote
Old 04-09-2021, 02:26 PM   #149
mapozyan
Connoisseur
mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.
 
Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
Quote:
Originally Posted by noonoo View Post
Hi!
Has anyone else seen this problem? Everything worked fine with Power Search 2.0.1 until suddenly pressing the Power Search button terminates Calibre.

Fired up calibre-debug.exe -g and it writes this message to the console:
QWidget::repaint: Recursive repaint detected

OS: Windows 10
Calibre: 5.14
Elastic Search: 7.12.0
Power Search: 2.0.1

Cheers
How many monitors you have? It happened once for me on my 2nd monitor.
mapozyan is offline   Reply With Quote
Old 04-10-2021, 05:51 AM   #150
noonoo
Junior Member
noonoo began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2021
Device: none
Quote:
Originally Posted by mapozyan View Post
How many monitors you have? It happened once for me on my 2nd monitor.

I have a second monitor attached to my laptop. I just was able to reproduce the issue on the primary monitor. Then tried it with calibre on the secondary screen and it was not reproducible anymore (on neither screen). This was the third time it happened. Not 100% sure if this is related to the screen I'm on....
noonoo is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Search the Internet kiwidude Plugins 436 05-12-2025 09:02 PM
[GUI Plugin] Clipboard Search kiwidude Plugins 29 04-02-2024 10:05 PM
[GUI Plugin] Recoll Full Text Search Satas Plugins 16 08-05-2016 03:54 AM
[GUI Plugin] Full Text Search (SOLR) peterpisljar Plugins 2 08-09-2015 08:16 AM
Make a simple Plugin for Full Text Search using Recoll Satas Development 9 07-20-2013 04:15 PM


All times are GMT -4. The time now is 06:26 AM.


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