https://kedro.org/ logo
#questions
Title
# questions
k

Kyle Niosco

09/18/2023, 11:01 AM
Hello, everyone! I'm relatively new to learning Kedro, and I've been working on integrating a Prefect flow into my Kedro pipeline. I followed the steps outlined in your documentation available at https://docs.kedro.org/en/stable/deployment/prefect.html. So far, everything has been going smoothly, from the initial setup to converting the pipeline into a Prefect flow and running it for deployment on the Prefect Cloud server. However, I've encountered a ValueError that's a bit puzzling. The error message states that the "Source path has to be relative to the project root." I'm a bit confused by this error because, as per the documentation, I've placed the
register_prefect_flow.py
file in the project root directory as instructed, but I'm still encountering this issue. Any insights or suggestions on how to resolve this would be greatly appreciated. Thank you!
P 1
j

Juan Luis

09/18/2023, 11:16 AM
hi @Kyle Niosco! could you share the complete traceback?
k

Kyle Niosco

09/18/2023, 11:47 AM
Ok, sure. Here it is.
j

Juan Luis

09/18/2023, 12:23 PM
this problem looks similar to https://github.com/kedro-org/kedro/issues/2346 🤔 naturally this is a Windows system so there are no symlinks, but it's interesting to me that you're creating your project in a
\\Temp
directory, and that your system seems to be confused between
C:\\Users\\KodeCraft-2
and
C:\\Users\\KODECR-1
could you maybe create the project in a more visible directory, like
C:\\Users\\KodeCraft-2\\KedroProjects
or something like that, and try again?
k

Kyle Niosco

09/18/2023, 12:29 PM
I'm a bit confused actually by the statement in the error message, which suggests that I created the project in the Temp directory. When in fact, my project is located at a completely different path:
C:\Users\KodeCraft-2\Documents\Projects\data-playground
.
And that is the project root directory where I put the register_prefect_flow.py file.
j

Juan Luis

09/18/2023, 12:41 PM
I am confused too. maybe a temporary directory is being created by Prefect, but we didn't spot this during testing. @Kyle Niosco could you open an issue about this in https://github.com/kedro-org/kedro/issues/ ? with as many details as possible
5 Views