Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916261 - dev-python/python-poppler-qt5 fails to build with dev-python/sip-6.8.0_pre2310230931 (NameError: name 'SocstringSignature' is not defined)
Summary: dev-python/python-poppler-qt5 fails to build with dev-python/sip-6.8.0_pre231...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-25 10:23 UTC by Ionen Wolkens
Modified: 2023-11-30 19:42 UTC (History)
0 users

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


Attachments
build.log (build.log,7.55 KB, text/plain)
2023-10-25 10:23 UTC, Ionen Wolkens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ionen Wolkens gentoo-dev 2023-10-25 10:23:22 UTC
Created attachment 873425 [details]
build.log

Was doing a test run with dev-python/sip-6.8.0_pre2310230931 (unkeyworded) for most packages depending on sip and this is the only one that failed (still fine with <sip-6.8).

Unsure, but sounds related to what sip upstream says in [1] wrt docstrings, so the issue is likely in this package itself rather than sip.

[1] https://www.riverbankcomputing.com/pipermail/pyqt/2023-October/045557.html

gpep517: An internal error occurred...
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.11/gpep517", line 4, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.11/site-packages/gpep517/__main__.py", line 425, in main
    return func(args)
           ^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/gpep517/__main__.py", line 215, in build_wheel
    print(build_wheel_impl(args, args.wheel_dir), file=out)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/gpep517/__main__.py", line 207, in build_wheel_impl
    wheel_name = backend.build_wheel(str(wheel_dir), args.config_json)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/sipbuild/api.py", line 55, in build_wheel
    handle_exception(e)
  File "/usr/lib/python3.11/site-packages/sipbuild/exceptions.py", line 81, in handle_exception
    raise e
  File "/usr/lib/python3.11/site-packages/sipbuild/api.py", line 53, in build_wheel
    return project.build_wheel(wheel_directory)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/sipbuild/project.py", line 262, in build_wheel
    wheel_file = self.builder.build_wheel(wheel_directory)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/sipbuild/builder.py", line 140, in build_wheel
    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 1269, in _module_code
    _iface_file_cpp(spec, bindings, project, buildable, py_debug,
  File "/usr/lib/python3.11/site-packages/sipbuild/generator/outputs/code.py", line 2132, in _iface_file_cpp
    _class_cpp(sf, spec, bindings, klass, py_debug)
  File "/usr/lib/python3.11/site-packages/sipbuild/generator/outputs/code.py", line 2396, in _class_cpp
    _type_definition(sf, spec, bindings, klass, py_debug)
  File "/usr/lib/python3.11/site-packages/sipbuild/generator/outputs/code.py", line 5662, in _type_definition
    _class_docstring(sf, spec, bindings, klass)
  File "/usr/lib/python3.11/site-packages/sipbuild/generator/outputs/code.py", line 8413, in _class_docstring
    if klass.docstring is None or klass.docstring.signature is not SocstringSignature.DISCARDED:
                                                                   ^^^^^^^^^^^^^^^^^^
NameError: name 'SocstringSignature' is not defined. Did you mean: 'DocstringSignature'?
Comment 1 Ionen Wolkens gentoo-dev 2023-11-30 19:26:27 UTC
Upon closer look, turns out this was a typo[1]. Still not fixed in final release but will patch it before bumping.

[1] https://www.riverbankcomputing.com/pipermail/pyqt/2023-November/045607.html
Comment 2 Larry the Git Cow gentoo-dev 2023-11-30 19:42:04 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26015185884dbf8a89578be9ea30cd01772fdb7a

commit 26015185884dbf8a89578be9ea30cd01772fdb7a
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2023-11-30 19:07:53 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2023-11-30 19:40:53 +0000

    dev-python/sip: add 6.8.0
    
    Closes: https://bugs.gentoo.org/916261
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 dev-python/sip/Manifest                       |  1 +
 dev-python/sip/files/sip-6.8.0-typo-fix.patch | 11 +++++++++++
 dev-python/sip/sip-6.8.0.ebuild               | 27 +++++++++++++++++++++++++++
 3 files changed, 39 insertions(+)