Fwd: sip6: AttributeError: 'YaccProduction' object has no attribute 'parser_manager'

Dmitry Shachnev mitya57 at ubuntu.com
Tue Apr 26 11:11:59 BST 2022


On Mon, Apr 25, 2022 at 06:00:47PM +0100, Phil Thompson wrote:
> All fixed - thanks.

One more error now:

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 248, 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 2216, 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,
TypeError: WrappedException.__init__() missing 3 required positional arguments: 'builtin_base_exception', 'defined_base_exception', and 'py_name'

--
Dmitry Shachnev


More information about the PyQt mailing list