https://prefect.io logo
#prefect-server
Title
# prefect-server
j

Jacob Longhurst

07/21/2022, 7:33 PM
Can anyone help me work out a bug? I’m building the docker image with prefecthq/prefect:1.1.0-python3.8. I’m also registering the flow with prefect 1.1.0 and doing so using the cli. The error is
Copy code
Failed to load and execute flow run: FlowStorageError('An error occurred while unpickling the flow:\n  AttributeError("Can\'t get attribute \'_make_function\' on <module \'cloudpickle.cloudpickle\' from \'/usr/local/lib/python3.8/site-packages/cloudpickle/cloudpickle.py\'>")\nThis may be due to one of the following version mismatches between the flow build and execution environments:\n  - cloudpickle: (flow built with \'2.1.0\', currently running with \'2.0.0\')')
k

Kevin Kho

07/21/2022, 7:34 PM
The cloudpickle version and python version of your local needs to match the version inside the base image you are using.
j

Jacob Longhurst

07/21/2022, 7:40 PM
The prefecthq/prefect:1.1.0-python3.8 appears to be using 3.8.12. That is what I am using as well.
k

Kevin Kho

07/21/2022, 7:42 PM
how about cloudpickle version?
j

Jacob Longhurst

07/21/2022, 7:45 PM
son of a.. i know what i did wrong..
sorry to bother.
k

Kevin Kho

07/21/2022, 7:46 PM
No worries! All good 🙂
12 Views