<html><head></head><body><div class="ydp58e1b986yahoo-style-wrap" style="font-family:times new roman, new york, times, serif;font-size:16px;"><div></div>
<div dir="ltr" data-setdir="false">I solved the Qt6 error <span><span>No module named 'PyQt5</span></span> by cleaning the previous install of qgis including deleting <span>/usr/local/share/qgis then reinstalling. Unfortunately I then got an error very similar to the one I got when building using Qt5: <span><pre class="ydp73baeec9notranslate"><code class="ydp73baeec9notranslate">qgis._gui cannot import type '����v' from PyQt6.QtCore</code></pre></span></span></div><div dir="ltr" data-setdir="false">I have added that under the first ticket I made and closed the second. Any help on this would be appreciated.</div><div><br></div>
<div id="ydp58e1b986yahoo_quoted_3008799653" class="ydp58e1b986yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
<div>
On Sunday, 9 November 2025 at 13:08:53 GMT+13, Michael Rans <mcarans@yahoo.co.uk> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="ydp58e1b986yiv8656226655"><div><div style="font-family:times new roman, new york, times, serif;font-size:16px;" class="ydp58e1b986yiv8656226655yahoo-style-wrap"><div dir="ltr">I want to build QGIS from source so it uses the latest GDAL which I've built from source.</div><div dir="ltr"><br></div><div dir="ltr">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. </div><div dir="ltr"><br></div><div dir="ltr">Building with Qt5, I get "<span>qgis._gui cannot import type '����' from PyQt5.QtCore</span>". 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: <a href="https://github.com/qgis/QGIS/issues/63834" rel="nofollow" target="_blank">https://github.com/qgis/QGIS/issues/63834</a></div><div dir="ltr"><br></div><div dir="ltr">Building with Qt6 by setting the appropriate flag in the cmake UI, I get a <span>QGIS Qt6 build startup failure in qgsfeature "No module named 'PyQt5'"</span> I don't know why it is trying to use Qt5 in a Qt6 build. More here: <a href="https://github.com/qgis/QGIS/issues/63847" rel="nofollow" target="_blank">https://github.com/qgis/QGIS/issues/63847</a></div><div dir="ltr"><br></div><div dir="ltr">Please can anyone help.</div></div></div></div></div>
</div>
</div></div></body></html>