This version of calibre fails to convert due to the "Failed to initialize plugin: .config/calibre/plugins/DeDRM.zip" error. See discussion at https://www.mobileread.com/forums/showthread.php?p=4230527#post4230527 I have tried the author's (Kovid Goyal) recommendation of installing his official binaries and that does indeed remedy this error, but now calibre fails to run due to apparent issues with the Debian environment. As per the above discussion: ----------------------------------------------------------------------------------------------------------------------- 1. If I run as root I get: Creating PDF Output... Converting input as a text based book... [3252131:3252131:0614/111726.662364:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. 2. If I run as a non-root user I get: Authorization required, but no authorization protocol specified qt.qpa.xcb: could not connect to display :0.0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb. ----------------------------------------------------------------------------------------------------------------------- I have researched all the discussion threads regarding necessary qt and python libraries and have verified that they are installed. So that leaves me at an impasse as neither the official Debian package nor the author's binaries will satisfactorily run on Bookworm.
I installed all the "pn" packages, but that had no impact. On Tue, 14 Jun 2022 12:24:23 -0700 nbi <nbi.vegas@gmail.com> wrote: > Package: calibre > Version: 5.43.0+dfsg-1 > Severity: important > > This version of calibre fails to convert due to the "Failed to initialize > plugin: .config/calibre/plugins/DeDRM.zip" error. > See discussion at > https://www.mobileread.com/forums/showthread.php?p=4230527#post4230527 > > I have tried the author's (Kovid Goyal) recommendation of installing his > official binaries and that does indeed remedy this error, but now calibre fails > to run due to apparent issues with the Debian environment. > > As per the above discussion: > > ----------------------------------------------------------------------------------------------------------------------- > 1. If I run as root I get: > > Creating PDF Output... > Converting input as a text based book... > [3252131:3252131:0614/111726.662364:ERROR:zygote_host_impl_linux.cc(89)] > Running as root without --no-sandbox is not supported. See > https://crbug.com/638180. > > 2. If I run as a non-root user I get: > > Authorization required, but no authorization protocol specified > qt.qpa.xcb: could not connect to display :0.0 > qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it > was found. > This application failed to start because no Qt platform plugin could be > initialized. Reinstalling the application may fix this problem. > > Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, > vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb. > ----------------------------------------------------------------------------------------------------------------------- > > I have researched all the discussion threads regarding necessary qt and python > libraries and have verified that they are installed. > So that leaves me at an impasse as neither the official Debian package nor the > author's binaries will satisfactorily run on Bookworm. > > > -- System Information: > Debian Release: bookworm/sid > APT prefers testing > APT policy: (500, 'testing') > Architecture: amd64 (x86_64) > Foreign Architectures: i386 > > Kernel: Linux 5.15.5 (SMP w/8 CPU threads) > Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set > Shell: /bin/sh linked to /bin/dash > Init: systemd (via /run/systemd/system) > > Versions of packages calibre depends on: > pn calibre-bin <none> > ii dpkg 1.21.8 > ii fonts-liberation2 2.1.5-1
Hello, This line shows that you are not connected to X11. PDF render uses Qt library, and Qt requires some GUI environment like X11. Check X11 environment and works other X11 client programs on your machine. You must setup X11 and connect X server properly even if you don't want to use GUI. Install X11 environment and related Qt libraries, and run from GUI environment.
It turned out to be an authorization issue which was solved by "xhost +" for the non-root user. Calibre is still not doing the PDF conversion, but the problem is with the plugin for that conversion not the Debian environment. This can be closed. On Wed, 15 Jun 2022 13:39:24 +0900 yokota <yokota.hgml@gmail.com> wrote: > Hello, > > > 2. If I run as a non-root user I get: > > > > Authorization required, but no authorization protocol specified > > qt.qpa.xcb: could not connect to display :0.0 > > qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it > > was found. > > This application failed to start because no Qt platform plugin could be > > initialized. Reinstalling the application may fix this problem. > > > > Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, > > vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb. > > > qt.qpa.xcb: could not connect to display :0.0 > This line shows that you are not connected to X11. > > PDF render uses Qt library, and Qt requires some GUI environment like X11. > Check X11 environment and works other X11 client programs on your machine. > > You must setup X11 and connect X server properly even if you don't > want to use GUI. > Install X11 environment and related Qt libraries, and run from GUI environment. > > -- > YOKOTA > >
Thanks for reporting.