<@ULVA73B9P>, I am using Prefect cloud and deployi...
# ask-marvin
b
@Marvin, I am using Prefect cloud and deploying using Prefect 2.20.3. Upon deployment I am getting the following error:
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'. Did you mean: 'X509_V_FLAG_EXPLICIT_POLICY'?
How do I fix it?
m
I couldn't find a specific solution for the error related to
X509_V_FLAG_NOTIFY_POLICY
in the Prefect documentation or GitHub issues. However, this error may be related to SSL configurations or dependencies. Here are some steps you can try to resolve it: 1. Update Dependencies: Ensure all libraries, especially SSL-related ones (like
cryptography
and
pyOpenSSL
), are up-to-date.
Copy code
pip install --upgrade cryptography pyOpenSSL
2. Environment Configuration: If using a self-signed SSL certificate, ensure it's correctly configured and trusted by your environment. You can configure your environment to trust the certificate by setting the
SSL_CERT_FILE
environment variable. You might also temporarily disable SSL verification for testing (not recommended for production):
Copy code
export SSL_CERT_FILE=/path/to/your/certfile
   export PREFECT_API_TLS_INSECURE_SKIP_VERIFY=True
3. Check Python Version: Ensure compatibility between your Python version and the Prefect version you are using. For further troubleshooting, refer to the Prefect Troubleshooting Guide and Installation Guide. If you still face issues, consider opening a new issue on Prefect's GitHub Issues Page. If you have additional details or error logs, that may help in pinpointing the issue further.