Opened 6 months ago

Closed 6 months ago

Last modified 5 months ago

#68828 closed defect (fixed)

qgis3: build failure with py-sip 6.8.0: NameError: name 'SocstringSignature' is not defined

Reported by: i0ntempest Owned by: reneeotten (Renee Otten)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: nilason (Nicklas Larsson), Veence (Vincent)
Port: qgis3

Description

:info:build sip-build: An internal error occurred...
:info:build Traceback (most recent call last):
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/sip-build", line 8, in <module>
:info:build     sys.exit(main())
:info:build              ^^^^^^
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sipbuild/tools/build.py", line 37, in main
:info:build     handle_exception(e)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sipbuild/exceptions.py", line 83, in handle_exception
:info:build     raise e
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sipbuild/tools/build.py", line 34, in main
:info:build     project.build()
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sipbuild/project.py", line 245, in build
:info:build     self.builder.build()
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sipbuild/builder.py", line 46, in build
:info:build     self._generate_bindings()
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sipbuild/builder.py", line 273, in _generate_bindings
:info:build     buildable = bindings.generate()
:info:build                 ^^^^^^^^^^^^^^^^^^^
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sipbuild/bindings.py", line 220, in generate
:info:build     output_code(spec, self, project, buildable)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sipbuild/generator/outputs/code.py", line 60, in output_code
:info:build     _module_code(spec, bindings, project, py_debug, buildable)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sipbuild/generator/outputs/code.py", line 1269, in _module_code
:info:build     _iface_file_cpp(spec, bindings, project, buildable, py_debug,
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sipbuild/generator/outputs/code.py", line 2132, in _iface_file_cpp
:info:build     _class_cpp(sf, spec, bindings, klass, py_debug)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sipbuild/generator/outputs/code.py", line 2396, in _class_cpp
:info:build     _type_definition(sf, spec, bindings, klass, py_debug)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sipbuild/generator/outputs/code.py", line 5660, in _type_definition
:info:build     _class_docstring(sf, spec, bindings, klass)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sipbuild/generator/outputs/code.py", line 8411, in _class_docstring
:info:build     if klass.docstring is None or klass.docstring.signature is not SocstringSignature.DISCARDED:
:info:build                                                                    ^^^^^^^^^^^^^^^^^^
:info:build NameError: name 'SocstringSignature' is not defined. Did you mean: 'DocstringSignature'?

Downgrading py-sip to 6.7 will allow qgis3 to build.

Attachments (1)

main.log.zip (2.0 MB) - added by i0ntempest 6 months ago.

Download all attachments as: .zip

Change History (4)

Changed 6 months ago by i0ntempest

Attachment: main.log.zip added

comment:1 Changed 6 months ago by reneeotten (Renee Otten)

Owner: set to reneeotten
Resolution: fixed
Status: newclosed

In ec069438e74a52a53c9831ad2243846a0496b039/macports-ports (master):

py-sip: fix typo

Closes: #68828

comment:2 Changed 6 months ago by nilason (Nicklas Larsson)

Thanks for the quick fix! May I ask someone to trigger a re-build for qgis3 and qgis3-ltr.

comment:3 Changed 5 months ago by agidding

Has a rebuild been triggered yet?

Note: See TracTickets for help on using tickets.