Robin Eklund
09/19/2022, 11:30 AMModuleNotFoundError: No module named 'workflows'
.
These are the commands i am running:
# 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
iamRoleARN: ""
inputs: {}
kubeServiceAcct: ""
targetDomain: ""
targetProject: ""
version: v6
workflow: workflows.example.my_wf
this are the files:
.
├── 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?