James Keegan
05/20/2022, 5:00 PMcloudpickle
v2.1.0 was just released an hour ago and it has broken the healthcheck when we try to register a flow. We're using the prefecthq/prefect:0.15.6-python3.7
as a base image.
We now get this error when building the docker image.
Step 21/21 : RUN python /opt/prefect/healthcheck.py '["/opt/prefect/flows/prefect-dbt-run-modelling.prefect"]' '(3, 7)'
---> Running in 1d14c333ced9
Beginning health checks...
System Version check: OK
Traceback (most recent call last):
File "/opt/prefect/healthcheck.py", line 152, in <module>
flows = cloudpickle_deserialization_check(flow_file_paths)
File "/opt/prefect/healthcheck.py", line 44, in cloudpickle_deserialization_check
flows.append(cloudpickle.loads(flow_bytes))
AttributeError: Can't get attribute '_make_function' on <module 'cloudpickle.cloudpickle' from '/usr/local/lib/python3.7/site-packages/cloudpickle/cloudpickle.py'>
Kevin Kho
Zanie
James Keegan
05/20/2022, 5:09 PMKevin Kho
cloudpickle
version the same as the one in the prefecthq/prefect:0.15.6-python3.7
containerJames Keegan
05/20/2022, 5:40 PMextra_dockerfile_command
) did! Yeah must have been a version mismatch as statedIlya Galperin
05/20/2022, 7:10 PMRUN pip install cloudpickle==2.1.0
Kyle McChesney
05/20/2022, 8:38 PMZanie
Kevin Kho