hey all, trying to run remotely the `multiregion_h...
# ask-the-community
h
hey all, trying to run remotely the
multiregion_house_price_predictor
example with
ImageSpec
for the flytectl sandbox. Without
ImageSpec
the module is not found:
Copy code
ModuleNotFoundError: No module named 'xgboost'
But with
ImageSpec
added to the dynamic task I get the following error:
Copy code
Message:

    failed to run command envd build --path /tmp/flytexs2bdbs9/local_flytekit/e1e44db9fea33d3ded1b106d31be4f95  --platform linux/amd64 --output type=image,name=localhost:30000/imagespec:W0u7emmgOREVgTE342Grvg..,push=true with error b'time="2023-08-13T00:09:15Z" level=fatal msg="Cannot get public key path"\n'

SYSTEM ERROR! Contact platform administrators.
Not sure which image is currently stable with the envd buildkit but I am using:
sha-713f3f86a4d74d555e1a55b52065119df39117e3
This is how I defined `ImageSpec`:
Copy code
image = ImageSpec(
    name="imagespec",
    registry="localhost:30000",
    packages=["scikit-learn", "pandas", "xgboost"],
)
s
Are you seeing that error on your terminal while you are registering/executing the workflow?
h
Sorry for the delay @Samhita Alla this was on the flyte console during execution - I should also clarify, since
multiregion_house_price_predictor
imports from
house_price_predictor
, this occurs with
ImageSpec
used in the former, but is used/not used in the latter.
s
If your tasks are using custom dependencies, then you need to assign the image to
container_image
in your task decorators. Not sure why you're seeing the error though; it looks SSH-related. For the time being, can you push it to your dockerhub? You just have to specify the dockerhub username in the registry field.