https://issues.qgis.org/https://issues.qgis.org/favicon.ico2018-07-25T07:26:04ZQGIS Issue TrackingQGIS Application - Bug report #19476: "PyCapsule_GetPointer called with incorrect name" when trying to build masterhttps://issues.qgis.org/issues/19476?journal_id=910572018-07-25T07:26:04ZNyall Dawson
<ul><li><strong>Resolution</strong> set to <i>up/downstream</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Rejected</i></li></ul><p>Not a qgis issue - see <a class="external" href="https://riverbankcomputing.com/pipermail/pyqt/2018-June/040474.html">https://riverbankcomputing.com/pipermail/pyqt/2018-June/040474.html</a></p> QGIS Application - Bug report #19476: "PyCapsule_GetPointer called with incorrect name" when trying to build masterhttps://issues.qgis.org/issues/19476?journal_id=911902018-08-01T07:38:24ZChris Claytonchris2553@googlemail.com
<ul><li><strong>File</strong> <a href="/attachments/download/13041/qgis-3.2.1-fix-sip-name.patch">qgis-3.2.1-fix-sip-name.patch</a><a href="/attachments/13041/qgis-3.2.1-fix-sip-name.patch"><img alt="Magnifier" src="/images/magnifier.png" /></a> added</li></ul><p>I too have been having trouble building QGIS - 3.2.1 in my case. I think I've tracked this issue down. I think it happens if the --sip-module is passed to configure.py when building sip. Riverbank Computing seem keen that the argument should be used to build private copies of the sip module - private will be mandatory from sip 5 (see <a class="external" href="http://pyqt.sourceforge.net/Docs/sip4/using.html#ref-private-sip">http://pyqt.sourceforge.net/Docs/sip4/using.html#ref-private-sip</a>). I blindly followed that line and found myself getting this error. I added some debugging to python3 to print the correct and incorrect names and found that they are "PyQt5.sip" and "sip". grepping the python code in qgis revealed that, at least in some places, the sip module name is hard coded as "sip".</p>
<p>The attached patch allowed the build to complete. Additionally, the changes to the two python source files allow qgis to run without having to use the PYTHONPATH environment variable so that the private module can be imported.</p>
<p>So, it would appear that folks may or may not run into this issue depending on how they (or their distro maintainers) build sip and the order in which sip, PyQt5, QGIS and, maybe, qscintilla are built. Ouch!</p> QGIS Application - Bug report #19476: "PyCapsule_GetPointer called with incorrect name" when trying to build masterhttps://issues.qgis.org/issues/19476?journal_id=912622018-08-04T10:11:02ZJohannes Kroeger
<ul></ul><p>Thank you so much, works perfectly.</p>