QGIS build failure

Phil Thompson phil at riverbankcomputing.com
Sun Jul 17 09:41:48 BST 2022


On 06/07/2022 18:33, Antonio Rojas wrote:
> QGIS 3.26 fails to build with sip 6.6.2:
> 
> sip-build: An internal error occurred...
> Traceback (most recent call last):
>   File "/usr/bin/sip-build", line 33, in <module>
>     sys.exit(load_entry_point('sip==6.6.2', 'console_scripts', 
> 'sip-build')())
>   File "/usr/lib/python3.10/site-packages/sipbuild/tools/build.py",
> line 37, in main
>     handle_exception(e)
>   File "/usr/lib/python3.10/site-packages/sipbuild/exceptions.py",
> line 81, in handle_exception
>     raise e
>   File "/usr/lib/python3.10/site-packages/sipbuild/tools/build.py",
> line 34, in main
>     project.build()
>   File "/usr/lib/python3.10/site-packages/sipbuild/project.py", line
> 244, in build
>     self.builder.build()
>   File "/usr/lib/python3.10/site-packages/sipbuild/builder.py", line
> 48, in build
>     self._generate_bindings()
>   File "/usr/lib/python3.10/site-packages/sipbuild/builder.py", line
> 277, in _generate_bindings
>     buildable = bindings.generate()
>   File "/usr/lib/python3.10/site-packages/sipbuild/bindings.py", line
> 166, in generate
>     spec, sip_files = parse(self.sip_file, SIP_VERSION, encoding,
>   File
> "/usr/lib/python3.10/site-packages/sipbuild/generator/parser/parser.py",
> line 35, in parse
>     protected_is_public, include_dirs, strict).parse(sip_file)
>   File
> "/usr/lib/python3.10/site-packages/sipbuild/generator/parser/parser_manager.py",
> line 1507, in parse
>     self._parser.parse(self._read(sip_file, raw_sip_file),
>   File "/usr/lib/python3.10/site-packages/ply/yacc.py", line 331, in 
> parse
>     return self.parseopt(input, lexer, debug, tracking, tokenfunc)
>   File "/usr/lib/python3.10/site-packages/ply/yacc.py", line 823, in 
> parseopt
>     p.callable(pslice)
>   File
> "/usr/lib/python3.10/site-packages/sipbuild/generator/parser/rules.py",
> line 3029, in p_typedef_decl
>     instantiated = pm.instantiate_class_template(p, name_symbol,
>   File
> "/usr/lib/python3.10/site-packages/sipbuild/generator/parser/parser_manager.py",
> line 1480, in instantiate_class_template
>     instantiate_class(p, symbol, fq_cpp_name, tmpl_names, proto_class,
>   File
> "/usr/lib/python3.10/site-packages/sipbuild/generator/parser/instantiations.py",
> line 131, in instantiate_class
>     i_class.ctors = _instantiate_ctors(tmpl_names, proto_class, 
> template,
>   File
> "/usr/lib/python3.10/site-packages/sipbuild/generator/parser/instantiations.py",
> line 235, in _instantiate_ctors
>     i_ctor.py_signature = 
> _instantiate_signature(proto_ctor.py_signature,
>   File
> "/usr/lib/python3.10/site-packages/sipbuild/generator/parser/instantiations.py",
> line 368, in _instantiate_signature
>     i_arg = _instantiate_argument(proto_arg, proto_class, tmpl_names,
>   File
> "/usr/lib/python3.10/site-packages/sipbuild/generator/parser/instantiations.py",
> line 191, in _instantiate_argument
>     i_arg.default_value = [_instantiate_value(v, expansions)
>   File
> "/usr/lib/python3.10/site-packages/sipbuild/generator/parser/instantiations.py",
> line 191, in <listcomp>
>     i_arg.default_value = [_instantiate_value(v, expansions)
>   File
> "/usr/lib/python3.10/site-packages/sipbuild/generator/parser/instantiations.py",
> line 437, in _instantiate_value
>     i_name = ScopedName.parse(template_string(proto_name, expansions))
>   File
> "/usr/lib/python3.10/site-packages/sipbuild/generator/templates.py",
> line 201, in template_string
>     proto_str = proto_str.replace(name, value)
> AttributeError: 'ScopedName' object has no attribute 'replace'
> 
> A possible fix has been posted to 
> https://github.com/qgis/QGIS/issues/49214

That's the correct fix.

Thanks,
Phil


More information about the PyQt mailing list