# ask-the-community

Robin Eklund

09/19/2022, 11:30 AM
Hi! I am following this guide: 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
Copy code
iamRoleARN: ""
inputs: {}
kubeServiceAcct: ""
targetDomain: ""
targetProject: ""
version: v6
workflow: workflows.example.my_wf
this are the files:
Copy code
├── Dockerfile
├── execution_spec.yaml
├── flyte.config
├── flyte-package.tgz
├── Makefile
├── requirements.test.txt
├── requirements.txt
└── workflows
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