Port crash: Namespace Gtk-4.0 could not be found
When creating a new GNOME application project in GNOME Builder, and then trying to port the default XML/.ui
setup to Blueprint, the port crashes. This happens without me having made any changes to the default files.
STEP 1: Create subprojects/blueprint-compiler.wrap
Create subprojects/blueprint-compiler.wrap? [y/n] y
STEP 2: Set up .gitignore
Create .gitignore with '/subprojects/blueprint-compiler'? [y/n] y
STEP 3: Convert UI files
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/blueprintcompiler/main.py", line 58, in main
opts.func(opts)
File "/usr/lib/python3/dist-packages/blueprintcompiler/main.py", line 132, in cmd_port
interactive_port.run(opts)
File "/usr/lib/python3/dist-packages/blueprintcompiler/interactive_port.py", line 284, in run
in_files, out_files = step3()
File "/usr/lib/python3/dist-packages/blueprintcompiler/interactive_port.py", line 156, in step3
files = [
File "/usr/lib/python3/dist-packages/blueprintcompiler/interactive_port.py", line 157, in <listcomp>
(file, change_suffix(file), decompile_file(file, change_suffix(file)))
File "/usr/lib/python3/dist-packages/blueprintcompiler/interactive_port.py", line 45, in decompile_file
decompiled = decompiler.decompile(in_file)
File "/usr/lib/python3/dist-packages/blueprintcompiler/decompiler.py", line 187, in decompile
ctx = DecompileCtx()
File "/usr/lib/python3/dist-packages/blueprintcompiler/decompiler.py", line 61, in __init__
self.gir.add_namespace(get_namespace("Gtk", "4.0"))
File "/usr/lib/python3/dist-packages/blueprintcompiler/gir.py", line 53, in get_namespace
raise CompileError(f"Namespace {namespace}-{version} could not be found")
blueprintcompiler.errors.CompileError: Namespace Gtk-4.0 could not be found
Arguments: ['/usr/bin/blueprint-compiler', 'port']