Hi, I'm running a local prefect server and agent a...
# ask-community
d
Hi, I'm running a local prefect server and agent as per docs with:
Copy code
prefect backend server
prefect server start
prefect agent start local -p .
server launches ok, ui looks good, I can register a simple hello world flow,
Copy code
with Flow("Welcome Flow") as pf:
    print("Hello world")
pf.register(project_name="Hello, World!")
Registering this flow results in
Copy code
Hello world
Result Handler check: OK
Flow: <http://localhost:8080/flow/a5ec20aa-ad9e-4add-977e-cffe9699eba3>
But when I run the flow from the UI, I get this error message:
Copy code
[2020-09-18 16:20:35,115] ERROR - agent | Error while deploying flow: FileNotFoundError(2, "No such file or directory: 'prefect'")
Any thoughts? ty 🙂
n
Hi @Dolor Oculus - is it possible that
prefect
isn't available from the path you've specified with your agent? Perhaps due to a virtual environment?
d
Hi, good guess, let me try putting it on the PATH
that was it! 🙏
n
Brilliant 🚀