[SIP] sip-build error since 6.8.0 release due to a typo
Antoine Lambert
antoine.lambert33 at gmail.com
Thu Nov 30 18:17:42 GMT 2023
Hi,
I am using SIP to generate Python bindings for a personal project hosted on
https://github.com/anlambert/talipot
(a fork of a graph visualization software I was working on during my PhD).
Since the release of SIP 6.8.0, most of my CI builds are failing due to
that sip-build error when bindings code
is generated, this is clearly due to a typo in
sipbuild/generator/outputs/code.py
file.
Traceback (most recent call last):
File "/home/anlambert/.virtualenvs/swh/bin/sip-build", line 8, in <module>
sys.exit(main())
^^^^^^
File
"/home/anlambert/.virtualenvs/swh/lib/python3.11/site-packages/sipbuild/tools/build.py",
line 37, in main
handle_exception(e)
File
"/home/anlambert/.virtualenvs/swh/lib/python3.11/site-packages/sipbuild/exceptions.py",
line 83, in handle_exception
raise e
File
"/home/anlambert/.virtualenvs/swh/lib/python3.11/site-packages/sipbuild/tools/build.py",
line 34, in main
project.build()
File
"/home/anlambert/.virtualenvs/swh/lib/python3.11/site-packages/sipbuild/project.py",
line 245, in build
self.builder.build()
File
"/home/anlambert/.virtualenvs/swh/lib/python3.11/site-packages/sipbuild/builder.py",
line 46, in build
self._generate_bindings()
File
"/home/anlambert/.virtualenvs/swh/lib/python3.11/site-packages/sipbuild/builder.py",
line 273, in _generate_bindings
buildable = bindings.generate()
^^^^^^^^^^^^^^^^^^^
File
"/home/anlambert/.virtualenvs/swh/lib/python3.11/site-packages/sipbuild/bindings.py",
line 220, in generate
output_code(spec, self, project, buildable)
File
"/home/anlambert/.virtualenvs/swh/lib/python3.11/site-packages/sipbuild/generator/outputs/code.py",
line 60, in output_code
_module_code(spec, bindings, project, py_debug, buildable)
File
"/home/anlambert/.virtualenvs/swh/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
"/home/anlambert/.virtualenvs/swh/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
"/home/anlambert/.virtualenvs/swh/lib/python3.11/site-packages/sipbuild/generator/outputs/code.py",
line 2396, in _class_cpp
_type_definition(sf, spec, bindings, klass, py_debug)
File
"/home/anlambert/.virtualenvs/swh/lib/python3.11/site-packages/sipbuild/generator/outputs/code.py",
line 5660, in _type_definition
_class_docstring(sf, spec, bindings, klass)
File
"/home/anlambert/.virtualenvs/swh/lib/python3.11/site-packages/sipbuild/generator/outputs/code.py",
line 8411, 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'?
Best regards.
--
Antoine Lambert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20231130/aba937bb/attachment.htm>
More information about the PyQt
mailing list