If you're importing the boto3 library in your flyt...
# ask-the-community
s
If you're importing the boto3 library in your flyte workflow, the default Docker image won't work. Have you tried using image spec? https://github.com/flyteorg/flytesnacks/pull/988
r
Samhita, my requirements.txt has boto3 in it, and I'm packaging up my repo
pyflyte --pkgs flyte.workflows package --image me/pdi:flyte-0.0.2.rez-dev
and then running
flytectl register files --config /Users/rezwan.abir/.flyte/config.yaml --destinationDirectory . --project flytesnacks --domain development --archive flyte-package.tgz
to register workflow
why should it complain about boto3 not found now
s
It shouldn't. Can you please check if your tasks are using the specified image?
r
getting a different error, backing off pulling image
apparently i have to run kubectl create secret for flyte docker
s
Is it a private image?
r
yes, i figured out, had to set a secret with credentials
all good now
116 Views