Skip to content

pywayland-scanner throws KeyError 'wl_surface' #58

@heuer

Description

@heuer

I fixed the import error from issue #57 locally, but now I get another error:

pywayland-scanner -i wlr-layer-shell-unstable-v1.xml
Traceback (most recent call last):
  File "/home/user/pywayland-test/bin/pywayland-scanner", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/user/pywayland-test/lib/python3.11/site-packages/pywayland/scanner/__main__.py", line 117, in main
    protocol.output(args.output_dir, protocol_imports)
  File "/home/user/pywayland-test/lib/python3.11/site-packages/pywayland/scanner/protocol.py", line 109, in output
    iface.output(printer, module_imports)
  File "/home/user/pywayland-test/lib/python3.11/site-packages/pywayland/scanner/interface.py", line 67, in output
    imports = set(
              ^^^^
  File "/home/user/pywayland-test/lib/python3.11/site-packages/pywayland/scanner/interface.py", line 70, in <genexpr>
    for _import in method.imports(self.name, module_imports)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/pywayland-test/lib/python3.11/site-packages/pywayland/scanner/method.py", line 64, in imports
    import_protocol = module_imports[arg.interface]
                      ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'wl_surface'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions