This is still an open issue in Dec 2024, affecting multiple projects (and multiple distros: I'm going through the redhat, arch bug reports now, looking for a fix/patch or work-around.) For the "ceph dashboard" its a blocker: can't install the dashboard, full stop.
Work-arounds include applying this patch to allow "unsafe operation": https://github.com/zer0def/pyo3/commit/eba5243197995f6b37bef491f36d5a1ad0ee03e3 That at least unblocks the blocker. The other is to revert to earlier releases of PyO3. I'm trying to track the dense network of interconnected bug reports downstream of this, here: https://github.com/pyca/cryptography/issues/12080 I have not yet seen any conclusive, comprehensive solutions. Everyone is trying to eliminate dependencies, downgrade version levels or disable the check that prevents operation.