|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,216
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Error cailbre 8.11.1 calibre-debug --gui Mint 22.2
Code:
$ calibre-debug --gui
calibre 8.11.1 embedded-python: True
Linux-6.14.0-32-generic-x86_64-with-glibc2.39 Linux ('64bit', 'ELF')
('Linux', '6.14.0-32-generic', '#32~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Sep 2 14:21:04 UTC 2')
Python 3.11.13
Interface language: None
EXE path: /opt/calibre/bin/calibre-debug
Successfully initialized third party plugins: ACSM Input (0, 1, 0) && Gather KFX-ZIP (from KFX Input) (2, 26, 2) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 26, 2) && ACSM Input Plugin GUI Extension (0, 1, 0) && Baen (1, 1, 0) && Barnes & Noble (1, 5, 7) && Diaps Editing Toolbag (0, 5, 0) && EpubMerge (3, 2, 0) && EpubSplit (3, 12, 0) && Goodreads (1, 8, 3) && Hyphenate This! (0, 1, 3) && KFX metadata reader (from KFX Input) (2, 26, 2) && From KFX (2, 26, 2) && KFX Input (2, 26, 2) && KindleUnpack - The Plugin (0, 83, 8) && Kobo Utilities (2, 24, 3) && Modify ePub (1, 8, 6) && Quality Check (1, 14, 2)
QPA platform: xcb
devicePixelRatio: 1.09375
logicalDpi: 96.0 x 96.0
physicalDpi: 84.58633776091081 x 84.69527027027027
ApplicationPaletteChange event ignored
Using calibre Qt style: True
Traceback (most recent call last):
File "runpy.py", line 198, in _run_module_as_main
File "runpy.py", line 88, in _run_code
File "site.py", line 47, in <module>
File "site.py", line 43, in main
File "calibre/debug.py", line 234, in main
File "calibre/gui_launch.py", line 74, in calibre
File "calibre/gui2/main.py", line 548, in main
File "calibre/gui2/main.py", line 560, in run_main
File "calibre/gui2/main.py", line 398, in run_gui
File "calibre/gui2/main.py", line 408, in run_gui_
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "bypy-importer.py", line 279, in exec_module
File "calibre/gui2/ui.py", line 51, in <module>
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "bypy-importer.py", line 279, in exec_module
File "calibre/gui2/init.py", line 37, in <module>
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "bypy-importer.py", line 279, in exec_module
File "calibre/gui2/library/alternate_views.py", line 67, in <module>
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "bypy-importer.py", line 279, in exec_module
File "calibre/gui2/pin_columns.py", line 9, in <module>
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "bypy-importer.py", line 279, in exec_module
File "calibre/gui2/library/delegates.py", line 46, in <module>
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "bypy-importer.py", line 279, in exec_module
File "calibre/gui2/dialogs/comments_dialog.py", line 11, in <module>
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "bypy-importer.py", line 279, in exec_module
File "calibre/gui2/comments_editor.py", line 14, in <module>
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "bypy-importer.py", line 279, in exec_module
File "html5_parser/__init__.py", line 31, in <module>
RuntimeError: html5-parser and lxml are using different versions of libxml2. This happens commonly when using pip installed versions of lxml. Use pip install --no-binary lxml lxml instead. libxml2 versions: html5-parser: (2, 9, 14) != lxml: (2, 15, 0)
bernie |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,631
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Doesn't reproduce for me. Are the env vars the same when you run calibre and calibre-debug --gui?
|
|
|
|
|
|
#3 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,216
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
This is a fresh install of Linux Mint 22.2 on a new disk. Calibre also does not start when using "Restart in debug mode".
Did a calibre-uninstall then a clean install of 8.11.1 same result. Reverted to 8.10 calibre-debug works. Code:
$ calibre-debug --gui
calibre 8.10 embedded-python: True
Linux-6.14.0-32-generic-x86_64-with-glibc2.39 Linux ('64bit', 'ELF')
('Linux', '6.14.0-32-generic', '#32~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Sep 2 14:21:04 UTC 2')
Python 3.11.12
Interface language: None
EXE path: /opt/calibre/bin/calibre-debug
Successfully initialized third party plugins: ACSM Input (0, 1, 0) && Gather KFX-ZIP (from KFX Input) (2, 26, 2) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 26, 2) && ACSM Input Plugin GUI Extension (0, 1, 0) && Baen (1, 1, 0) && Barnes & Noble (1, 5, 7) && Diaps Editing Toolbag (0, 5, 0) && EpubMerge (3, 2, 0) && EpubSplit (3, 12, 0) && Goodreads (1, 8, 3) && Hyphenate This! (0, 1, 3) && KFX metadata reader (from KFX Input) (2, 26, 2) && From KFX (2, 26, 2) && KFX Input (2, 26, 2) && KindleUnpack - The Plugin (0, 83, 8) && Kobo Utilities (2, 24, 3) && Modify ePub (1, 8, 6) && Quality Check (1, 14, 2)
QPA platform: xcb
devicePixelRatio: 1.09375
logicalDpi: 96.0 x 96.0
physicalDpi: 84.58633776091081 x 84.69527027027027
ApplicationPaletteChange event ignored
Using calibre Qt style: True
[0.00] Starting up...
|
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,631
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Strange, dont see how that's possible. Try
LD_DEBUG=libs ./calibre-debug -g 2>&1 | grep libxml2 and post the output. |
|
|
|
|
|
#5 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,216
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Got a head of myself.
Code:
RuntimeError: html5-parser and lxml are using different versions of libxml2. This happens commonly when using pip installed versions of lxml. Use pip install --no-binary lxml lxml instead. libxml2 versions: html5-parser: (2, 9, 14) != lxml: (2, 15, 0) Last edited by gbm; 09-28-2025 at 12:14 AM. |
|
|
|
|
|
#6 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,631
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yeah I want the output from LD_DEBUG, that message doesnt tell me where the older libxml2 is coming from
|
|
|
|
|
|
#7 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,216
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
It did not print any out put but I do have:
Code:
libxml2.so.2.9.14 /lib/x86_64-linux-gnu Code:
libxml2.so.2.13.8 /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/24.08/e2cda5d7700bf0f02c764e151918a6e93def2634e8df9dc0dec52c4a1923ef88/files/lib/x86_64-linux-gnu Code:
libxml2.so.2.13.8 /var/lib/flatpak/runtime/org.kde.Platform/x86_64/5.15-24.08/79fbdb22e166f20c4ca1f6639415d8dac00cfe64b07ab18d0f5a875c73942225/files/lib/x86_64-linux-gnu Going to bed. 8.11.1 works except for debug gui. |
|
|
|
|
|
#8 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,631
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
And what does
ldd ./lib/calibre-extensions/html5_parser.html_parser.so output? |
|
|
|
|
|
#9 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,631
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I tried this in a debian:stable container which has libxml2.so.2.19.4 and couldnt reproduce there either.
|
|
|
|
|
|
#10 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,216
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
8.10.0
Code:
LD_DEBUG=libs ./calibre-debug -g 2>&1 | grep libxml2 grep libxml2 grep: grep: No such file or directory grep: libxml2: No such file or directory Code:
ldd: ./lib/calibre-extensions/html5_parser.html_parser.so: No such file or directory 8.11.1 Code:
LD_DEBUG=libs ./calibre-debug -g 2>&1 | grep libxml2 grep libxml2 grep: grep: No such file or directory grep: libxml2: No such file or directory Code:
ldd: ./lib/calibre-extensions/html5_parser.html_parser.so: No such file or directory bernie |
|
|
|
|
|
#11 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,216
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Ok installed calibre 8 on a Mint 22.2 live usb and calibre debug worked.
Will install on different disk or vm and test without and with the flatpacks I use. Will be tomorrow or Tuesday. bernie |
|
|
|
|
|
#12 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,631
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You need just grep libxml2 not grep libxml2 grep libxml
And run the ldd comman inside the calibre installation dir, typically /opt/calibre |
|
|
|
|
|
#13 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,216
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Sorry to get back so late, my monitor died.
Updated to calibre 8.12 still the same error. calibre launches using the calibre command or launcher. Code:
/opt/calibre$ ldd ./lib/calibre-extensions/html5_parser.html_parser.so linux-vdso.so.1 (0x00007fe1a9c34000) libxml2.so.16 => not found libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe1a9800000) /lib64/ld-linux-x86-64.so.2 (0x00007fe1a9c36000) Code:
/opt/calibre$ LD_DEBUG=libs ./calibre-debug -g 2>&1 | grep libxml2
22233: find library=libxml2.so.16 [0]; searching
22233: trying file=/opt/calibre/lib/libxml2.so.16
22233: calling init: /opt/calibre/lib/libxml2.so.16
22233: find library=libxml2.so.2 [0]; searching
22233: trying file=/opt/calibre/lib/libxml2.so.2
22233: trying file=/lib/x86_64-linux-gnu/libxml2.so.2
22233: calling init: /lib/x86_64-linux-gnu/libxml2.so.2
RuntimeError: html5-parser and lxml are using different versions of libxml2. This happens commonly when using pip installed versions of lxml. Use pip install --no-binary lxml lxml instead. libxml2 versions: html5-parser: (2, 9, 14) != lxml: (2, 15, 0)
22233: calling fini: /lib/x86_64-linux-gnu/libxml2.so.2 [0]
22233: calling fini: /opt/calibre/lib/libxml2.so.16 [0]
Spoiler:
bernie |
|
|
|
|
|
#14 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,631
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's just weird something is trying to load libxml.so.2 but nothing in calibre links against that. Maybe one of your calibre plugins? Try running it as
calibre-debug -g -- --ignore-plugins In any case the workaround is simple just do ln -s libxml2.so.16 /opt/calibre/lib/libxml2.so.2 that will force whatever it is to load libxml2.so.16 |
|
|
|
|
|
#15 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,216
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
Quote:
The --ignore-plugins does not make any difference. And the problem only happens when trying to start calibre in debug mode. Starting calibre normally was OK even before the workaround. Last edited by capink; 10-04-2025 at 06:46 AM. |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error Piper on Linux Mint | gippo | Viewer | 4 | 07-29-2025 08:21 AM |
| Cailbre error - OSError #22 | dbennett | Calibre | 1 | 08-12-2024 12:18 AM |
| Upgrade 4.23 to 5.11 on Mint 18.3: Error | Quoth | Calibre | 14 | 02-27-2021 03:27 PM |
| Ctrl-Shft-R Debug vs calibre-debug -g | JimmXinu | Development | 3 | 11-20-2014 10:57 AM |
| Is it possible to start GUI from debug script? | Pepin33 | Development | 2 | 12-08-2012 01:30 PM |