ebook convert failed in Calibre-web

Recent updates to the main Calibre application results in new requirements to do ebook conversions.

Without installing the new requirements, ebook conversions fail due to missing files:

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

From the main Calibre page:

On servers, if you get an error about a missing libEGL, you might need to install some OpenGL packages such as libegl1 and libopengl0

Easy fix is to install the required packages, from within the Docker container.

docker exec -it calibre-web /bin/bash
apt update; apt upgrade libgl1-mesa-glx libxdamage1 libegl1 libxkbcommon0 libopengl0 -y

References

Calibre - ebook management https://calibre-ebook.com/download_linux

Github.com - linuxserver / docker-calibre-web Ebook-convert fails after Calibre v6 release https://github.com/linuxserver/docker-calibre-web/issues/197