<div dir="ltr">Hi Alessandro,<div>Interesting, for me it was debian testing (first with some qt5 packages also installed) - and than a fresh install with only qt6 packages (because I thought the problem might come from "old" accidentally included qt5 packages.</div><div>I will try another fresh install with debian stable (currently still V12) and see if it works there.</div><div>Otherwise my assumption would still be some corrupt qt6 development packages in debian but I don't want to blame anyone before being sure.</div><div><br></div><div>regards</div><div>Werner</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Jul 21, 2025 at 5:09 PM Alessandro Pasotti <<a href="mailto:apasotti@gmail.com">apasotti@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Werner,</div><div><br></div><div>The error I see is when I am building QGIS with QT6 on Ubuntu 25.04 (but I also tried  24.10 with the same result).</div><div><br></div><div> <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 21, 2025 at 5:04 PM Werner Macho <<a href="mailto:werner.macho@gmail.com" target="_blank">werner.macho@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Alessandro,<div>Nice to see another one having the same problem.</div><div>On which linux distribution are you?</div><div>I am using debian testing -  and despite having it installed again from scratch I have the same problem (though nothing from qt5 installed the second time).</div><div>Probably a problem in the debian package?</div><div>It was not urgent for me so I did not report it yet.</div><div><br></div><div>regards</div><div>Werner</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 21, 2025 at 4:58 PM Alessandro Pasotti via QGIS-Developer <<a href="mailto:qgis-developer@lists.osgeo.org" target="_blank">qgis-developer@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I am trying to build QGIS with QT6 on Ubuntu (tried 24.10 and 25.04), </div><div>it builds without errors but when I run it, the following error appears:</div><div><br></div><div>

<p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)">Couldn't load PyQGIS.<br>Python support will be disabled.</span><br></p>
<pre style="margin:12px 0px;text-indent:0px"><span style="font-family:Hack"><br>Traceback (most recent call last):<br>  File "", line 1, in <br>  File "/home/ale/dev/QGIS/build/Desktop_QT6-Debug/output/python/qgis/gui/__init__.py", line 25, in <br>    from qgis._gui import *<br>RuntimeError: qgis._gui cannot import type '���A� ' from PyQt6.QtCore<br><br></span></pre>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">Python version:<br>3.13.3 (main, Jun 16 2025, 18:15:32) [GCC 14.2.0]<br><br>QGIS version:<br>3.99.0-Master 'Master', e717e3cd2b9<br><br>Python path:<br>['/home/ale/dev/QGIS/build/Desktop_QT6-Debug/output/python', '/home/ale/.local/share/QGIS/QGIS3/profiles/default/python', '/home/ale/.local/share/QGIS/QGIS3/profiles/default/python/plugins', '/home/ale/dev/QGIS/build/Desktop_QT6-Debug/output/python/plugins', '/home/ale/dev/gdal/desktop-install/local/lib/python3.13/dist-packages', '/home/ale/dev/gdal/autotest/pymod', '/usr/lib/python313.zip', '/usr/lib/python3.13', '/usr/lib/python3.13/lib-dynload', '/usr/local/lib/python3.13/dist-packages', '/usr/lib/python3/dist-packages']</p><br></div><div><br></div><div>I checked the QGIS/build/Desktop_QT6-Debug/output/python/qgis content and it looks legit.</div><div><br></div><div>PyQt6 installation also looks ok, importing core works ok, only gui does not work.</div><div><br></div><div>Any idea about what's going wrong?</div><div><br></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Alessandro Pasotti</div><div>QCooperative:  <a href="https://www.qcooperative.net" target="_blank">www.qcooperative.net</a><br></div>ItOpen:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div></div></div>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div>
</blockquote></div><div><br clear="all"></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Alessandro Pasotti</div><div>QCooperative:  <a href="https://www.qcooperative.net" target="_blank">www.qcooperative.net</a><br></div>ItOpen:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div></div>
</blockquote></div>