Hud
08/11/2023, 11:26 PMmultiregion_house_price_predictor
example with ImageSpec
for the flytectl sandbox. Without ImageSpec
the module is not found:
ModuleNotFoundError: No module named 'xgboost'
But with ImageSpec
added to the dynamic task I get the following error:
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.
sha-713f3f86a4d74d555e1a55b52065119df39117e3
This is how I defined `ImageSpec`:
image = ImageSpec(
name="imagespec",
registry="localhost:30000",
packages=["scikit-learn", "pandas", "xgboost"],
)
Samhita Alla
Hud
08/15/2023, 11:15 PMmultiregion_house_price_predictor
imports from house_price_predictor
, this occurs with ImageSpec
used in the former, but is used/not used in the latter.Samhita Alla
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.