https://prefect.io logo
Title
m

mithalee mohapatra

07/28/2020, 2:09 PM
Hi,My flow run failed when started from the Prefect UI. Logs say :"AttributeError: 'Flow' object has no attribute 'slugs' ". After finding the solution in the slack channel i tried to get my current prefect version. My current prefect version is "0+unknown". I tried to force reinstall prefect version again but still getting the same unknown version.What does it mean.
z

Zachary Hughes

07/28/2020, 2:14 PM
Hi @mithalee mohapatra, just to clarify: when you run
pip show prefect
, you're getting back something that looks like:
Name: prefect
Version: 0+unknown
Summary: The Prefect Core automation and scheduling engine.
Home-page: <https://www.github.com/PrefectHQ/prefect>
Author: Prefect Technologies, Inc
, correct?
j

Jim Crist-Harif

07/28/2020, 2:21 PM
How method did you use to install prefect (e.g. pip, conda, etc...)?
m

mithalee mohapatra

07/28/2020, 4:28 PM
pip
Here is what i get :
j

Jim Crist-Harif

07/28/2020, 4:35 PM
Hmmm, that's odd. This was pip install from pypi?
m

mithalee mohapatra

07/28/2020, 4:35 PM
This is the error from the Prefect UI logs:
Yes pip install from pypi.
j

Jim Crist-Harif

07/28/2020, 4:40 PM
So ignoring the weird unknown version bit, the error you're seeing is because the environment your flow is running in doesn't match the environment the flow was built in. Slugs were added to
Flow
objects in version 0.12.1. It looks like your flow runner must be running at least 0.12.1, while your flow was built with 0.11.4.
Not knowing what your agent/environment setup is, the general recommendation is to match python and prefect versions between the execution and registration environments.
m

mithalee mohapatra

07/28/2020, 4:46 PM
Thank you Jim. So a reinstall of prefect should help.
j

Jim Crist-Harif

07/28/2020, 4:47 PM
Yeah, that'd be the first thing I'd try.
👍 1