03-09-2022, 03:58 AM | #181 |
Zealot
Posts: 137
Karma: 1000102
Join Date: Jul 2021
Device: N/A
|
|
03-22-2022, 05:27 AM | #182 |
Connoisseur
Posts: 93
Karma: 40
Join Date: Mar 2020
Location: Belgium (sorry, I am from the Walloon side of the country and I speak french only)
Device: PW3, Kobo Libra H2O
|
Webengine_demo plugin does not show
I am currently writing a plugin based on webengine_Demo_plugin... It does work even if the configuration part is far from being optimal. (noosfere_util that work as a complement to noosfere DB a published metadata plugin )
My intention is to make it available soon so that bugs can be displayed. When I saw this thread I thought to verify the compatibility... Well it does not work. Back to basic, try to install and use webengine demo... No luck. I installed the portable version to not interfere with my installed version 5.39... webengine_demo does NOT SHOW anything after asking the url... A process named calibre worker process flashes to live for a very short time when I hit the ok button in the box asking the URL address... A Code:
calibre-debug -g The startup log follow, if usefull: Code:
calibre Journal de débogage calibre 5.99.8 Portable embedded-python: True Windows-10-10.0.19044 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19044') Python 3.10.1 Windows: ('10', '10.0.19044', '', 'Multiprocessor Free') Interface language: fr Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 47, 0) && Package KFX (from KFX Input) (1, 47, 0) && Find Duplicates (1, 9, 4) && KFX metadata reader (from KFX Input) (1, 47, 0) && KFX Input (1, 47, 0) && Set KFX metadata (from KFX Output) (1, 60, 0) && KFX Output (1, 60, 0) && KePub Input (3, 4, 3) && KePub Metadata Reader (3, 4, 3) && KePub Output (3, 5, 3) && Kindle Collections (1, 7, 29) && Kindle hi-res covers (0, 5, 0) && Kobo Books (1, 8, 3) && Kobo Utilities (2, 15, 1) && KoboTouchExtended (3, 5, 4) && Manage Series (1, 3, 0) && View Manager (1, 7, 0) && WebEngine Plugin Demo (1, 0, 0) && Wiki Reader (2, 2, 1) && noosfere DB (0, 9, 6) && noosfere util (0, 5, 0) calibre 5.99.8 Portable embedded-python: True Windows-10-10.0.19044 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19044') Python 3.10.1 Windows: ('10', '10.0.19044', '', 'Multiprocessor Free') Interface language: fr Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 47, 0) && Package KFX (from KFX Input) (1, 47, 0) && Find Duplicates (1, 9, 4) && KFX metadata reader (from KFX Input) (1, 47, 0) && KFX Input (1, 47, 0) && Set KFX metadata (from KFX Output) (1, 60, 0) && KFX Output (1, 60, 0) && KePub Input (3, 4, 3) && KePub Metadata Reader (3, 4, 3) && KePub Output (3, 5, 3) && Kindle Collections (1, 7, 29) && Kindle hi-res covers (0, 5, 0) && Kobo Books (1, 8, 3) && Kobo Utilities (2, 15, 1) && KoboTouchExtended (3, 5, 4) && Manage Series (1, 3, 0) && View Manager (1, 7, 0) && WebEngine Plugin Demo (1, 0, 0) && Wiki Reader (2, 2, 1) && noosfere DB (0, 9, 6) && noosfere util (0, 5, 0) devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 117.58408679927668 x 117.60771704180064 Using calibre Qt style: True [0.00] Starting up... [0.00] Showing splash screen... [0.19] splash screen shown [0.19] Initializing db... [0.19] db initialized [0.19] Constructing main UI... DEBUG: 0.0 Kobo Utilities Configuration - CreateNewCustomColumn is supported DEBUG: 0.0 KoboUtilites::action.py - loading translations DEBUG: 0.0 KoboUtilites::dialogs.py - loading translations DEBUG: 0.0 KoboUtilites::action.py - loading translations DEBUG: 0.6 No Kobo Touch, Glo or Mini appears to be connected DEBUG: 0.6 rebuild_menus - self.supports_ratings=None, self.supports_tiles=None DEBUG: 0.6 KoboUtilities:set_toolbar_button_tooltip - start: text='None' DEBUG: 0.6 KoboUtilities:set_toolbar_button_tooltip - setting to text='Utilities to use with Kobo ereaders Pilote : KoboTouchExtended' [1.09] main UI initialized... [1.09] Hiding splash screen Starting QuickView [6.58] splash screen hidden [6.58] Started up in 6.58 seconds with 1 books Worker Launch took: 0.00 seconds |
Advert | |
|
03-22-2022, 05:41 AM | #183 | |
Grand Sorcerer
Posts: 11,799
Karma: 7029971
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
"C:\CBH_Data\calibre.git\Calibre-Qt6\Calibre Portable\Calibre\calibre-debug.exe" -g |
|
03-22-2022, 09:05 AM | #184 |
Connoisseur
Posts: 93
Karma: 40
Join Date: Mar 2020
Location: Belgium (sorry, I am from the Walloon side of the country and I speak french only)
Device: PW3, Kobo Libra H2O
|
Thanks chaley
I DO have a full path in a portable-debugit.bat file... I probably was too 'square' in writting the above as path\calibre-debug --gui does indeed run calibre 5.99.8... What I see is that it does uses all the default of the installed calibre... Including copying the modified code to the default place of the installed calibre... I guess this is NOT really tied with PyQt6, yet I was surprised See my commented bat file... Code:
rem see https://manual.calibre-ebook.com/creating_plugins.html#id14 goto Debugging plugins... rem click runit from from the directory where the plugin is developed... rem this will kill any running calibre, push a new plugin.zip where appropriate and start calibre again in gui debug mode "P:\000Calibre\Calibre Portable\Calibre\calibre-debug" -s "P:\000Calibre\Calibre Portable\Calibre\calibre-customize" -b . rem calibre-customize -b . copies the plugin to C:\Users\Papa\AppData\Roaming\calibre\plugins not to P:\000Calibre\Calibre Portable\Calibre Settings\plugins rem START calibre-debug --gui creates a new cmd windows that executes calibre-debug --gui rem this allows killing a running calibre without fumbling all over the places on my too small monitor... rem START "P:\000Calibre\Calibre Portable\Calibre\calibre-debug" --gui ... that gives windows does not find '--gui' !!! génial !!! "P:\000Calibre\Calibre Portable\Calibre\calibre-debug" --gui rem that works... However, I confirm that webengine_demo works on calibre 5.39 and NOT on Calibre 5.99.8... Last edited by lrpirlet; 03-22-2022 at 09:07 AM. Reason: missing info |
03-22-2022, 01:00 PM | #185 |
creator of calibre
Posts: 44,030
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The webengine demo plugin worked fine for me in 5.99.8. Although, thanks to https://github.com/kovidgoyal/calibr...5a8c71de4c3420 hopefully the need to run webengine in separate processes should go away soon.
|
Advert | |
|
03-22-2022, 04:32 PM | #186 |
Connoisseur
Posts: 93
Karma: 40
Join Date: Mar 2020
Location: Belgium (sorry, I am from the Walloon side of the country and I speak french only)
Device: PW3, Kobo Libra H2O
|
Thanks kovidgoyal
I should have realized that to use a webengine_demo I got such a long time ago is not the best move... I downloaded a new version that work for me as well as for you... For the record I had a main.py dated 20-12-03... It was failing on the import, well before my redirected error output would be activated... Code:
C:\Users\lrp>calibre-debug Module readline not available. Welcome to the interactive calibre shell! Use exit to quit >>> from PyQt5.QtWebEngineWidgets import QWebEngineView Traceback (most recent call last): File "<console>", line 1, in <module> ImportError: cannot import name 'QWebEngineView' from 'qt.core' (C:\Program Files\Calibre2\app\bin\python-lib.bypy.frozen\qt\core.pyc) |
03-24-2022, 12:49 PM | #187 |
Connoisseur
Posts: 93
Karma: 40
Join Date: Mar 2020
Location: Belgium (sorry, I am from the Walloon side of the country and I speak french only)
Device: PW3, Kobo Libra H2O
|
type object 'QKeySequence' has no attribute 'FindNext'
Hello
I have been working on porting noosfere_util to Qt6... I have the following: Code:
2022-03-24 15:02:04,658:ERROR:STDERR:Traceback (most recent call last): 2022-03-24 15:02:04,658:ERROR:STDERR: File "runpy.py", line 196, in _run_module_as_main 2022-03-24 15:02:04,659:ERROR:STDERR: File "runpy.py", line 86, in _run_code 2022-03-24 15:02:04,659:ERROR:STDERR: File "site.py", line 82, in <module> 2022-03-24 15:02:04,661:ERROR:STDERR: File "site.py", line 77, in main 2022-03-24 15:02:04,661:ERROR:STDERR: File "site.py", line 49, in run_entry_point 2022-03-24 15:02:04,662:ERROR:STDERR: File "calibre\utils\ipc\worker.py", line 215, in main 2022-03-24 15:02:04,662:ERROR:STDERR: File "calibre\gui_launch.py", line 98, in webengine_dialog 2022-03-24 15:02:04,662:ERROR:STDERR: File "calibre_plugins.noosfere_util.web_main", line 453, in main 2022-03-24 15:02:04,662:ERROR:STDERR: File "calibre_plugins.noosfere_util.web_main", line 150, in __init__ 2022-03-24 15:02:04,663:ERROR:STDERR: File "calibre_plugins.noosfere_util.web_main", line 223, in set_search_bar 2022-03-24 15:02:04,663:ERROR:STDERR: File "calibre_plugins.noosfere_util.web_main", line 101, in __init__ 2022-03-24 15:02:04,663:ERROR:STDERR:AttributeError 2022-03-24 15:02:04,663:ERROR:STDERR:: 2022-03-24 15:02:04,663:ERROR:STDERR:type object 'QKeySequence' has no attribute 'FindNext' short code extract Code:
#QShortcut(QKeySequence.FindNext, self, activated=next_btn.animateClick) #QShortcut(QKeySequence.FindPrevious, self, activated=prev_btn.animateClick) QShortcut(QKeySequence(Qt.Key_Escape), self.srch_dsp, activated=self.closed) Spoiler:
I could not find any occurence of QKeySequence.FindNext, QKeySequence.FindPrevious or QKeySequence.Find in calibre source files... Thanks in advance. |
03-24-2022, 12:51 PM | #188 |
creator of calibre
Posts: 44,030
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You need QKeySequence.StandardKey.FindNext
|
03-24-2022, 05:41 PM | #189 |
Connoisseur
Posts: 93
Karma: 40
Join Date: Mar 2020
Location: Belgium (sorry, I am from the Walloon side of the country and I speak french only)
Device: PW3, Kobo Libra H2O
|
Thanks kovidgoyal
It works with StandardKey... Even better I could find a reference in QT doc (the label of the column is StandardKey so I can tie with 'key' in QKeySequence(QKeySequence::StandardKey key) Last edited by lrpirlet; 03-24-2022 at 05:44 PM. |
04-22-2022, 06:02 AM | #190 |
Grand Sorcerer
Posts: 11,799
Karma: 7029971
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
To all who maintain kiwidude-based plugins: There is a problem in common_utils.CheckableTableWidgetItem(). The line
Code:
self.setFlags(Qt.ItemFlags(Qt.ItemIsSelectable | Qt.ItemIsUserCheckable | Qt.ItemIsEnabled )) Code:
self.setFlags(Qt.ItemFlag(Qt.ItemIsSelectable | Qt.ItemIsUserCheckable | Qt.ItemIsEnabled )) Without the change and assuming you use that widget, you will get the error Code:
AttributeError: type object 'Qt' has no attribute 'ItemFlags' Last edited by chaley; 04-22-2022 at 08:51 AM. |
04-25-2022, 02:10 PM | #191 | |
Plugin Developer
Posts: 6,403
Karma: 4276871
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
I wouldn't be surprised if CheckableTableWidgetItem was only used in Reading List. EDIT: FYI, changing Qt.ItemFlags to Qt.ItemFlag works back to Calibre v2.85.1 for me. |
|
05-08-2022, 12:03 PM | #192 | |
Resident Curmudgeon
Posts: 74,703
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
05-08-2022, 03:15 PM | #193 |
Well trained by Cats
Posts: 30,000
Karma: 57259778
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
05-09-2022, 09:48 AM | #194 |
Plugin Developer
Posts: 6,403
Karma: 4276871
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
I've far from the only one helping out with kiwidude's plugins, but you're welcome.
And I agree; my thanks too, to kiwidude for all the plugins and to everyone keeping them running. |
05-17-2022, 04:23 AM | #195 |
Connoisseur
Posts: 60
Karma: 10
Join Date: Apr 2013
Device: Kindle Paperwhite 3 (Manga)
|
I wonder if anyone could have a look at this plugin? davidfor has updated it for python 3, and collects some metadata from FictionDB, but genre, classification and time period are not added to tags, and I want to add age-level as well, ideally to a separate column.
I really appreciate davidfor reviving this plugin and thought some extra support would be welcome. FictionDB Plug-In thread Thanks! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Suggestion for PI Devs | BetterRed | Plugins | 11 | 09-27-2020 06:18 PM |
Attn plugin devs: porting to python 3 | kovidgoyal | Plugins | 129 | 06-16-2020 01:31 AM |
Attention All Plugin Devs: Remove vestiges from python 2? | KevinH | Plugins | 11 | 05-29-2020 03:16 PM |
Plugin Devs: Should we include a License or COPYING file? | KevinH | Plugins | 3 | 08-15-2017 01:09 PM |
New Plugin Features in the upcoming Sigil 0.8.900 | KevinH | Plugins | 6 | 09-14-2015 02:48 PM |