This looks a lot like this issue: https://github.com/mapnik/python-mapnik/issues/231
That was caused by boost-python not being built with the same Python version.
Because the module still works with the default python the severity is reduced. If this issue persists when python3.12 is the default the severity will be raised again.
-- GPG Key ID: 4096R/6750F10AE88D4AF1 Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1