Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Calibre doesn't work and Foliate fail to open certain fb2 files (Read 750 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

[SOLVED] Calibre doesn't work and Foliate fail to open certain fb2 files

Hello there.
After recent updates (within the last two weeks or so) at first Calibre stopped working so I used Foliate instead, but for about a week or so I also have problems with Foliate: it won't open some fb2 books (but at the same time , some fb2 books it still manages to open).

vesrions of apps:
calibre 6.15.1-2
foliate 2.6.4-2

Code: [Select]
$ calibre
Failed to import PyQt module: PyQt6.QtNetwork with error: /usr/lib/python3.10/site-packages/PyQt6/QtNetwork.abi3.so: undefined symbol: _ZN16QNetworkDatagram7destroyEP23QNetworkDatagramPrivate, version Qt_6
Traceback (most recent call last):
  File "/usr/bin/calibre", line 21, in <module>
    sys.exit(calibre())
  File "/usr/lib/calibre/calibre/gui_launch.py", line 72, in calibre
    from calibre.gui2.main import main
  File "/usr/lib/calibre/calibre/gui2/__init__.py", line 13, in <module>
    from qt.core import (
ImportError: cannot import name 'QNetworkProxyFactory' from 'qt.core' (/usr/lib/calibre/qt/core.py)

Code: [Select]
$ foliate ~/Books/somebook.fb2.zip 

(com.github.johnfactotum.Foliate:16124): Gjs-WARNING **: 15:49:50.713: JS ERROR: Error: undefined is not a function (near '...[output, childF, post = x => x]...')
_init/<@resource:///com/github/johnfactotum/Foliate/js/epubView.js:623:57
_handleAction@resource:///com/github/johnfactotum/Foliate/js/epubView.js:886:22
_init/<@resource:///com/github/johnfactotum/Foliate/js/epubView.js:617:18
main@resource:///com/github/johnfactotum/Foliate/js/main.js:478:24
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
@/usr/bin/foliate:9:17

repos in pacman.conf (I haven't changed a single line in it for a year):
Spoiler (click to show/hide)

What can be done to fix all of these?

Re: Calibre doesn't work and Foliate fail to open certain fb2 files

Reply #1
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.

Re: Calibre doesn't work and Foliate fail to open certain fb2 files

Reply #2
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.

Code: [Select]
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (4) pyside2-5.15.9-4  python-pyqt6-6.5.0-1  python-pyqt6-webengine-6.5.0-1  python-shiboken2-5.15.9-4
After this Calibre works again, thank you!
As for Foliate, we'll see, for now Calibre is enough.