Calibre couldn't open epub file imported to it

Hello Garuda users.
The calibre app that I installed cannot open an epub file imported to it. I’ve updated my systm several time, but the problem persisted.
Below is the output of garuda-inxi:

System:
  Kernel: 6.6.1-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=b6984b4a-ef29-4b30-9d81-178a68cfacca rw rootflags=subvol=@
    quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0
    resume=UUID=37935d42-f350-43b1-9831-12e041f9b4f7 loglevel=3 ibt=off
  Desktop: KDE Plasma v: 5.27.9 tk: Qt v: 5.15.11 wm: kwin_x11 vt: 2
    dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: ASUS TUF Gaming F15 FX507ZR_FX507ZR
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: FX507ZR v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: FX507ZR.315 date: 06/17/2022
Battery:
  ID-1: BAT1 charge: 52.3 Wh (59.6%) condition: 87.8/90.2 Wh (97.4%)
    volts: 15.8 min: 15.9 model: ASUS A32-K55 type: Li-ion serial: N/A
    status: not charging
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse M545/M546
    serial: <filter> charge: 55% (should be ignored) rechargeable: yes
    status: discharging
CPU:
  Info: model: 12th Gen Intel Core i7-12700H bits: 64 type: MST AMCP
    arch: Alder Lake gen: core 12 level: v3 note: check built: 2021+
    process: Intel 7 (10nm ESF) family: 6 model-id: 0x9A (154) stepping: 3
    microcode: 0x430
  Topology: cpus: 1x cores: 14 mt: 6 tpc: 2 st: 8 threads: 20 smt: enabled
    cache: L1: 1.2 MiB desc: d-8x32 KiB, 6x48 KiB; i-6x32 KiB, 8x64 KiB
    L2: 11.5 MiB desc: 6x1.2 MiB, 2x2 MiB L3: 24 MiB desc: 1x24 MiB
  Speed (MHz): avg: 435 high: 947 min/max: 400/4600:4700:3500 scaling:
    driver: intel_pstate governor: performance cores: 1: 400 2: 400 3: 559
    4: 400 5: 400 6: 400 7: 947 8: 400 9: 400 10: 400 11: 400 12: 400 13: 400
    14: 400 15: 400 16: 400 17: 400 18: 400 19: 400 20: 400 bogomips: 107520
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel Alder Lake-P GT2 [Iris Xe Graphics] vendor: ASUSTeK
    driver: i915 v: kernel arch: Gen-12.2 process: Intel 10nm built: 2021-22+
    ports: active: eDP-1 empty: DP-1,DP-2 bus-ID: 0000:00:02.0
    chip-ID: 8086:46a6 class-ID: 0300
  Device-2: NVIDIA GA104M [GeForce RTX 3070 Mobile / Max-Q] vendor: ASUSTeK
    driver: nvidia v: 545.29.02 alternate: nouveau,nvidia_drm non-free: 545.xx+
    status: current (as of 2023-10; EOL~2026-12-xx) arch: Ampere code: GAxxx
    process: TSMC n7 (7nm) built: 2020-2023 ports: active: none
    empty: DP-3,HDMI-A-1,eDP-2 bus-ID: 0000:01:00.0 chip-ID: 10de:249d
    class-ID: 0300
  Device-3: Sonix USB2.0 HD UVC WebCam driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-7:4 chip-ID: 322e:202c
    class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.9 with: Xwayland v: 23.2.2
    compositor: kwin_x11 driver: X: loaded: intel,nvidia
    unloaded: modesetting,nouveau alternate: fbdev,nv,vesa dri: i965 gpu: i915
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 mapped: eDP1 model: TL156VDXP0101 built: 2021
    res: 1920x1080 hz: 300 dpi: 143 gamma: 1.2 size: 340x190mm (13.39x7.48")
    diag: 395mm (15.5") ratio: 16:9 modes: 1920x1080
  API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
    drv: nvidia device: 2 drv: iris device: 3 drv: swrast surfaceless:
    drv: nvidia x11: drv: iris inactive: gbm,wayland,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 23.2.1-arch1.2
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel Graphics (ADL GT2)
    device-ID: 8086:46a6 memory: 14.89 GiB unified: yes
  API: Vulkan v: 1.3.269 layers: 10 device: 0 type: discrete-gpu name: NVIDIA
    GeForce RTX 3070 Laptop GPU driver: nvidia v: 545.29.02
    device-ID: 10de:249d surfaces: xcb,xlib device: 1 type: integrated-gpu
    name: Intel Graphics (ADL GT2) driver: mesa intel v: 23.2.1-arch1.2
    device-ID: 8086:46a6 surfaces: xcb,xlib device: 2 type: cpu name: llvmpipe
    (LLVM 16.0.6 256 bits) driver: mesa llvmpipe v: 23.2.1-arch1.2 (LLVM
    16.0.6) device-ID: 10005:0000 surfaces: xcb,xlib
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_tgl
    bus-ID: 0000:00:1f.3 chip-ID: 8086:51c8 class-ID: 0403
  Device-2: NVIDIA GA104 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 0000:01:00.1 chip-ID: 10de:228b
    class-ID: 0403
  Device-3: EDFIER EDIFIER P180 USB-C
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 3-4:3 chip-ID: 2d99:e026 class-ID: 0300
    serial: <filter>
  Device-4: ASUSTek C-Media Audio driver: hid-generic,snd-usb-audio,usbhid
    type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-9:5
    chip-ID: 0b05:6203 class-ID: 0300
  API: ALSA v: k6.6.1-zen1-1-zen status: kernel-api with: aoss
    type: oss-emulator tools: N/A
  Server-1: PipeWire v: 0.3.85 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 0000:00:14.3 chip-ID: 8086:51f0 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  Device-2: Intel Ethernet I219-LM vendor: ASUSTeK driver: e1000e v: kernel
    port: N/A bus-ID: 0000:00:1f.6 chip-ID: 8086:1a1e class-ID: 0200
  IF: eno2 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-10:6 chip-ID: 8087:0026
    class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.2 lmp-v: 11
    status: discoverable: no pairing: no
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
    v: 0.6 port: N/A bus-ID: 0000:00:0e.0 chip-ID: 8086:467f rev: class-ID: 0104
Drives:
  Local Storage: total: 1.84 TiB used: 854.18 GiB (45.3%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:2 vendor: Samsung
    model: MZVLQ1T0HBLB-00B00 size: 953.87 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: FXM7301Q temp: 49.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Samsung model: SSD 980 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 3B4QFXO7 temp: 43.9 C
    scheme: GPT
Partition:
  ID-1: / raw-size: 475.29 GiB size: 475.29 GiB (100.00%)
    used: 169.02 GiB (35.6%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:6
  ID-2: /boot/efi raw-size: 359 MiB size: 358.3 MiB (99.80%)
    used: 576 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p6 maj-min: 259:7
  ID-3: /home raw-size: 475.29 GiB size: 475.29 GiB (100.00%)
    used: 169.02 GiB (35.6%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:6
  ID-4: /var/log raw-size: 475.29 GiB size: 475.29 GiB (100.00%)
    used: 169.02 GiB (35.6%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:6
  ID-5: /var/tmp raw-size: 475.29 GiB size: 475.29 GiB (100.00%)
    used: 169.02 GiB (35.6%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:6
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 15.25 GiB used: 31.5 MiB (0.2%)
    priority: 100 comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 20
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 4.88 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p7 maj-min: 259:8
Sensors:
  System Temperatures: cpu: 48.0 C mobo: N/A
  Fan Speeds (rpm): cpu: 3000
Info:
  Processes: 398 Uptime: 13m wakeups: 0 Memory: total: 16 GiB note: est.
  available: 15.25 GiB used: 6.52 GiB (42.8%) Init: systemd v: 254
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 alt: 11/12
  clang: 16.0.6 Packages: pm: pacman pkgs: 2158 libs: 565
  tools: octopi,pamac,paru,yay pm: flatpak pkgs: 0 Shell: fish v: 3.6.1
  default: Bash v: 5.2.15 running-in: yakuake inxi: 3.3.31
Garuda (2.6.19-2):
  System install date:     2023-05-11
  Last full system update: 2023-11-21
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut nvidia-dkms
  Windows dual boot:       Probably (Run as root to verify)
  Failed units:            

A few days earlier I installed calibre, and then I imported an epub file to it. When the calibre opened, I double click the imported epub, ebook-viewer appeared and showed “Loading book, please wait” for a few second and then the ebook-viewer vanished. I did try to open the “Quick Start Guide” (default epub in calibre), but the result is the same.

I tried to open calibre from the terminal, and below is shown on terminal

libGL error: MESA-LOADER: failed to open nouveau: /home/xxx/ProgramFiles/miniconda3/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /us
r/lib/dri/nouveau_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: nouveau
libGL error: MESA-LOADER: failed to open iris: /home/xxx/ProgramFiles/miniconda3/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/l
ib/dri/iris_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /home/xxx/ProgramFiles/miniconda3/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr
/lib/dri/swrast_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
Failed to initialize plugin: SmartDevice App Interface (0, 0, 1)
Failed to initialize plugin: <class 'calibre.devices.smart_device_app.driver.SMART_DEVICE_APP'>

If I open ebook-viewer from terminal, below is the result:

Failed to initialize plugin: SmartDevice App Interface (0, 0, 1)
Failed to initialize plugin: <class 'calibre.devices.smart_device_app.driver.SMART_DEVICE_APP'>
Traceback (most recent call last):
File "/usr/bin/ebook-viewer", line 21, in <module>
sys.exit(ebook_viewer())
File "/usr/lib/calibre/calibre/gui_launch.py", line 102, in wrapper
return func(*a, **kw)
File "/usr/lib/calibre/calibre/gui_launch.py", line 117, in ebook_viewer
from calibre.gui2.viewer.main import main
File "/usr/lib/calibre/calibre/gui2/viewer/main.py", line 15, in <module>
from calibre.gui2.viewer.ui import EbookViewer, is_float
File "/usr/lib/calibre/calibre/gui2/viewer/ui.py", line 29, in <module>
from calibre.gui2.viewer.annotations import (
File "/usr/lib/calibre/calibre/gui2/viewer/annotations.py", line 11, in <module>
from calibre.gui2.viewer.convert_book import update_book
File "/usr/lib/calibre/calibre/gui2/viewer/convert_book.py", line 16, in <module>
from calibre.srv.render_book import RENDER_VERSION
File "/usr/lib/calibre/calibre/srv/render_book.py", line 41, in <module>
from calibre_extensions.fast_css_transform import transform_properties
ImportError: /home/xxx/ProgramFiles/miniconda3/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /usr/lib/calibre/calibre/plugins/fast_cs
s_transform.so)

I don’t know if this related,

  1. every time my Garuda OS on booting process, there are several flicker.
  2. If I open dolphin, okular, mendeleydesktop on terminal (they opened and functioned well), they showed:
libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: nouveau
[QtOIIO] Plugin Initialized
  1. If I watched video on smplayer and moving dolphin at the same time, the moving process wasn’t smooth. But If smplayer was on pause, moving dolphin again and it moved smoothly.

Thank you for your attention.

What was your method for installing Calibre?

1 Like

I installed it using terminal with below commands

sudo pacman -S calibre

Hi @thunderel05 , i recommend installing Calibre using this command :
yay -S calibre-git
The app releases on GitHub are just the stable versions of it, so pulling it directly from GitHub with new fixes and stable versions in every update is just perfect.

I am sorry for replying so late. I tried it, this came up

SIPing 4 files...
/home/thunderel05/ProgramFiles/miniconda3/bin/python -c 'from sipbuild.tools.build import main; main();' --verbose --no-make --qmake /usr/bin/qmake6
-c: Unable to import 'pyqtbuild': No module named 'pyqtbuild'

==> ERROR: A failure occurred in build().
Aborting...
-> error making: calibre-git-exit status 4
-> Failed to install the following packages. Manual intervention is required:
calibre-git - exit status 4

I searched google to find pyqtbuild" and installed using

pip install pyqt-builder

I did install calibre-git again using
yay -S calibre-git

then this came up

ModuleNotFoundError: No module named 'calibre.gui2.filename_pattern_ui'
==> ERROR: A failure occurred in build().
Aborting...
-> error making: calibre-git-exit status 4
-> Failed to install the following packages. Manual intervention is required:
calibre-git - exit status 4

Any suggestion?

Hi @thunderel05 , please run yay -Scc
you will get something like :

Cache directory: /var/cache/pacman/pkg/
:: Do you want to remove ALL files from cache? [y/N] n

Database directory: /var/lib/pacman/
:: Do you want to remove unused repositories? [Y/n] n

Build directory: /home/joe/.cache/yay
==> Do you want to remove ALL AUR packages from cache? [Y/n] y
removing AUR packages from cache...

chose n for no or y for yes (if you don’t know , then put n for the first two and the 3rd one y)
run garuda-update , reboot (restart the system)
then run again yay -S calibre-git

reference : here

yay : here

Btw, Garuda use paru.

And yay is an alias for paru

# Replace yay with paru
[ ! -x /usr/bin/yay ] && [ -x /usr/bin/paru ] && alias yay='paru'
2 Likes

It is not recommended to install in this manner. Stick to official Arch repos or the AUR whenever possible for package installations.

3 Likes

Just did this but the problem remain

File "/home/xxx/.cache/yay/calibre-git/src/calibre/src/calibre/gui2/widgets.py", line 24, in <module>
from calibre.gui2.filename_pattern_ui import Ui_Form
ModuleNotFoundError: No module named 'calibre.gui2.filename_pattern_ui'
==> ERROR: A failure occurred in build().
Aborting...
-> error making: calibre-git-exit status 4
-> Failed to install the following packages. Manual intervention is required:
calibre-git - exit status 4

Any other suggestion sir?

Just use paru

paru calibre
11 aur/librone 1.3-1 [+1 ~0.00] [Verwaist]
    scarica e-book in italiano | ebook | companion per calibre
10 aur/calibre-server-systemd 1.0-2 [+1 ~0.00]
    Systemd service for calibre-server
 9 aur/degourou 1.3.8-2 [+2 ~0.19]
    Automate the process of getting decrypted ebook from InternetArchive without the
    need for Adobe Digital Editions and Calibre
 8 aur/cops 1.1.3-1 [+2 ~0.00]
    Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre 
    content server / Calibre2OPDS to serve ebooks
 7 aur/calibre-web 0.6.21-1 [+2 ~0.01]
    Web app for browsing, reading and downloading eBooks stored in a Calibre database
 6 aur/calibre-plugin-goodreads 1.7.9-1 [+2 ~0.00]
    Downloads metadata and covers from Goodreads - Calibre Plugin
 5 aur/calibre-unicode-path 6.26.0-1 [+3 ~0.01]
    Ebook management application. With unicode filename and path patch.
 4 aur/calibre-installer 0.4-1 [+14 ~0.00]
    Automatically install and update the calibre standalone binaries
 3 aur/calibre-plugin-dedrm 10.0.3-1 [+17 ~0.76]
    DeDRM tools for ebooks - Calibre plugin
 2 aur/calibre-git 6.22.0.r1.gca2b4e02ed-1 [+17 ~0.00] [Veraltet: 2023-12-01]
    Ebook management application
 1 extra/calibre 7.1.0-2 [33.35 MiB 116.83 MiB]
    Ebook management application
:: Zu installierende Pakete (z. B: 1 2 3, 1-3):
:: 

Use 1 and enter.

Works

Paket (36)                    Neue Version  Netto-Veränderung  Größe des Downloads

extra/chmlib                  0.40-7                 0,16 MiB             0,02 MiB
extra/jxrlib                  0.2.4-2                0,62 MiB             0,19 MiB
extra/libunrar                1:6.2.12-1             0,30 MiB             0,13 MiB
extra/mathjax                 3.2.2-1               23,02 MiB             1,50 MiB
extra/optipng                 0.7.7-2                0,10 MiB             0,05 MiB
extra/podofo                  0.10.2-1               3,22 MiB             1,04 MiB
extra/python-apsw             3.43.1.0-1             3,25 MiB             0,53 MiB
extra/python-async-timeout    4.0.3-1                0,03 MiB             0,01 MiB
core/python-brotli            1.1.0-1                0,80 MiB             0,32 MiB
extra/python-brotlicffi       1.1.0.0-1              0,11 MiB             0,02 MiB
extra/python-css-parser       1.0.9-1                2,30 MiB             0,33 MiB
extra/python-faust-cchardet   2.1.19-1               0,34 MiB             0,12 MiB
extra/python-feedparser       6.0.10-3               0,64 MiB             0,12 MiB
extra/python-html2text        2020.1.16-9            0,13 MiB             0,04 MiB
extra/python-html5-parser     0.4.11-1               0,51 MiB             0,15 MiB
extra/python-html5lib         1.1-13                 1,71 MiB             0,25 MiB
extra/python-inflate64        0.3.1-2                0,08 MiB             0,03 MiB
extra/python-mechanize        1:0.4.8-2              1,32 MiB             0,23 MiB
extra/python-multivolumefile  0.2.3-6                0,08 MiB             0,02 MiB
extra/python-netifaces        0.11.0-4               0,04 MiB             0,01 MiB
extra/python-pdftotext        2.2.2-4                0,02 MiB             0,01 MiB
extra/python-py7zr            0.20.6-1               0,81 MiB             0,15 MiB
extra/python-pybcj            1.0.1-2                0,10 MiB             0,03 MiB
extra/python-pychm            0.8.6-7                0,10 MiB             0,03 MiB
extra/python-pycryptodome     3.19.0-1               4,36 MiB             1,06 MiB
extra/python-pycryptodomex    3.12.0-2               7,95 MiB             1,42 MiB
extra/python-pyppmd           1.0.0-2                0,20 MiB             0,06 MiB
extra/python-pyqt6-webengine  6.6.0-1                0,61 MiB             0,12 MiB
extra/python-pyzstd           0.15.9-1               0,33 MiB             0,07 MiB
extra/python-regex            2023.10.3-1            2,39 MiB             0,38 MiB
extra/python-sgmllib3k        1.0.0-5                0,06 MiB             0,02 MiB
extra/python-texttable        1.7.0-1                0,09 MiB             0,02 MiB
extra/python-unrardll         0.1.7-1                0,07 MiB             0,02 MiB
extra/python-xxhash           3.2.0-2                0,06 MiB             0,02 MiB
extra/python-zeroconf         0.63.0-1               5,16 MiB             0,52 MiB
extra/calibre                 7.1.0-2              116,83 MiB            33,35 MiB

Gesamtgröße des Downloads:              42,39 MiB
Gesamtgröße der installierten Pakete:  177,92 MiB

Maybe the epub file is corrupt?

5 Likes

Thank you @SGS , it worked

I am sorry, I am too focused on how to install the calibre that I forgot the reason I start this post is because I can’t open the epub file that I imported to calibre.

I still faced the problem of not able to open the epub file (the ebook-viewer loading for a while and then closed on itself. Can you open an epub file in your calibre library?

If I try to run ebook-viewer from terminal the output

libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: nouveau
doh set to ""  --  SystemOnly
libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: nouveau
Maximum number of clients reached
fish: Job 1, 'ebook-viewer' terminated by signal SIGFPE (Floating point exception)

You have Nvidia driver installed, libGL want nouveau. Maybe there are settings in calibre for Nvidia.

Just search the web or ask in calibre forum.
I have no epub and I removed calibre after I post above.

1 Like

Thanks for your help. I gave up on calibre. Now I use koodo.