Pablo Recio
07/27/2024, 2:13 PMprefect.exceptions.ScriptError: Script at 'flows/meta_subscriptions.py' encountered an exception: AttributeError("cffi library '_openssl' has no function, constant or global variable named 'Cryptography_HAS_ED448'")
.
This is a new occurance and nothing changed in our piplinesMarvin
07/27/2024, 2:13 PMCryptography_HAS_ED448
error. This issue is likely due to an underlying dependency problem, possibly with the cryptography
library, which Prefect or one of its dependencies uses.
This kind of error can often surface if there’s been a change or update in the environment, even if you haven’t changed your pipelines directly.
### Suggested Steps to Resolve:
1. Update Dependencies:
Ensure all your dependencies are up to date.
Run: pip install --upgrade cryptography prefect
2. Check for Environment Consistency:
Make sure the environment where Prefect is running (e.g., Prefect Cloud vs. local) has consistent library versions.
3. Rebuild Virtual Environment (if using one):
If you’re using a virtual environment, try rebuilding it:
sh
pip freeze > requirements.txt
rm -rf venv
python -m venv venv
pip install -r requirements.txt
4. Specific Cryptography Version:
Sometimes specifying a particular version of the cryptography
library that’s known to work can help:
sh
pip install cryptography==37.0.0
5. Prefect Community Help:
If the issue persists, consider asking on the Prefect Discourse or Prefect Slack for community support.
These steps can help ensure that any underlying dependency issues are resolved.
For further details:
- Prefect Troubleshooting Guide: https://docs.prefect.io/latest/guides/troubleshooting/
- Prefect Integrations (Snowflake example): https://docs.prefect.io/latest/integrations/prefect-snowflake/credentials/
If any of the solutions work or if you find any new information, please make sure to share back, as it might help others facing the same issue.