Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919308 - sci-geosciences/qgis-3.28.10 fails to build (TypeError: _is_used_in_code() missing 1 required positional argument: 's')
Summary: sci-geosciences/qgis-3.28.10 fails to build (TypeError: _is_used_in_code() mi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL: https://github.com/qgis/QGIS/issues/5...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-05 21:11 UTC by Jean-Claude Repetto
Modified: 2023-12-13 13:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Full build log (build.log.gz,419.50 KB, application/gzip)
2023-12-05 21:12 UTC, Jean-Claude Repetto
Details
Environment (environment,143.81 KB, text/plain)
2023-12-05 21:13 UTC, Jean-Claude Repetto
Details
emerge info (info,7.31 KB, text/plain)
2023-12-05 21:13 UTC, Jean-Claude Repetto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Claude Repetto 2023-12-05 21:11:49 UTC
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
Comment 1 Jean-Claude Repetto 2023-12-05 21:12:27 UTC
Created attachment 877651 [details]
Full build log
Comment 2 Jean-Claude Repetto 2023-12-05 21:13:09 UTC
Created attachment 877652 [details]
Environment
Comment 3 Jean-Claude Repetto 2023-12-05 21:13:35 UTC
Created attachment 877653 [details]
emerge info
Comment 4 Jean-Claude Repetto 2023-12-05 21:14:40 UTC
# 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"
Comment 5 Ionen Wolkens gentoo-dev 2023-12-12 10:39:44 UTC
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
Comment 6 Ionen Wolkens gentoo-dev 2023-12-12 17:46:36 UTC
(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.
Comment 7 Ionen Wolkens gentoo-dev 2023-12-12 17:48:04 UTC
(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.
Comment 8 Larry the Git Cow gentoo-dev 2023-12-12 18:00:29 UTC
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(+)
Comment 9 Ionen Wolkens gentoo-dev 2023-12-12 18:13:14 UTC
(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.
Comment 10 Jean-Claude Repetto 2023-12-13 13:45:14 UTC
I confirm that the problem is solved.