Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-30-2026, 11:05 PM   #16
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,910
Karma: 64184592
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by xiatian View Post
Thanks, but I prefer the official AMD64 Linux binary release from GitHub—it’s the cleanest way to install calibre in my complex Debian 12 environment. Anyway, I’ve already found a workaround as I mentioned.
Distros are known to tamper with pieces that calibre depends upon. That is why the OFFICIAL commandline makes sure it has what calibre was designed with.

You have been advised. Refusal to try is wasting all our time.
theducks is offline   Reply With Quote
Old Yesterday, 03:55 AM   #17
xiatian
Connoisseur
xiatian began at the beginning.
 
Posts: 64
Karma: 10
Join Date: Oct 2018
Device: kindle
Quote:
Originally Posted by kovidgoyal View Post
Thanks for your work! But tested the new preload_libxml2() fix in bypy/linux/site.py — it doesn't fully solve the problem, still get the same RuntimeError. I'm not sure if it's worth more work since I've already worked around it on my end with QTWEBENGINE_CHROMIUM_FLAGS="--disable-gpu --disable-software-rasterizer".
However, if it is worth to devote more, here is the LD_DEBUG process:

Quote:
The preload does work as intended — libxml2.so.16 and lxml.etree.so
get loaded early, before anything else:

find library=libxml2.so.16 [0]; searching
trying file=/root/calibre/lib/libxml2.so.16
...
calling init: /root/calibre/lib/calibre-extensions/lxml.etree.so

But later in the same process, once QtWebEngine reaches its EGL/Mesa
fallback, libxml2.so.2 still gets pulled in and loaded on top of it:

calling init: /lib/x86_64-linux-gnu/libEGL_mesa.so.0
find library=libxml2.so.2 [0]; searching
trying file=/root/calibre/lib/libxml2.so.2
trying file=/lib/x86_64-linux-gnu/libxml2.so.2
calling init: libicudata.so.72 / libpciaccess.so.0 / libxml2.so.2
calling init: libLLVM-15.so.1
calling init: /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
calling init: html5_parser.html_parser.so
RuntimeError: html5-parser and lxml are using different versions
of libxml2 ... html5-parser: (2, 9, 14) != lxml: (2, 15, 3)

So preloading libxml2.so.16 first doesn't prevent libxml2.so.2 from
also being loaded afterward — they're different SONAMEs, so the
dynamic linker treats them as two separate libraries and happily
loads both into the same process rather than deduping. Whatever
symbol html5-parser's version check reads still seems to resolve to
the later-loaded one.

Preloading the correct version doesn't seem sufficient on its own —
the Mesa software-rasterizer fallback (swrast_dri.so, pulling in the
system's libxml2.so.2) still needs to either be prevented from loading
at all, or html5-parser's version check needs to explicitly bind to
the calibre-bundled library instance rather than relying on implicit
symbol resolution.
xiatian is offline   Reply With Quote
Advert
Old Yesterday, 05:52 AM   #18
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 46,417
Karma: 29634066
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Hmm well that should be fixed by pre loading html5_parser as well.
kovidgoyal is offline   Reply With Quote
Old Yesterday, 03:19 PM   #19
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 84,349
Karma: 153744555
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by xiatian View Post
Thanks, but I prefer the official AMD64 Linux binary release from GitHub—it’s the cleanest way to install calibre in my complex Debian 12 environment. Anyway, I’ve already found a workaround as I mentioned.
But you should not have had to do that had you installed the official release. Besides, there's now a plugin you can use to update calibre for you. That way you’d get the official version without any extra gotchas

It's called Calibre Auto-Updater.

Last edited by JSWolf; Yesterday at 03:28 PM.
JSWolf is offline   Reply With Quote
Old Yesterday, 05:22 PM   #20
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 14,047
Karma: 83121446
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
I'm as usual baffled and confused. The OP states they install Calibre using the official release of the AMD64 build from GitHub. No where do they mention installing from a distributions repository.
PeterT is offline   Reply With Quote
Advert
Reply

Tags
ebook-convert


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert a pdf to epub for edit back to pdf increased page numbers. Construct Conversion 4 07-18-2023 12:56 PM
Convert Image PDF to PDF with text or other ebook format. Memes PDF 7 05-01-2023 04:52 PM
ebook-convert changes width of pdf pdf-odd-even-offset and pdf-add-toc used both Lafisrap Conversion 4 09-04-2020 06:43 AM


All times are GMT -4. The time now is 12:02 AM.


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