Skipping plugin (filenam.py) as it seems to be invalid: The 'cryptography' distribution was not found and is required by ansible

There is very little tangible information in your message.
The error however still looks pretty clear to me.
Try installing the cryptography package (pip install cryptography).
I’m guessing that this will cause your filter plugin to work, so both the warning and the error will disappear.