Using `prefect.yaml` for a deployment on a k8s wor...
# ask-community
l
Using
prefect.yaml
for a deployment on a k8s worker I'm seeing the following:
Copy code
Entrypoint: src/flow.py:sandbox
Path: None
in the UI - this is causing the worker to not be able to run the flow:
Copy code
Flow could not be retrieved from deployment.
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/prefect/engine.py", line 416, in retrieve_flow_then_begin_flow_run
    flow = await load_flow_from_flow_run(flow_run, client=client)
  File "/usr/local/lib/python3.10/site-packages/prefect/client/utilities.py", line 51, in with_injected_client
    return await fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/prefect/deployments/deployments.py", line 232, in load_flow_from_flow_run
    basepath = deployment.path or Path(deployment.manifest_path).parent
  File "/usr/local/lib/python3.10/pathlib.py", line 960, in __new__
    self = cls._from_parts(args)
  File "/usr/local/lib/python3.10/pathlib.py", line 594, in _from_parts
    drv, root, parts = self._parse_args(args)
  File "/usr/local/lib/python3.10/pathlib.py", line 578, in _parse_args
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
How can I set the path?
I tried just setting
path
in the
prefect.yaml
?
Copy code
deployments:
  - name: dev-sandbox
    tags:
      - dev
      - etl
    description: Sandbox flow used for testing
    schedule: null
    entrypoint: src/flow.py:sandbox
    path: /app/src/
but this did not work
Used a pull step