ImportError: cannot import name 'QPdfLinkModel' from 'PyQt6.QtPdf'
Ok, to answer my own question: Simply use a current PyQt6 from pip instead of the Ubuntu-provided version. So, essentially:sudo apt remove python3-pyqt6
pipx inject frescobaldi pyqt6Maybe this is of help to someone.
Google'ing for the problem, I find a similar bug report of Knute's on Launchpad (https://answers.launchpad.net/ubuntu/+source/pyqt6/+question/818878) but with no replies.
Hello Knute,
I'm not sure that doing a `sudo apt remove python3-pyqt6` is the best move. The OS may rely on it. I used a Python virtual environment (venv) to install pyqt6 into.
Hi Federico,
Wait, before that I'd like to understand if the problem only
occurs in QtPdf or in Qt as a whole. Can you also report the
result of, say,
$ python -c 'import PyQt6.QtCore; print(dir(PyQt6.QtCore.QFileInfo))'
? Thanks.
Oh wow. So there are multiple version numbers to take care of - I hadn't thought of that.
But this means that Frescobaldi has a Qt6 version requirement in addition to the PyQt6 version requirement, right?
--
Frescobaldi homepage: http://www.frescobaldi.org/
Mailing list: http://groups.google.com/group/frescobaldi
Issue tracker: https://github.com/frescobaldi/frescobaldi/issues
---
You received this message because you are subscribed to the Google Groups "Frescobaldi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to frescobaldi...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/frescobaldi/c5efd076e68301a8ce1be499e7ea59be2c623546.camel%40abou-samra.fr.