Referencing this issue from @rudds
I had the same issue when trying to replicate from my TrueNAS Core 13 machine to a Ubuntu Server 23.10
The solution is to just install the missing library via apt
apt install python3-libzfs
Maybe someone will find this useful