Yanic Möller
09/10/2024, 9:10 AMWarning! Failed to load collection 'prefect_gcp': ImportError: cannot import name 'SecretDict' from 'prefect.types' (/usr/local/lib/python3.9/site-packages/prefect/types/__init__.py)Marvin
09/10/2024, 9:10 AMprefect_gcp import because SecretDict missing from prefect.types. let grug find reason for you.
Grug find error might be because SecretDict moved or renamed.
1. Prefect docs mention SecretDict for obfuscating sensitive data in logs. But maybe Prefect change structure or name.
2. No relevant GitHub issues found.
Grug suggest:
1. Check Prefect version compatibility for prefect_gcp.
2. Reference Prefect or prefect_gcp changelog and update code to match new naming or structure.
More info:
- Prefect Integration
- Prefect Block TypesYanic Möller
09/10/2024, 1:08 PMprefect worker start --install-policy always
I resolved this by running the following instead:
prefect worker start --install-policy if-not-present
I have a custom requirements.txt and the always tried to install the newest version of prefect-gcp which is not compatible.Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.
Powered by