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

Nathan Labbe

08/01/2023, 12:31 PM
Hello ! I have a question which is maybe really simple to answer (or not 😉 ) I have a workflow, which I register with
pyflyte register /path/to/worflow.py --image dockerimage:latest
The workflow got registered, but I have this error :
│ ❱ 235 │   │   task_module = importlib.import_module(name=task_module)  # typ │
│                                                                              │
│ /usr/lib64/python3.10/importlib/__init__.py:126 in import_module             │
│                                                                              │
│ ❱ 126 │   return _bootstrap._gcd_import(name[level:], package, level)        │
│ in _gcd_import:1050                                                          │
│ in _find_and_load:1027                                                       │
│ in _find_and_load_unlocked:992                                               │
│ in _call_with_frames_removed:241                                             │
│ in _gcd_import:1050                                                          │
│ in _find_and_load:1027                                                       │
│ in _find_and_load_unlocked:1004                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
ModuleNotFoundError: No module named 'workflows'
ps : 'workflow' is the folder name where my workflow.py is located. I am not managing to solve this error. Is anyone familiar with it ? 🙂 Thank you
j

Jay Ganbat

08/01/2023, 4:24 PM
does your workflows folder
__init__.py
in it? also
worflow.py
is just a typo in here right
22 Views