https://prefect.io logo
Title
m

Mac Gréco Péralte Chéry

07/03/2020, 8:00 PM
Hello everyone , i have deployed prefect cor on aws Ec2 instance and i have some problem running the flow on it.
Unexpected error while running flow: AttributeError("'Flow' object has no attribute 'slugs'",)
Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.6/site-packages/prefect/engine/flow_runner.py", line 240, in run
    parameters=parameters,
  File "/home/ubuntu/.local/lib/python3.6/site-packages/prefect/engine/cloud/flow_runner.py", line 277, in initialize_run
    tasks = {slug: t for t, slug in self.flow.slugs.items()}
AttributeError: 'Flow' object has no attribute 'slugs'
c

Chris White

07/03/2020, 8:09 PM
This is usually caused by version mismatches between your agent / Docker images and the version you registered your flow with; this attribute was introduced in Prefect core version 0.12.0.
m

Mac Gréco Péralte Chéry

07/03/2020, 8:42 PM
Can you be more precise? i am new to prefect. My local prefect core version is 0.12.0 and on the EC2 server is 0.12.1
c

Chris White

07/03/2020, 10:14 PM
Hi Mac; apologies for the confusion.
flow.slugs
was actually introduced in 0.12.1. What’s happening is that the Flow is built and stored using 0.12.0 without a
slugs
attribute, and when it is run using a
FlowRunner
of version
0.12.1
that attribute is missing. If you upgrade your local core version to 0.12.1 the issue should resolve.
m

Mac Gréco Péralte Chéry

07/03/2020, 11:14 PM
@Chris White Thanks, that resolved my issue. Thank you again!
c

Chris White

07/04/2020, 12:03 AM
Anytime! Glad I could help