https://prefect.io logo
j

Jasono

11/07/2020, 4:50 PM
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

Spencer

11/07/2020, 5:36 PM
The modules need to be available to whatever is running the flow. What is your executor setup?
j

Jasono

11/07/2020, 5:37 PM
LocalDockerExecutor
if that’s what you are asking..
s

Spencer

11/07/2020, 6:25 PM
Yeah; are the
sys.path.append()
modules available in the container?
j

Jasono

11/07/2020, 6:37 PM
how can I find out?
I didn't add anything to what was installed by default.
3 Views