Lawal Idris
12/26/2024, 9:51 PMLawal Idris
12/26/2024, 9:52 PM# relevant section of the file:
pull:
- prefect.deployments.steps.git_clone:
repository: <https://github.com/drisAloma/prefect_flows.git>
branch: main
# deployment configurations
deployments:
# base metadata
- name: my_github_deployment
entrypoint: hello.py:hello_world
work_pool:
name: cloud_deploy
work_queue_name:
job_variables: {}
concurrency_limit:
enforce_parameter_schema: true
schedules:
- interval: 30.0
anchor_date: '2024-12-25T21:55:09.632605+00:00'
timezone: UTC
active: false
Nate
12/26/2024, 11:20 PM'FileNotFoundError: [Errno 2] No such file or directory: '/Users/lawalidris/Desktop/data_eng/prefect/hello.py
it looks like you might be running prefect deploy
from your
/Users/lawalidris/Desktop/data_eng/prefect
directory
but the entrypoint
should be relative to the root of your repo, which from the pull
step seems to be this repo
prefect_flows
so where are you running prefect deploy
from? it should be run from the root of your prefect_flows
repo, and then entrypoint
should be relative to that repo root
like these examplesLawal Idris
12/27/2024, 2:10 PMprefect deploy
from "Users/lawalidris/Desktop/data_eng/prefect" locally.Lawal Idris
12/27/2024, 2:10 PMLawal Idris
12/27/2024, 2:11 PMLawal Idris
12/27/2024, 2:11 PMfrom prefect import flow
if __name__ == "__main__":
flow.from_source(
source="<https://github.com/drisAloma/prefect_flows.git>",
entrypoint="hello.py:hello_world",
).deploy(
name="my_github_deployment",
work_pool_name="cloud_deploy",
parameters={"goodbye": True, "name":"Lawal"}
)
Lawal Idris
12/30/2024, 10:19 PMLawal Idris
12/30/2024, 10:20 PM