rhythmic-lizard-91902
02/07/2023, 7:33 PMaverage-finland-92144
02/07/2023, 7:46 PMkubectl get pods -n flyte
rhythmic-lizard-91902
02/08/2023, 1:15 AMrhythmic-lizard-91902
02/08/2023, 1:16 AMrhythmic-lizard-91902
02/08/2023, 1:16 AMtall-lock-23197
kubectl get pods -n flytesnacks-development
kubectl logs <pod-name> -n flytesnacks-development
rhythmic-lizard-91902
02/08/2023, 12:58 PMtall-lock-23197
pip show flytekit
?rhythmic-lizard-91902
02/08/2023, 3:29 PMaverage-finland-92144
02/08/2023, 6:10 PMrhythmic-lizard-91902
02/08/2023, 6:58 PMrhythmic-lizard-91902
02/08/2023, 7:00 PMrhythmic-lizard-91902
02/08/2023, 7:06 PMtall-lock-23197
workflows
to a parent directory that has an __init__.py
file?rhythmic-lizard-91902
02/13/2023, 4:28 PM__init__.py
in the parent folder and the error now is “no module named dockerization” This is my folder structure
dockerization
├── dockerization/Dockerfile
├── dockerization/Dockerfile_old
├── dockerization/LICENSE
├── dockerization/README.md
├── dockerization/__init__.py
├── dockerization/aggs_requirements.txt
├── dockerization/aws
│ └── dockerization/aws/config
├── dockerization/docker_build_and_tag_old.sh
├── dockerization/dockerbuild.sh
├── dockerization/flyte.config
├── dockerization/flytekit.config
├── dockerization/requirements.txt
└── dockerization/workflows
├── dockerization/workflows/__init__.py
└── dockerization/workflows/example.py
Error:
[1/1] currentAttempt done. Last Error: USER::Pod failed. No message received from kubernetes.
[f138ab0c8b09140fab80-n0-0] terminated with exit code (1). Reason [Error]. Message:
>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'dockerization'
tall-lock-23197
__init__.py
to dockerization
folder?rhythmic-lizard-91902
02/13/2023, 4:37 PM__init__.py
in the dockerization foldertall-lock-23197
workflows
is present in dockerization
, right? Can you add, say, parent_worfklows
folder in dockerization
and move your workflows
folder to parent_workflows
? The hierarchy has to be: dockerization
> parent_workflows
> workflows
. parent_workfows
and workflows
folders need to have __init__.py
files.rhythmic-lizard-91902
02/13/2023, 4:43 PM__init__.py
is needed on each folder or only in the workflows folder?tall-lock-23197
workflows
& parent_workflows
. Remove it in dockerization
.rhythmic-lizard-91902
02/13/2023, 4:43 PMtall-lock-23197
rhythmic-lizard-91902
02/13/2023, 5:30 PMecho "pushing image"
docker push $<http://AWS_ACCOUNT.dkr.ecr.us-east-1.amazonaws.com/$IMAGE_TAG|AWS_ACCOUNT.dkr.ecr.us-east-1.amazonaws.com/$IMAGE_TAG>
echo "flyte package"
pyflyte --pkgs parent_workflows.workflows package --image $<http://AWS_ACCOUNT.dkr.ecr.us-east-1.amazonaws.com/$IMAGE_TAG|AWS_ACCOUNT.dkr.ecr.us-east-1.amazonaws.com/$IMAGE_TAG> -f
echo "flyte register"
flytectl -c ~/.flyte/config.yaml register files flyte-package.tgz -p flyteexamples -d production --version 1.6 --archive
echo "run"
pyflyte -c ~/.flyte/config.yaml run --remote --image $<http://AWS_ACCOUNT.dkr.ecr.us-east-1.amazonaws.com/$IMAGE_TAG|AWS_ACCOUNT.dkr.ecr.us-east-1.amazonaws.com/$IMAGE_TAG> parent_workflows.workflows.example.py my_wf
Also, this is the full error:
[1/1] currentAttempt done. Last Error: USER::Pod failed. No message received from kubernetes.
[az89hdtf99phv6744gn6-n0-0] terminated with exit code (1). Reason [Error]. Message:
/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/opt/env/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/opt/env/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/env/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/opt/env/lib/python3.9/site-packages/flytekit/bin/entrypoint.py", line 476, in execute_task_cmd
_execute_task(
File "/opt/env/lib/python3.9/site-packages/flytekit/exceptions/scopes.py", line 160, in system_entry_point
return wrapped(*args, **kwargs)
File "/opt/env/lib/python3.9/site-packages/flytekit/bin/entrypoint.py", line 348, in _execute_task
_task_def = resolver_obj.load_task(loader_args=resolver_args)
File "/opt/env/lib/python3.9/site-packages/flytekit/core/python_auto_container.py", line 280, in load_task
task_module = importlib.import_module(task_module)
File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'parent_workflows'
.
rhythmic-lizard-91902
02/13/2023, 5:38 PMdockerization
├── dockerization/LICENSE
├── dockerization/README.md
├── dockerization/flyte.config
├── dockerization/flytekit.config
└── dockerization/parent_workflows
├── dockerization/parent_workflows/__init__.py
└── dockerization/parent_workflows/workflows
├── dockerization/parent_workflows/workflows/__init__.py
└── dockerization/parent_workflows/workflows/example.py
tall-lock-23197
pyflyte run --remote parent_workflows.workflows.example.py my_wf --a 1 --b "hello"
command. You needn't package and register separately if you're using pyflyte run
cause it packages and registers the tasks and workflows.
── dockerization
│ └── parent_workflows
│ ├── init.py
│ └── workflows
│ ├── init.py
│ └── example.pyrhythmic-lizard-91902
02/14/2023, 11:49 AMtall-lock-23197
pyflyte run
without running the other two commands?tall-lock-23197
pyflyte run
will not use the code that's present in the image.tall-lock-23197
pyflyte run
?rhythmic-lizard-91902
02/14/2023, 4:39 PMModuleNotFoundError: No module named 'html2text'
rhythmic-lizard-91902
02/14/2023, 4:40 PMtall-lock-23197
rhythmic-lizard-91902
02/14/2023, 4:42 PMpyflyte run --remote parent_workflows.workflows.example.py my_wf --a 1 --b "hello"
with html2text and without a container should fail, right?tall-lock-23197
rhythmic-lizard-91902
02/14/2023, 4:50 PMpyflyte run --remote --image container_image
doesn’t execute the container codetall-lock-23197
rhythmic-lizard-91902
02/16/2023, 12:29 PM