https://flyte.org logo
#ask-the-community
Title
# ask-the-community
s

Samhita Alla

06/14/2023, 4:40 AM
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

Rezwan Abir

06/14/2023, 4:46 PM
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

Samhita Alla

06/15/2023, 8:48 AM
It shouldn't. Can you please check if your tasks are using the specified image?
r

Rezwan Abir

06/15/2023, 11:06 AM
getting a different error, backing off pulling image
apparently i have to run kubectl create secret for flyte docker
s

Samhita Alla

06/15/2023, 11:58 AM
Is it a private image?
r

Rezwan Abir

06/15/2023, 12:01 PM
yes, i figured out, had to set a secret with credentials
all good now
5 Views