Hi, does this look familiar? ```Failed to load and...
# prefect-community
v
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
v
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
in Prefect 2, we package both flows and code dependencies in remote storage blocks, which completely eliminates such errors
v
I'm considering switching to Prefect 2, even if I already wrote the code in 1. Do you advise?
a
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