Fwd: sip6: AttributeError: 'YaccProduction' object has no attribute 'parser_manager'
Dmitry Shachnev
mitya57 at ubuntu.com
Mon Apr 25 16:08:13 BST 2022
Hi Phil!
On Mon, Apr 25, 2022 at 11:29:22AM +0100, Phil Thompson wrote:
> Should be fixed in the next snapshot.
Thanks. Now I get another error:
Traceback (most recent call last):
File "/usr/bin/sip-build", line 33, in <module>
sys.exit(load_entry_point('sip==6.6.1', 'console_scripts', 'sip-build')())
File "/usr/lib/python3/dist-packages/sipbuild/tools/build.py", line 37, in main
handle_exception(e)
File "/usr/lib/python3/dist-packages/sipbuild/exceptions.py", line 81, in handle_exception
raise e
File "/usr/lib/python3/dist-packages/sipbuild/tools/build.py", line 34, in main
project.build()
File "/usr/lib/python3/dist-packages/sipbuild/project.py", line 249, in build
self.builder.build()
File "/usr/lib/python3/dist-packages/sipbuild/builder.py", line 48, in build
self._generate_bindings()
File "/usr/lib/python3/dist-packages/sipbuild/builder.py", line 277, in _generate_bindings
buildable = bindings.generate()
File "/usr/lib/python3/dist-packages/sipbuild/bindings.py", line 166, in generate
spec, sip_files = parse(self.sip_file, SIP_VERSION, encoding,
File "/usr/lib/python3/dist-packages/sipbuild/generator/parser/parser.py", line 35, in parse
protected_is_public, include_dirs, strict).parse(sip_file)
File "/usr/lib/python3/dist-packages/sipbuild/generator/parser/parser_manager.py", line 1454, in parse
self._parser.parse(self._read(sip_file), lexer=self._lexer,
File "/usr/lib/python3/dist-packages/ply/yacc.py", line 331, in parse
return self.parseopt(input, lexer, debug, tracking, tokenfunc)
File "/usr/lib/python3/dist-packages/ply/yacc.py", line 823, in parseopt
p.callable(pslice)
File "/usr/lib/python3/dist-packages/sipbuild/generator/parser/rules.py", line 2217, in p_exception
xd = pm.find_exception(p, 1, cpp_name, raise_code=raise_code)
File "/usr/lib/python3/dist-packages/sipbuild/generator/parser/parser_manager.py", line 310, in find_exception
w_exception = WrappedException(iface_file, raise_code,
NameError: name 'WrappedException' is not defined. Did you mean: 'BaseException'?
I checked the code with pyflakes and it reports several more undefined
variables:
sipbuild/bindings.py:201:34 undefined name 'extracts'
sipbuild/generator/templates.py:183:61 undefined name 'known'
sipbuild/generator/parser/instantiations.py:183:26 undefined name 'proto_args'
sipbuild/generator/parser/instantiations.py:419:28 undefined name 'iclass'
sipbuild/generator/parser/instantiations.py:421:49 undefined name 'proto_template'
sipbuild/generator/parser/instantiations.py:421:9 undefined name 'i_template'
sipbuild/generator/parser/parser_manager.py:310:23 undefined name 'WrappedException'
sipbuild/generator/parser/parser_manager.py:332:39 undefined name 'IFaceFileType'
sipbuild/generator/parser/parser_manager.py:1770:13 undefined name 'pm'
sipbuild/generator/parser/rules.py:1284:22 undefined name 'body'
--
Dmitry Shachnev
More information about the PyQt
mailing list