Tried loading latest calibre 6.1.0 using linux beta on chromebook and getting 2 errors

Bug #1981940 reported by Dennis
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
calibre
Invalid
Undecided
Unassigned

Bug Description

_________________ WARNING ____________________
Setting up completion failed with error:
__________________________________________________

        Traceback (most recent call last):
          File "calibre/linux.py", line 831, in setup_completion
          File "calibre/linux.py", line 573, in write_completion
          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' (/opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/qt/core.pyc)

Setting up desktop integration...
Failed to import PyQt module: PyQt6.QtGui with error: libOpenGL.so.0: cannot open shared object file: No such file or directory

____________________ WARNING ____________________
Setting up desktop integration failed with error:
__________________________________________________

        Traceback (most recent call last):
          File "calibre/linux.py", line 852, in setup_desktop_integration
          File "calibre/linux.py", line 874, in do_setup_desktop_integration
          File "calibre/linux.py", line 905, in install_xdg_junk
          File "calibre/linux.py", line 890, in install_icons
          File "calibre/linux.py", line 880, in install_single_icon
          File "calibre/linux.py", line 1301, in render_img
        ImportError: cannot import name 'QImage' from 'qt.core' (/opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/qt/core.pyc)

Creating un-installer: /usr/bin/calibre-uninstall

There were 2 warnings

* Setting up completion failed with error:

* Setting up desktop integration failed with error:

Revision history for this message
Kovid Goyal (kovid) wrote :

Read the notes on the calibre linux download page.

Changed in calibre:
status: New → Invalid
Revision history for this message
Shubhranshu Jena (shubhu2411) wrote :

Similar error on Ubuntu 20.04 server (lxc container)
Is it related to the GUI? I am still able to run the server and access the web portal through browser.

Setting up command-line completion...
Installing zsh completion to: /usr/share/zsh/vendor-completions/_calibre
Failed to find directory to install bash completions, using default.
Installing bash completion to: /usr/share/bash-completion/completions/
Failed to import PyQt module: PyQt6.QtWebEngineCore with error: libnss3.so: cannot open shared object file: No such file or directory

____________________ WARNING ____________________
Setting up completion failed with error:
__________________________________________________

        Traceback (most recent call last):
          File "calibre/linux.py", line 831, in setup_completion
          File "calibre/linux.py", line 574, in write_completion
          File "bypy-importer.py", line 279, in exec_module
          File "calibre/gui2/viewer/main.py", line 15, in <module>
          File "bypy-importer.py", line 279, in exec_module
          File "calibre/gui2/viewer/ui.py", line 29, in <module>
          File "bypy-importer.py", line 279, in exec_module
          File "calibre/gui2/viewer/annotations.py", line 13, in <module>
          File "bypy-importer.py", line 279, in exec_module
          File "calibre/gui2/viewer/web_view.py", line 14, in <module>
        ImportError: cannot import name 'QWebEnginePage' from 'qt.webengine' (/opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/qt/webengine.pyc)

Setting up desktop integration...

____________________ WARNING ____________________
Setting up desktop integration failed with error:
__________________________________________________

        Traceback (most recent call last):
          File "calibre/linux.py", line 852, in setup_desktop_integration
          File "calibre/linux.py", line 874, in do_setup_desktop_integration
          File "calibre/linux.py", line 905, in install_xdg_junk
          File "calibre/linux.py", line 890, in install_icons
          File "calibre/linux.py", line 884, in install_single_icon
          File "subprocess.py", line 364, in check_call
          File "subprocess.py", line 345, in call
          File "subprocess.py", line 966, in __init__
          File "subprocess.py", line 1842, in _execute_child
        FileNotFoundError: [Errno 2] No such file or directory: 'xdg-icon-resource'

Creating un-installer: /usr/bin/calibre-uninstall

There were 2 warnings

* Setting up completion failed with error:

* Setting up desktop integration failed with error:

Run "calibre" to start calibre

Revision history for this message
Kovid Goyal (kovid) wrote :

You are missing libnss3.so

Revision history for this message
S Kim (skim007) wrote :

Similar error on wsl Ubuntu

Failed to import PyQt module: PyQt6.QtCore with error: libQt6Core.so.6: cannot open shared object file: No such file or directory

____________________ WARNING ____________________
Setting up completion failed with error:
__________________________________________________

        Traceback (most recent call last):
          File "calibre/linux.py", line 837, in setup_completion
          File "calibre/linux.py", line 582, in write_completion
          File "bypy-importer.py", line 279, in exec_module
          File "calibre/ebooks/metadata/sources/cli.py", line 15, 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)

Setting up desktop integration...
Failed to import PyQt module: PyQt6.QtGui with error: libQt6Core.so.6: cannot open shared object file: No such file or directory

____________________ WARNING ____________________
Setting up desktop integration failed with error:
__________________________________________________

        Traceback (most recent call last):
          File "calibre/linux.py", line 858, in setup_desktop_integration
          File "calibre/linux.py", line 880, in do_setup_desktop_integration
          File "calibre/linux.py", line 911, in install_xdg_junk
          File "calibre/linux.py", line 896, in install_icons
          File "calibre/linux.py", line 886, in install_single_icon
          File "calibre/linux.py", line 1308, in render_img
        ImportError: cannot import name 'QImage' from 'qt.core' (/opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/qt/core.pyc)

Creating un-installer: /usr/bin/calibre-uninstall

Revision history for this message
Justin Loecher (therealfayz) wrote :
Download full text (5.8 KiB)

Hello, I hope this is the right place to post this. I have created a similar post over on Mobile Read as well. https://www.mobileread.com/forums/showthread.php?t=359250&highlight=lxc

Issues installing on a Proxmox LXC.

Hypervisor: Proxmox 8.1.4
LXC OS: Ubuntu 22.04.04 fresh install (Headless)
LXC Storage: 25GiB
VCPU Cores: 2
Memory: 4096 MiB
Swap: 0

Hello, I am having trouble getting Calibre to install and run for me. I am on LXC 15 or 16 now, as I have tried multiple guides, and install methods, but none seem to work. All roads lead to the same issue.

[CODE]root@Calibre:~# sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin
Using python executable: /usr/bin/python3
2024-02-19 14:45:42 URL:https://download.calibre-ebook.com/linux-installer.sh [34233/34233] -> "-" [1]
Installing to /opt/calibre
Downloading tarball signature securely...
Will download and install calibre-7.5.1-x86_64.txz
                                  Downloading calibre-7.5.1-x86_64.txz
100% [=============================================================================================]
                                                                                                       Downloaded 146274300 bytes
Checking downloaded file integrity...
Extracting files to /opt/calibre ...
Extracting application files...
Creating symlinks...
        Symlinking /opt/calibre/ebook-device to /usr/bin/ebook-device
        Symlinking /opt/calibre/ebook-meta to /usr/bin/ebook-meta
        Symlinking /opt/calibre/ebook-convert to /usr/bin/ebook-convert
        Symlinking /opt/calibre/ebook-polish to /usr/bin/ebook-polish
        Symlinking /opt/calibre/markdown-calibre to /usr/bin/markdown-calibre
        Symlinking /opt/calibre/web2disk to /usr/bin/web2disk
        Symlinking /opt/calibre/calibre-server to /usr/bin/calibre-server
        Symlinking /opt/calibre/lrf2lrs to /usr/bin/lrf2lrs
        Symlinking /opt/calibre/lrs2lrf to /usr/bin/lrs2lrf
        Symlinking /opt/calibre/calibre-debug to /usr/bin/calibre-debug
        Symlinking /opt/calibre/calibredb to /usr/bin/calibredb
        Symlinking /opt/calibre/calibre-parallel to /usr/bin/calibre-parallel
        Symlinking /opt/calibre/calibre-customize to /usr/bin/calibre-customize
        Symlinking /opt/calibre/fetch-ebook-metadata to /usr/bin/fetch-ebook-metadata
        Symlinking /opt/calibre/calibre-smtp to /usr/bin/calibre-smtp
        Symlinking /opt/calibre/calibre to /usr/bin/calibre
        Symlinking /opt/calibre/lrfviewer to /usr/bin/lrfviewer
        Symlinking /opt/calibre/ebook-viewer to /usr/bin/ebook-viewer
        Symlinking /opt/calibre/ebook-edit to /usr/bin/ebook-edit
Setting up command-line completion...
Installing zsh completion to: /usr/share/zsh/vendor-completions/_calibre
Failed to find directory to install bash completions, using default.
Installing bash completion to: /usr/share/bash-completion/completions/
Failed to import PyQt module: PyQt6.QtWebEngineCore with error: libnss3.so: cannot open shared object file: No such file or directory

____________________ WARNING ____________________
Setting up completion failed with error:
______________________...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.