View Single Post
Old 07-19-2023, 10:09 AM   #1
JiangHuDao
Junior Member
JiangHuDao began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2023
Device: none
Error:PyQt6.QtWebEngineCore

Calibre don't can opens epub files(maybe and other all).
_______
Arch linux
_______

I 'm use "sudo pacman calibre"to setup calibre,but when i import my book(.epub) and open read it. Nothing happened.
So i go to see the log:

Failed to import PyQt module: PyQt6.QtWebEngineCore with error: /usr/lib/libQt6WebChannel.so.6: undefined symbol: qt_resourceFeatureZstd, version Qt_6
Traceback (most recent call last):
File "/usr/bin/calibre-parallel", line 21, in <module>
sys.exit(main())
^^^^^^
File "/usr/lib/calibre/calibre/utils/ipc/worker.py", line 215, in main
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
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 13, in <module>
from calibre.gui2.viewer.web_view import viewer_config_dir
File "/usr/lib/calibre/calibre/gui2/viewer/web_view.py", line 12, in <module>
from qt.webengine import (
ImportError: cannot import name 'QWebEnginePage' from 'qt.webengine' (/usr/lib/calibre/qt/webengine.py)

It seem's that because the PyQt6.QtWebEngineCore
___________________________
some tip:
https://forum.artixlinux.org/index.p...next,next.html
There is the following paragraph:
The Calibre issues is because various pyqt6 packages were rebuilt against the new qt6 in staging but not in the world repos. I just corrected that so it should work again on the next update. I do not know about foliate however.

This link seems to indicate that this has already happened, but how it was resolved was not clear to me at the time.
Hope someone can help me, I can't wait to read already.Thanks.
JiangHuDao is offline   Reply With Quote