sci-geosciences/qgis-3.28.10 fails to build. Generating the _core .pyi file... sip-build: An internal error occurred... Traceback (most recent call last): File "/usr/lib/python-exec/python3.11/sip-build", line 8, in <module> sys.exit(main()) ^^^^^^ File "/usr/lib/python3.11/site-packages/sipbuild/tools/build.py", line 37, in main handle_exception(e) File "/usr/lib/python3.11/site-packages/sipbuild/exceptions.py", line 83, in handle_exception raise e File "/usr/lib/python3.11/site-packages/sipbuild/tools/build.py", line 34, in main project.build() File "/usr/lib/python3.11/site-packages/sipbuild/project.py", line 245, in build self.builder.build() File "/usr/lib/python3.11/site-packages/sipbuild/builder.py", line 46, in build self._generate_bindings() File "/usr/lib/python3.11/site-packages/sipbuild/builder.py", line 273, in _generate_bindings buildable = bindings.generate() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/sipbuild/bindings.py", line 220, in generate output_code(spec, self, project, buildable) File "/usr/lib/python3.11/site-packages/sipbuild/generator/outputs/code.py", line 60, in output_code _module_code(spec, bindings, project, py_debug, buildable) File "/usr/lib/python3.11/site-packages/sipbuild/generator/outputs/code.py", line 975, in _module_code _exception_handler(sf, spec) File "/usr/lib/python3.11/site-packages/sipbuild/generator/outputs/code.py", line 8735, in _exception_handler _catch_block(sf, spec, exception) File "/usr/lib/python3.11/site-packages/sipbuild/generator/outputs/code.py", line 6180, in _catch_block sip_exception_ref = 'sipExceptionRef' if exception.class_exception is not None or _is_used_in_code(exception.raise_code) else '' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: _is_used_in_code() missing 1 required positional argument: 's' Reproducible: Always
Created attachment 877651 [details] Full build log
Created attachment 877652 [details] Environment
Created attachment 877653 [details] emerge info
# emerge -pqv '=sci-geosciences/qgis-3.28.10::gentoo' [ebuild R ] sci-geosciences/qgis-3.28.10 USE="georeferencer pdal postgres python -3d -doc -examples -grass -hdf5 -mapserver -netcdf -opencl -oracle -polar -qml -serial -test" PYTHON_SINGLE_TARGET="python3_11 -python3_10"
Haven't tried but just happened to see this on PyQt's mailing list and seen we had a bug too. It's caused by dev-python/sip-6.8.0[1][2] The first build error noted in [1] is already fixed in our sip-6.8.0 (patched), but the later comment denotes the same issue that's happening here. Sip upstream is already looking into it, I imagine it will be fixed with sip-6.8.1 assuming it's not misuse in qgis. [1] https://github.com/qgis/QGIS/issues/55481#issuecomment-1836156525 [2] https://www.riverbankcomputing.com/pipermail/pyqt/2023-December/045637.html
(In reply to Ionen Wolkens from comment #5) > Sip upstream is already looking into it, I imagine it will be fixed with > sip-6.8.1 assuming it's not misuse in qgis. Or apparently the (just released) 6.8.1 does not fix this yet from what I hear.
(In reply to Ionen Wolkens from comment #6) > (In reply to Ionen Wolkens from comment #5) > > Sip upstream is already looking into it, I imagine it will be fixed with > > sip-6.8.1 assuming it's not misuse in qgis. > Or apparently the (just released) 6.8.1 does not fix this yet from what I > hear. Albeit the changelog mentions it should build, so maybe that's wrong.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70c0399f6381344da7a3d419bf37f85c4ef76992 commit 70c0399f6381344da7a3d419bf37f85c4ef76992 Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2023-12-12 17:48:30 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2023-12-12 18:00:09 +0000 dev-python/sip: add 6.8.1 May or may not fix bug #919308, need confirmation (getting conflicting reports, perhaps due to the issues being multi-layered and only parts of these being fixed?). Should fix incompatible pointer types issues (c99-porting), albeit that has no impact if files are pre-regenerated. May be possible to close a few bugs but have not kept track. Bug: https://bugs.gentoo.org/919308 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> dev-python/sip/Manifest | 1 + dev-python/sip/sip-6.8.1.ebuild | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+)
(In reply to Ionen Wolkens from comment #7) > (In reply to Ionen Wolkens from comment #6) > > (In reply to Ionen Wolkens from comment #5) > > > Sip upstream is already looking into it, I imagine it will be fixed with > > > sip-6.8.1 assuming it's not misuse in qgis. > > Or apparently the (just released) 6.8.1 does not fix this yet from what I > > hear. > Albeit the changelog mentions it should build, so maybe that's wrong. .. and yeah, the conflicting report admitted they made a mistake and weren't using sip-6.8.1. Going to close this then, feel drop a note if still broken with 6.8.1.
I confirm that the problem is solved.