sip: exception when trying to use generate-extracts

Phil Thompson phil at riverbankcomputing.com
Tue May 24 10:33:37 BST 2022


On 23/05/2022 01:51, Scott Talbert wrote:
> Hi Phil,
> 
> I'm working on trying to build wxPython with sip 6.6.1.  When setting
> generate-extracts in pyproject.toml, I'm seeing this exception:
> 
> Traceback (most recent call last):
>   File "/home/talbert/wxPython/Phoenix.sip6/env/bin/sip-build", line
> 8, in <module>
>     sys.exit(main())
>   File
> "/home/talbert/wxPython/Phoenix.sip6/env/lib64/python3.10/site-packages/sipbuild/tools/build.py",
> line 37, in main
>     handle_exception(e)
>   File
> "/home/talbert/wxPython/Phoenix.sip6/env/lib64/python3.10/site-packages/sipbuild/exceptions.py",
> line 81, in handle_exception
>     raise e
>   File
> "/home/talbert/wxPython/Phoenix.sip6/env/lib64/python3.10/site-packages/sipbuild/tools/build.py",
> line 34, in main
>     project.build()
>   File
> "/home/talbert/wxPython/Phoenix.sip6/env/lib64/python3.10/site-packages/sipbuild/project.py",
> line 244, in build
>     self.builder.build()
>   File
> "/home/talbert/wxPython/Phoenix.sip6/env/lib64/python3.10/site-packages/sipbuild/builder.py",
> line 48, in build
>     self._generate_bindings()
>   File
> "/home/talbert/wxPython/Phoenix.sip6/env/lib64/python3.10/site-packages/sipbuild/builder.py",
> line 277, in _generate_bindings
>     buildable = bindings.generate()
>   File
> "/home/talbert/wxPython/Phoenix.sip6/env/lib64/python3.10/site-packages/sipbuild/bindings.py",
> line 166, in generate
>     spec, sip_files = parse(self.sip_file, SIP_VERSION, encoding,
>   File
> "/home/talbert/wxPython/Phoenix.sip6/env/lib64/python3.10/site-packages/sipbuild/generator/parser/parser.py",
> line 35, in parse
>     protected_is_public, include_dirs, strict).parse(sip_file)
>   File
> "/home/talbert/wxPython/Phoenix.sip6/env/lib64/python3.10/site-packages/sipbuild/generator/parser/parser_manager.py",
> line 1490, in parse
>     self._parser.parse(self._read(sip_file, raw_sip_file),
>   File
> "/home/talbert/wxPython/Phoenix.sip6/env/lib64/python3.10/site-packages/ply/yacc.py",
> line 331, in parse
>     return self.parseopt(input, lexer, debug, tracking, tokenfunc)
>   File
> "/home/talbert/wxPython/Phoenix.sip6/env/lib64/python3.10/site-packages/ply/yacc.py",
> line 823, in parseopt
>     p.callable(pslice)
>   File
> "/home/talbert/wxPython/Phoenix.sip6/env/lib64/python3.10/site-packages/sipbuild/generator/parser/rules.py",
> line 551, in p_extract
>     pm.module_state.module.extracts.append(Extract(id, order, part))
> AttributeError: 'Module' object has no attribute 'extracts'

Should be fixed in the next snapshot. I'd suggest you work with the 
snapshots at the moment as they have quite a few fixes. I'm happy to 
hold off from the next release until you are happy with them.

Thanks,
Phil


More information about the PyQt mailing list