https://prefect.io logo
Title
d

Dolor Oculus

09/18/2020, 4:21 PM
Hi, I'm running a local prefect server and agent as per docs with:
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,
with Flow("Welcome Flow") as pf:
    print("Hello world")
pf.register(project_name="Hello, World!")
Registering this flow results in
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:
[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

nicholas

09/18/2020, 4:24 PM
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

Dolor Oculus

09/18/2020, 4:25 PM
Hi, good guess, let me try putting it on the PATH
that was it! :thank-you:
n

nicholas

09/18/2020, 4:27 PM
Brilliant 🚀