gtk version should be > 4.10
I am trying to build from source on Ubuntu 22.04 in the 'master' branch and I see that Gtk.FileChooserDialog() has been replaced with Gtk.FileDialog() however based on the gtk+ documentation this was added in 4.10.
Also Ubuntu 22.04 only includes gtk 4.6 but that is a different problem.