Hi Community, I am trying to run the ImageSpec ex...
# flyte-support
r
Hi Community, I am trying to run the ImageSpec example using Flyte 1.13.11. First it try to find that the image exists or not. As it found that the image doesn't exist, it try to build one and try to push the image to GCP Artifact Registry. During this step, I am getting the following error:
Image <http://europe-west4-docker.pkg.dev/mb-adas-2015-p-a4db/playground/flytekit:lIxsRtHOS2hCPEvW1wGs1A|europe-west4-docker.pkg.dev/mb-adas-2015-p-a4db/playground/flytekit:lIxsRtHOS2hCPEvW1wGs1A> not found. building...
AttributeError: 'ImageSpec' object has no attribute 'python_exec'
I am trying to build the image using the following snippet of code:
# Create the image for pandas using ImageSpec
pandas_image_spec = ImageSpec(
builder="envd",
base_image=ContainerImage.PYTHON_3_10.value,
packages=["pandas", "numpy", "pyarrow", "fastparquet"],
apt_packages=["git"],
env={"Debug": "True"},
registry=REGISTRY,
)
How can I solve this issue ?
e
Hi, can you try and run with a newer version? I think the
python_exec
field in ImageSpec is added in flytekit 1.15.0