sip: exception when trying to use generate-extracts

Scott Talbert swt at techie.net
Wed May 25 00:07:14 BST 2022


On Tue, 24 May 2022, Scott Talbert wrote:

> On Tue, 24 May 2022, Phil Thompson 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.  I'll continue testing with the snapshots and let you know if I 
> run into any more issues.

Actually - is there a new snapshot?  The latest seems to be from 16 May.

Thanks,
Scott


More information about the PyQt mailing list