09-16-2022, 05:27 PM | #1 |
Fanatic
Posts: 563
Karma: 5707104
Join Date: Oct 2016
Location: Somewhere in Time
Device: Forma, iPad Mini
|
Calibre on WSL, .note.ABI-tag "bug"
On Debian running natively the script works fine. On Debian running in WSL1 I get the trace below. Some searching around lead me to this bug report for WSL regarding shared libraries.
https://github.com/Microsoft/WSL/issues/3023 Sure enough, the distributed libQt6Core.so.6 include the magic "for GNU/Linux 3.17.0" string. Stripping the .note.ABI-tag from the library makes it work. Code:
[xyz: ~]$ ./calibre.sh 2022-09-16 16:03:32 URL:https://download.calibre-ebook.com/linux-installer.sh [33493/33493] -> "-" [1] Using python executable: /usr/bin/python3 Installing to /opt/calibre Downloading tarball signature securely... Using previously downloaded calibre-6.5.0-x86_64.txz Extracting files to /opt/calibre ... Extracting application files... Failed to import PyQt module: PyQt6.QtCore with error: libQt6Core.so.6: cannot open shared object file: No such file or directory Traceback (most recent call last): File "runpy.py", line 196, in _run_module_as_main File "runpy.py", line 86, in _run_code File "site.py", line 45, in <module> File "site.py", line 39, in main File "bypy-importer.py", line 279, in exec_module File "calibre/linux.py", line 12, in <module> File "bypy-importer.py", line 279, in exec_module File "calibre/customize/ui.py", line 17, in <module> File "bypy-importer.py", line 279, in exec_module File "calibre/customize/builtins.py", line 704, in <module> File "bypy-importer.py", line 279, in exec_module File "calibre/devices/kindle/driver.py", line 5, in <module> File "bypy-importer.py", line 279, in exec_module File "calibre/devices/kindle/apnx.py", line 20, in <module> File "bypy-importer.py", line 279, in exec_module File "calibre/devices/kindle/apnx_page_generator/generators/accurate_page_generator.py", line 7, in <module> File "bypy-importer.py", line 279, in exec_module File "calibre/devices/kindle/apnx_page_generator/generators/fast_page_generator.py", line 7, in <module> File "bypy-importer.py", line 279, in exec_module File "calibre/devices/kindle/apnx_page_generator/i_page_generator.py", line 10, in <module> File "bypy-importer.py", line 279, in exec_module File "calibre/ebooks/mobi/reader/mobi6.py", line 27, in <module> File "bypy-importer.py", line 279, in exec_module File "calibre/utils/img.py", line 13, in <module> ImportError: cannot import name 'QBuffer' from 'qt.core' (/opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/qt/core.pyc) Run "calibre" to start calibre [xyz: ~]$ |
09-16-2022, 11:39 PM | #2 |
creator of calibre
Posts: 44,542
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Interesting wy are you running calibre on WSL when it has native windows binaries witht he same functionality?
|
Advert | |
|
09-17-2022, 09:53 AM | #3 |
Fanatic
Posts: 563
Karma: 5707104
Join Date: Oct 2016
Location: Somewhere in Time
Device: Forma, iPad Mini
|
Because I'm a Unix person. I do nearly all my command line stuff in bash.
While I could rewrite my wrapper scripts to invoke the Windows ebook-convert, it's really clunky making WSL run Windows native executables. Easier for me, and portable with native Linux which I also use, to just install it in WSL as well. |
09-17-2022, 12:11 PM | #4 |
creator of calibre
Posts: 44,542
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Well you will have ot wait for wither Qt, or microsoft or glibc to change and the change to make it into the calibre builds, in the meantime just patch the binaries.
|
09-18-2022, 12:12 PM | #5 |
Fanatic
Posts: 563
Karma: 5707104
Join Date: Oct 2016
Location: Somewhere in Time
Device: Forma, iPad Mini
|
But the bug is the installer doesn't finish. It errors out because of the included library. I can't patch the installer because of the signature check; you are the only one who can do that.
|
Advert | |
|
09-18-2022, 01:24 PM | #6 |
creator of calibre
Posts: 44,542
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The installer is a python script that unpacks a tarball, you can unpack it yourself and not run the installer at all. See the instructions on the linux download page.
|
09-18-2022, 04:11 PM | #7 |
Fanatic
Posts: 563
Karma: 5707104
Join Date: Oct 2016
Location: Somewhere in Time
Device: Forma, iPad Mini
|
This does not fix the bug in your package. But since you're more interested in giving me a hard time over it instead of addressing this bug I guess I'm on my own and maybe won't be using Calibre much longer.
HAND. |
09-18-2022, 05:51 PM | #8 |
Bibliophagist
Posts: 40,536
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Given that this "bug" does not seem to be an issue under the versions of Linux that I've tested, Windows or MacOS, your logic in claiming that an issue that on your system happens under Windows running Windows Subsystem for Linux is a bug in calibre is a trifle hard to follow.
|
09-18-2022, 07:13 PM | #9 | |
Fanatic
Posts: 563
Karma: 5707104
Join Date: Oct 2016
Location: Somewhere in Time
Device: Forma, iPad Mini
|
Quote:
Why this is a Calibre bug: This buggy library, libQt6Core.so.6, is distributed with Calibre and blocks installation and running of Calibre on any Linux system affected by this bug. Therefore it is a bug in Calibre. Note: none of the other libraries distributed with Calibre have this bug. Only libQt6Core.so.6. |
|
09-18-2022, 09:27 PM | #10 |
Grand Sorcerer
Posts: 12,752
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
I'm curious if the same issue exists with WSL 2
Sent from my Pixel 4a using Tapatalk |
09-18-2022, 10:55 PM | #11 |
creator of calibre
Posts: 44,542
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Oh the horror!! You wont use calibre much longer, whatever will I do without you.
|
09-19-2022, 12:01 PM | #12 |
Fanatic
Posts: 563
Karma: 5707104
Join Date: Oct 2016
Location: Somewhere in Time
Device: Forma, iPad Mini
|
Probably not given the different architecture.
Last edited by ratinox; 09-19-2022 at 06:21 PM. |
09-19-2022, 12:02 PM | #13 |
Fanatic
Posts: 563
Karma: 5707104
Join Date: Oct 2016
Location: Somewhere in Time
Device: Forma, iPad Mini
|
Just keep treating users like this and you'll find out.
Last edited by ratinox; 09-19-2022 at 12:05 PM. |
09-19-2022, 12:15 PM | #14 | |
Well trained by Cats
Posts: 30,444
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Do you have any clue on how many ACTIVE users Calibre has?
Quote:
|
|
09-19-2022, 01:06 PM | #15 |
creator of calibre
Posts: 44,542
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre Server: 2 Feature Requests/Ideas... "tag cloud"+"word cloud" | wjBLqf-_9 | Server | 13 | 11-11-2019 01:03 PM |
calibre 3.x: missing "close all" in tag browser? | Grins | Calibre | 3 | 06-24-2017 01:15 PM |
calibre tag browser's "N-News" as Group ? | nikoski | Calibre Companion | 2 | 05-18-2015 03:41 AM |
The element type "p" must be terminated by the matching end-tag "</p>". | uieluck | ePub | 10 | 02-12-2013 08:04 PM |
BUG: GUI View button not working if Author tag contains "ë" | ShellShock | Calibre | 1 | 11-15-2008 02:21 PM |