![]() |
#1 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jul 2022
Device: raspberry pi
|
Calibre 6 install Raspberry PI
I attempted an install of calibre 6 on a raspberry pi 4 2GB of ram. If failed. I ran a debu and it seems to not like many of my plugins that were installed with the previous 5.12.0 version through apt. The output of the debug script is below.
calibre-debug -g calibre 6.1 embedded-python: True Linux-5.15.32-v8+-aarch64-with-glibc2.31 Linux ('64bit', 'ELF') ('Linux', '5.15.32-v8+', '#1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022') Python 3.10.1 Interface language: None Failed to import PyQt module: PyQt6.QtWidgets with error: libOpenGL.so.0: cannot open shared object file: No such file or directory Failed to initialize plugin: '/home/pi/.config/calibre/plugins/DeDRM.zip' Traceback (most recent call last): File "calibre/customize/ui.py", line 744, in initialize_plugins File "calibre/customize/ui.py", line 64, in load_plugin File "calibre/customize/zipplugin.py", line 304, in load 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 203, in exec_module File "calibre_plugins.dedrm.__init__", line 103, in <module> from calibre.gui2 import is_ok_to_use_qt File "bypy-importer.py", line 279, in exec_module File "calibre/gui2/__init__.py", line 13, in <module> ImportError: cannot import name 'QApplication' from 'qt.core' (/usr/lib/calibre/calibre/lib/calibre-extensions/python-lib.bypy.frozen/qt/core.pyc) Failed to initialize plugin: '/home/pi/.config/calibre/plugins/Goodreads More Tags.zip' Traceback (most recent call last): File "calibre/customize/ui.py", line 744, in initialize_plugins File "calibre/customize/ui.py", line 64, in load_plugin File "calibre/customize/zipplugin.py", line 304, in load 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 203, in exec_module File "calibre_plugins.goodreads_more_tags.__init__" , line 12, in <module> from .config import plugin_prefs, KEY_INTEGRATION_ENABLED, KEY_INTEGRATION_TIMEOUT File "calibre/customize/zipplugin.py", line 203, in exec_module File "calibre_plugins.goodreads_more_tags.config", line 7, in <module> from calibre.gui2 import get_current_db, question_dialog File "bypy-importer.py", line 279, in exec_module File "calibre/gui2/__init__.py", line 13, in <module> ImportError: cannot import name 'QApplication' from 'qt.core' (/usr/lib/calibre/calibre/lib/calibre-extensions/python-lib.bypy.frozen/qt/core.pyc) Successfully initialized third party plugins: Calibre Power Search Plugin (2, 1, 2) && Smashwords Metadata (1, 0, 2) 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 41, in main File "calibre/debug.py", line 226, in main File "calibre/gui_launch.py", line 72, in calibre File "bypy-importer.py", line 279, in exec_module File "calibre/gui2/__init__.py", line 13, in <module> ImportError: cannot import name 'QApplication' from 'qt.core' (/usr/lib/calibre/calibre/lib/calibre-extensions/python-lib.bypy.frozen/qt/core.pyc) Any ideas what is going wrong here? I have checked the items shown on the Linux install page of the Calibre website and I seem to meet all requirements. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,366
Karma: 78877538
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Due to calibre 6 moving to qt6 from qt5 many plugins needed to be updated. Before installing calibre 6 try updating plugins to current levels, or post installing calibre 6 update them.
Sent from my Pixel 4a using Tapatalk |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,398
Karma: 145491800
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Whatever version DeDRM you have needs to be updated to the current 10.0.3. That's the Calibre 6 compatible version.
|
![]() |
![]() |
![]() |
#4 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,178
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
See if calibre will start with plugins disabled, in a terminal type:
Code:
calibre --ignore-plugins then click Show only user installed plugin then disable DeDRM and Goodreads More Tags plugin's. Then try to start calibre bernie Quote:
|
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,491
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Regardless of plugins, this:
ImportError: cannot import name 'QApplication' from 'qt.core' seems like a dealbreaker. As does the missing libOpenGl error. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
you are missing required system libraries see the notes on the calibre linux download page.
|
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jul 2022
Device: raspberry pi
|
Debian bullseye is on QT5. that is my base problem. Oh well, i guess i just have to roll back to 5.13.0 for now.
|
![]() |
![]() |
![]() |
#8 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,398
Karma: 145491800
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#9 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,303
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,178
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Looks like the required system libraries are in the Debian bullseye despotically.
https://packages.debian.org/bullseye...s/qt6-base-dev bernie |
![]() |
![]() |
![]() |
#11 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jul 2022
Device: Boox Poke
|
Hey all, I am also a bit confused by what I am supposed to do to install the new Calibre 6 on my raspberryPi. I see mentions of "the linux download page", but everything there takes me to intel references, nothing to do with ARM. I have tried using the "calibre-6.1.0-x86_64.txz" and the "calibre-6.1.0-arm64.txz" files and manual binary install and I get an error… "/opt/calibre/calibre_postinstall: 1: Syntax error: "(" unexpected" in both cases…
I tried using the binary install command (even though it mentions intel why not…) and again, fails… So am I missing something? I can see people have got it to install, but how? Source install? |
![]() |
![]() |
![]() |
#12 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,303
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
After that, the manual install line from the Linux install page should work after editing to give the correct tarball name, etc. I don't have an ARM64 Linux box to test on but the install.sh script looks as if all the needed ARM64 select code is in place for it to work if all the prerequisites are in place. Last edited by DNSB; 07-18-2022 at 05:06 PM. Reason: Edited after looking at the install.sh ARM code |
|
![]() |
![]() |
![]() |
#13 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,178
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Check and make sure that your have libEGL installed.
bernie Quote:
|
|
![]() |
![]() |
![]() |
#14 | |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jul 2022
Device: Boox Poke
|
Thanks! @DNSB that does look like a typo on the link indeed!
However, I still seem to get errors… /opt/calibre/calibre_postinstall: 1: Syntax error: word unexpected (expecting ")") If I cd into that directory and run directly -bash: ./calibre_postinstall: cannot execute binary file: Exec format error I took a look at the file info… ./calibre_postinstall: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=xxx, for GNU/Linux 3.7.0, stripped I have a Rpi 400, 64-bit CPU… Hmm… arch command results in "armv7l" Here is where I am a bit in the deep end, I assume that should be compatible, but maybe not? Quote:
|
|
![]() |
![]() |
![]() |
#15 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jul 2022
Device: Boox Poke
|
So it seems that Rpi 400 is 64-bit, but raspian is 32-bit, so the new binaries won't install… So I guess i need to try and re-install the older 3.9 version?
|
![]() |
![]() |
![]() |
Tags |
calibre 6, raspberry pi 4 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre with Raspberry Pi 4 | jjparker | Devices | 10 | 05-30-2023 05:27 PM |
Calibre 6 and Raspberry Pi OS | beedaddy | Calibre | 11 | 12-16-2022 10:54 PM |
Calibre 4 for Raspberry Pi? | ganymede | Calibre | 2 | 08-03-2020 10:31 PM |
Calibre on Raspberry Pi 3 | pckopp | Devices | 2 | 12-21-2016 12:19 PM |
Calibre and raspberry pi | ottischwenk | Related Tools | 12 | 02-16-2015 08:43 AM |