I solved the Qt6 error No module named 'PyQt5 by cleaning the previous install
of qgis including deleting /usr/local/share/qgis then reinstalling.
Unfortunately I then got an error very similar to the one I got when building
using Qt5: qgis._gui cannot import type '����v' from PyQt6.QtCoreI have added
that under the first ticket I made and closed the second. Any help on this
would be appreciated.
On Sunday, 9 November 2025 at 13:08:53 GMT+13, Michael Rans
<[email protected]> wrote:
I want to build QGIS from source so it uses the latest GDAL which I've built
from source.
I have been able to get QGIS to build on Kubuntu 25.10. The problems I have run
into are on startup with the Python console.
Building with Qt5, I get "qgis._gui cannot import type '����' from
PyQt5.QtCore". One possibility is that the build is using the wrong sip version
as it seems to find sip-build. My understanding is that sip-build is for Qt6
while sip is for Qt5, but even setting the cmake flag in the cmake UI to use
sip instead of sip-build, it seems to keep using sip-build regardless. More
here: https://github.com/qgis/QGIS/issues/63834
Building with Qt6 by setting the appropriate flag in the cmake UI, I get a QGIS
Qt6 build startup failure in qgsfeature "No module named 'PyQt5'" I don't know
why it is trying to use Qt5 in a Qt6 build. More here:
https://github.com/qgis/QGIS/issues/63847
Please can anyone help. _______________________________________________
QGIS-User mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user