Riccardo Tesselli
07/28/2022, 2:25 PMprefect deployment build flows/hello_world.py:hello_world --name "Hello world dev" --tag kubernetes --tag dev --infra kubernetes-job --infra-block base-dev
and I got this:
File "/Users/tessellir/Projects/il-da-orchestrator/.venv/lib/python3.8/site-packages/prefect/blocks/core.py", line 501, in load
block_type_slug, block_document_name = name.split("/", 1)
ValueError: not enough values to unpack (expected 2, got 1)
An exception occurred.
I’ve ofc created a block in Prefect cloud of type KubernetesJob called base-dev, what am I missing?Deployment.create()
but I saw that is dismissed, any chance to have it back in the upcoming versions?Mathijs Carlu
07/28/2022, 2:35 PMRiccardo Tesselli
07/28/2022, 2:36 PM--infra-block
and infer --infra
from the first part before the /
?Mathijs Carlu
07/28/2022, 2:51 PMRiccardo Tesselli
07/28/2022, 3:23 PMprefect deployment build flows/hello_world.py:hello_world --name "Hello world dev" --tag kubernetes --tag dev --infra kubernetes-job --infra-block kubernetes-job/base-dev --storage-block local-file-system/runtime-folder
and I have the block in the image on cloud, but I get this
File "/Users/tessellir/Projects/il-da-orchestrator/.venv/lib/python3.8/site-packages/prefect/filesystems.py", line 114, in put_directory
shutil.copytree(from_path, local_path, dirs_exist_ok=True)
NameError: name 'from_path' is not defined
An exception occurred.
Mathijs Carlu
07/28/2022, 3:35 PMAndreas Nigg
07/28/2022, 8:15 PMLucien Fregosi
07/29/2022, 12:13 PMAndreas Nigg
07/29/2022, 12:19 PMLucien Fregosi
07/29/2022, 12:46 PMRiccardo Tesselli
07/30/2022, 9:37 PMMathijs Carlu
08/01/2022, 7:18 AM