[FileNotFoundError] when deploying from a script in a subfolder

Hi, any idea why I’m getting FileNotFoundError when trying to deploy a flow with CLI:

prefect deployment build workflows/test_download.py:finetune_ner -n model-downloader -ib kubernetes-job/model-finetune-flow -a

Script at 'workflows/test_download.py' encountered an exception: FileNotFoundError(2, 'No such file or directory')

prefect version == 2.11.3
My repo structure is as below:
├── Dockerfile
├── requirements.txt
├── src
│ ├── data_preparation_tasks.py
└── workflows
│ ├── test_download.py

test_download.py imports a module from src.data_preparation_tasks

1 Like