https://prefect.io logo
#prefect-community
Title
# prefect-community
v

Vlad Tudor

09/06/2022, 12:22 PM
Hi, does this look familiar?
Copy code
Failed to load and execute flow run: ModuleNotFoundError("No module named '/root/'")
I am running the Prefect Agent on a separate machine than the Prefect Server, but the communication works (The Flow starts on the Agent) Thanks!
1
a

Anna Geller

09/06/2022, 12:36 PM
v

Vlad Tudor

09/06/2022, 12:38 PM
Yes, it is Prefect 1
Oh, I get it now, I should not use a Local Storage. Makes sense, thanks
🙌 1
And when you say it shouldn't happen in Prefect 2, what does that mean, that I am able to run the Agent on a different machine than where I registered the Flow without any other configuration?
a

Anna Geller

09/06/2022, 2:13 PM
in Prefect 2, we package both flows and code dependencies in remote storage blocks, which completely eliminates such errors
v

Vlad Tudor

09/06/2022, 2:14 PM
I'm considering switching to Prefect 2, even if I already wrote the code in 1. Do you advise?
a

Anna Geller

09/06/2022, 2:16 PM
100% yes, it will be absolutely worth it, and generally this is something you will have to do sooner or later since Prefect 2 is the LTS product
4 Views