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

Robin Eklund

09/19/2022, 11:30 AM
Hi! I am following this guide: https://docs.flyte.org/projects/cookbook/en/stable/auto/larger_apps/larger_apps_deploy.html I have built a Docker images, deployed it to AWS ECR, packaged and registered everything to flyte. When i execute the workflow i get
ModuleNotFoundError: No module named 'workflows'
. These are the commands i am running:
Copy code
# build docker image
docker build -f path/to/Dockerfile -t ${TAG} . 

# deploy to ECR
docker push <docker image>

# package
pyflyte --pkgs workflows package -f --image <docker image>

# register 
flytectl register files --project <project> --domain <domain> --archive flyte-package.tgz --version <version>

# generate launchplan
flytectl get launchplan --project <project> --domain <domain> workflows.example.my_wf --latest --execFile execution_spec.yaml 

# execute workflow
flytectl create execution --project <project> --domain <domain> --execFile execution_spec.yaml
this is the
execution_spec.yaml
Copy code
iamRoleARN: ""
inputs: {}
kubeServiceAcct: ""
targetDomain: ""
targetProject: ""
version: v6
workflow: workflows.example.my_wf
this are the files:
Copy code
.
├── docker_build_and_tag.sh
├── Dockerfile
├── execution_spec.yaml
├── flyte.config
├── flyte-package.tgz
├── Makefile
├── README.md
├── requirements.test.txt
├── requirements.txt
└── workflows
    ├── example.py
    ├── __init__.py
All these files and folders are copied into /root in the docker image. Do anyone have some good way of debugging this? my initial thought was to start the docker container and then execute whatever Flyte is executing, but not sure what that is. Or if someone already now know what i am missing?
Just needed a code duck 🦆 i missed to add /root to PYTHONPATH env variable
102 Views