[MacPorts] #68828: qgis3: build failure with py-sip 6.8.0: NameError: name 'SocstringSignature' is not defined

MacPorts noreply at macports.org
Sun Dec 3 01:39:48 UTC 2023


#68828: qgis3: build failure with py-sip 6.8.0: NameError: name
'SocstringSignature' is not defined
------------------------+--------------------
 Reporter:  i0ntempest  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.8.1
 Keywords:              |       Port:  qgis3
------------------------+--------------------
 {{{
 :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.

-- 
Ticket URL: <https://trac.macports.org/ticket/68828>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list