Hi, some of my tasks import modules from a distant...
# ask-community
j
Hi, some of my tasks import modules from a distant path using
sys.path.append()
. This seems to work fine when I run the flow locally with flow.run(), but not when running it from the Prefect Cloud/Server. (The error says the module can’t be found) Does it sound right? If so, why would it be the case?
s
The modules need to be available to whatever is running the flow. What is your executor setup?
j
LocalDockerExecutor
if that’s what you are asking..
s
Yeah; are the
sys.path.append()
modules available in the container?
j
how can I find out?
I didn't add anything to what was installed by default.