Ruslan Bergenov
09/06/2024, 11:31 PMDEFAULT 2024-09-06T23:24:20.993197Z Warning! Failed to load collection 'prefect_gcp': ImportError: cannot import name 'SecretDict' from 'prefect.types' (/usr/local/lib/python3.10/site-packages/prefect/types/__init__.py)
I am using this Docker image:
--image=prefecthq/prefect:2-latest
Anyone else has the same error? Any insight on fixes or workarounds?Nate
09/07/2024, 12:37 AMChris White
Yanic Möller
09/10/2024, 9:06 AMprefecthq/prefect:2.20.6-python3.9
and I explicitly install the following requirements for Prefect:
prefect==2.20.6
prefect-docker==0.5.5
prefect-gcp==0.5.17
I've already tried changing to prefect-gcp==0.5.8
but this returns the same error.Yanic Möller
09/10/2024, 9:07 AMYanic Möller
09/10/2024, 1:09 PMYanic Möller
09/10/2024, 1:12 PMNate
09/10/2024, 1:15 PMRuslan Bergenov
09/10/2024, 4:54 PMRuslan Bergenov
09/13/2024, 11:44 PMgcloud run deploy $WORKER --image=prefecthq/prefect:2-latest \
--set-env-vars
........
--args "prefect","worker","start","--install-policy","always","--with-healthcheck","-p","cloud_run_work_pool","-t","cloud-run"
I will try the suggested workarounds.Ruslan Bergenov
09/14/2024, 12:05 AMgcloud run deploy $SERVER --image=prefecthq/prefect:2-latest
…..
gcloud run deploy $WORKER --image=prefecthq/prefect:2-latest
….