Hello, I'm attempting to deploy a dockerfile in pr...
# questions
e
Hello, I'm attempting to deploy a dockerfile in prefect cloud. I was successful on doing it by following the docs https://docs.kedro.org/en/stable/deployment/prefect.html. But when I'm running the flow this is the error I'm getting this traceback error on the prefect agent.
Copy code
2023-11-07 18:20:37 10:20:37.573 | INFO    | Flow run 'hissing-crane' - Downloading flow code from storage at '/home/kedro_docker'
2023-11-07 18:20:37 10:20:37.575 | ERROR   | Flow run 'hissing-crane' - Flow could not be retrieved from deployment.
2023-11-07 18:20:37 Traceback (most recent call last):
2023-11-07 18:20:37   File "/usr/local/lib/python3.8/site-packages/prefect/engine.py", line 405, in retrieve_flow_then_begin_flow_run
2023-11-07 18:20:37     flow = await load_flow_from_flow_run(flow_run, client=client)
2023-11-07 18:20:37   File "/usr/local/lib/python3.8/site-packages/prefect/client/utilities.py", line 51, in with_injected_client
2023-11-07 18:20:37     return await fn(*args, **kwargs)
2023-11-07 18:20:37   File "/usr/local/lib/python3.8/site-packages/prefect/deployments/deployments.py", line 230, in load_flow_from_flow_run
2023-11-07 18:20:37     await storage_block.get_directory(from_path=from_path, local_path=".")
2023-11-07 18:20:37   File "/usr/local/lib/python3.8/site-packages/prefect/filesystems.py", line 162, in get_directory
2023-11-07 18:20:37     copytree(from_path, local_path, dirs_exist_ok=True, ignore=ignore_func)
2023-11-07 18:20:37   File "/usr/local/lib/python3.8/shutil.py", line 555, in copytree
2023-11-07 18:20:37     with os.scandir(src) as itr:
2023-11-07 18:20:37 FileNotFoundError: [Errno 2] No such file or directory: '/home/kedro_docker'
j
hello @Eluard Camota, how did you create the Docker image?
e
i used the kedro docker init
👍🏼 1