https://prefect.io logo
f

FuETL

02/09/2022, 8:42 PM
Hey guys i getting this error while running my flow. Is there something i can look up to verify this error? I'm using the correct images from docker
 Failed to load and execute Flow's environment: StorageError('An error occurred while unpickling the flow:\n  ModuleNotFoundError("No module named \'testing_flow\'")\nThis may be due to one of the following version mismatches between the flow build and execution environments:\n  - cloudpickle: (flow built with \'2.0.0\', currently running with \'1.6.0\')\n  - python: (flow built with \'3.9.7\', currently running with \'3.7.10\')\nThis also may be due to a missing Python module in your current environment. Please ensure you have all required flow dependencies installed.')
k

Kevin Kho

02/09/2022, 8:44 PM
The Flow registration versions need to match the execution for Python, cloudpickle, and Prefect because there is serialization and deserialization, and having different versions will break this
f

FuETL

02/09/2022, 8:47 PM
Yeah but i using an image that use the python 3.9, there this 3.7 come from? That's the issue.
k

Kevin Kho

02/09/2022, 8:48 PM
From the base Prefect image if you use something like Docker storage or DockerRun
You can just specify the python 3.9 image as your base image
Can you show me your Storage and RunConfig?
f

FuETL

02/09/2022, 8:58 PM
Let me try something, just one sec.
Yeah i was passing the wrong DOCKER_IMAGE parameter to ECSRun
Thank you @Kevin Kho
k

Kevin Kho

02/09/2022, 9:14 PM
Ah gotcha. Of course!
8 Views