SWIG 4.4 removed SWIG_Python_TypeError and the bindings no longer compile with this version. See https://github.com/swig/swig/issues/3260#issuecomment-3272521479 for one possible remediation.