Matrix-synapse fails to install

I don’t understand this part.
You installed something via dietpi-software and then you can’t install synapse (also via dietpi-software)?

But there was an similiar issue some days ago, with HA, python, rust and the cryptography stuff, maybe this thread can help you: