CryptographyDeprecationWarning:
encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use Ell
I've had better success with:
import warnings warnings.simplefilter("ignore", cryptography.utils.CryptographyDeprecationWarning)