Hello,
Despite multiple attempts, I still can't get my plugin to work in calibre (despite it being installed there and present in preferences).
Indeed, after starting calibre, the 'PersonnaLiseur' icon does not appear in the menu bar, nor in the contextual menu (right click).
Here is the associated debug report:
Code:
ApplicationPaletteChange event ignored
Using calibre Qt style: True
Traceback (most recent call last):
File "calibre/gui2/ui.py", line 137, in __init__
File "calibre/gui2/ui.py", line 155, in init_iaction
File "calibre/customize/__init__.py", line 624, in load_actual_plugin
File "importlib/__init__.py", line 126, in import_module
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "calibre/customize/zipplugin.py", line 206, in exec_module
File "calibre_plugins.personnaliseur.ui", line 14, in <module>
from calibre_plugins.personnaliseur.dialogue import PL
File "calibre/customize/zipplugin.py", line 206, in exec_module
File "calibre_plugins.personnaliseur.dialogue", line 18, in <module>
from calibre_plugins.personnaliseur.job import ProgressDialog
File "calibre/customize/zipplugin.py", line 206, in exec_module
File "calibre_plugins.personnaliseur.job", line 23, in <module>
from calibre_plugins.ebooks.oeb.polish.container import get_container
ModuleNotFoundError: No module named 'calibre_plugins.ebooks'
calibre Journal de débogage
calibre 6.7.1 embedded-python: True
Linux-5.15.0-52-generic-x86_64-with-glibc2.35 Linux ('64bit', 'ELF')
('Linux', '5.15.0-52-generic', '#58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022')
Python 3.10.1
Interface language: fr
Successfully initialized third party plugins: DeDRM (10, 0, 3) && PersonnaLiseur (1, 2, 4)
calibre 6.7.1 embedded-python: True
Linux-5.15.0-52-generic-x86_64-with-glibc2.35 Linux ('64bit', 'ELF')
('Linux', '5.15.0-52-generic', '#58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022')
Python 3.10.1
Interface language: fr
Successfully initialized third party plugins: DeDRM (10, 0, 3) && PersonnaLiseur (1, 2, 4)
QPA platform: wayland
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 119.92131147540982 x 117.5657142857143
[0.00] Starting up...
[0.00] Showing splash screen...
[0.06] splash screen shown
[0.06] Initializing db...
[1.56] db initialized
[1.56] Constructing main UI...
abc
abc123
Key '' for shortcut Book list header menu is already used by 'Gérer les catégories', ignoring
[3.99] main UI initialized...
[3.99] Hiding splash screen
Starting QuickView
[9.70] splash screen hidden
[9.70] Started up in 9.70 seconds with 1580 books
I add that I only modified the files in calibre_plugins.personnaliseur...
I guess you shouldn't touch the files from the calibre program itself ?
Does anyone have any suggestions to resolve this inconvenience ?
thank you in advance for your wise advice.