Quote:
Originally Posted by DiapDealer
Note that some plugins will be looking for PySide6 when used with Qt6-built Sigil. We left PyQt behind on our other platforms when we switched to Qt6. Unfortunately most Debian/Ubuntu-based distros don't have Pyside6 packages in their repos. There are a few workarounds for this if you run into any problems.
|
So I hit this pretty quickly, using the DOCXImport plugin. The first error simply said it needed PySide6, so I got that installed as follows:
Spoiler:
chris@pop-os:~$ sudo pip3 install pyside6
[sudo] password for chris:
Collecting pyside6
Downloading PySide6-6.6.1-cp38-abi3-manylinux_2_28_x86_64.whl (77 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.9/77.9 KB 1.1 MB/s eta 0:00:00
Collecting PySide6-Addons==6.6.1
Downloading PySide6_Addons-6.6.1-cp38-abi3-manylinux_2_28_x86_64.whl (125.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.2/125.2 MB 3.3 MB/s eta 0:00:00
Collecting shiboken6==6.6.1
Downloading shiboken6-6.6.1-cp38-abi3-manylinux_2_28_x86_64.whl (245 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 245.2/245.2 KB 4.5 MB/s eta 0:00:00
Collecting PySide6-Essentials==6.6.1
Downloading PySide6_Essentials-6.6.1-cp38-abi3-manylinux_2_28_x86_64.whl (82.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 82.3/82.3 MB 3.3 MB/s eta 0:00:00
Installing collected packages: shiboken6, PySide6-Essentials, PySide6-Addons, pyside6
Successfully installed PySide6-Addons-6.6.1 PySide6-Essentials-6.6.1 pyside6-6.6.1 shiboken6-6.6.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead:
https://pip.pypa.io/warnings/venv
chris@pop-os:~$
But I guess that is not sufficient, since I now get a message about an undefined symbol:
Spoiler:
DOCXImport
Status: failed
Traceback (most recent call last):
File "/usr/local/share/sigil/plugin_launchers/python/launcher.py", line 142, in launch
self.exitcode = target_script.run(container)
File "/home/chris/.local/share/sigil-ebook/sigil/plugins/DOCXImport/plugin.py", line 82, in run
from qtdialogs import launch_qt_gui as launch_gui
File "/home/chris/.local/share/sigil-ebook/sigil/plugins/DOCXImport/qtdialogs.py", line 10, in <module>
from plugin_utils import PluginApplication, iswindows, _t as _translate
File "/home/chris/.local/share/sigil-ebook/sigil/plugins/DOCXImport/plugin_utils.py", line 40, in <module>
from PySide6 import QtCore, QtGui, QtNetwork, QtPrintSupport, QtSvg, QtWebChannel, QtWidgets # noqa: F401
ImportError: /usr/lib/x86_64-linux-gnu/libQt6DBus.so.6: undefined symbol: _ZN9QtPrivate23CompatPropertySafePointC1EP14QBindi ngStatusP20QUntypedPropertyData, version Qt_6
Error: /usr/lib/x86_64-linux-gnu/libQt6DBus.so.6: undefined symbol: _ZN9QtPrivate23CompatPropertySafePointC1EP14QBindi ngStatusP20QUntypedPropertyData, version Qt_6
Any pointers on where to go from here? (And this isn't at all urgent, since I use LO Writer and the ODT Import works well.)