thebuleon29
06/28/2021, 4:39 PMRunNamespacedJob
tasks in my flow. I installed Prefect using pip install "prefect[kubernetes]"
, but when I try to run my flow i get `ImportError: Using prefect.tasks.kubernetes
requires Prefect to be installed with the "kubernetes" extra.` . I also tried directly from source, cloning the git repo and running pip install "./prefect[kubernetes]"
but I get the same result...Kevin Kho
thebuleon29
06/29/2021, 8:18 AMprefect run
command (prefect run -p ./k8s_flow.py
). I can run other flows this way, even without the agent.
Even when I try to launch the server and run the agent I get the same error when running prefect register --project test -p ./k8s_flow.py
.thebuleon29
06/29/2021, 8:28 AMthebuleon29
06/29/2021, 8:57 AMImportError: cannot import name 'client' from partially initialized module 'kubernetes' (most likely due to a circular import) (/usr/prefect/dags/kubernetes.py)
.
I import like this: from prefect.tasks.kubernetes.job import RunNamespacedJob
.thebuleon29
06/29/2021, 9:04 AMKevin Kho