Hi I am facing an issue I have created an extract...
# ask-community
s
Hi I am facing an issue I have created an extraction flow and run it locally , its working fine, this program contains one task and inside this task its calling another function from different python module for ex import abc @task def fun() abc.fun1() assume like above , its working in local but when i register the flow in cloud its failed saying abc not found how can we resolve this should I write all the logic inside task function itself ??
k
Are you still running locally? Or running on a different machine? You need to have these modules available in the execution environment
s
hi this is in aws ec2 machine , and all these modules are available in this machine in the same folder itself when I run the prefect flow locally its running fine the issue is when i set the backend to cloud and and trying to run it in cloud it shows that this module not dfound should I mention the local file path somehere when we start the agent ?
k
You can set a working directory that has access to the module. Check this