green-agency-30976
10/27/2023, 3:35 PMpyflyte register
, to which the workflows are shipped, at runtime. I’m just trying the `pyflyte package`+`flytectl register` way now and back to this import issue again. Running the following from the docs
pyflyte --pkgs example package --image ghcr.io/flyteorg/flytekit:py3.9-latest
flytectl register files \
--project flytesnacks \
--domain development \
--archive flyte-package.tgz \
--version "0.1.6"
and triggering the workflow manually from the UI gives the following error:
[1/1] currentAttempt done. Last Error: USER:: │
│ /usr/local/lib/python3.9/site-packages/flytekit/bin/entrypoint.py:365 in │
│ _execute_task │
│ │
│ ❱ 365 │ │ _task_def = resolver_obj.load_task(loader_args=resolver_args) │
│ │
│ /usr/local/lib/python3.9/site-packages/flytekit/core/utils.py:295 in wrapper │
│ │
│ ❱ 295 │ │ │ │ return func(*args, **kwargs) │
│ │
│ /usr/local/lib/python3.9/site-packages/flytekit/core/python_auto_container.p │
│ y:235 in load_task │
│ │
│ ❱ 235 │ │ task_module = importlib.import_module(name=task_module) # typ │
│ │
│ /usr/local/lib/python3.9/importlib/__init__.py:127 in import_module │
│ │
│ ❱ 127 │ return _bootstrap._gcd_import(name[level:], package, level) │
│ in _gcd_import:1030 │
│ in _find_and_load:1007 │
│ in _find_and_load_unlocked:984 │
╰──────────────────────────────────────────────────────────────────────────────╯
ModuleNotFoundError: No module named 'example'
Any suggestion wrt how to debug it would be much apreciated 🙂 Running the demo stack on a mac m1 pro with Ventura if that’s of any relevancegreen-agency-30976
10/27/2023, 4:00 PMsparse-advantage-22780
10/27/2023, 4:09 PMsparse-advantage-22780
10/27/2023, 4:09 PM@task(container_image="localhost:30000/esmfold:latest", environment={"PYTHONPATH": "/root"}, requests=Resources(cpu="7", mem="28Gi"))
def run_esmfold(sequences: list[str]) -> list[FlyteFile]:
"""
This output should maybe be a FlyteFile instead?
"""
sparse-advantage-22780
10/27/2023, 4:11 PMgreen-agency-30976
10/27/2023, 4:31 PMtall-lock-23197
green-agency-30976
10/30/2023, 10:18 AM--fast
flag
pyflyte --pkgs example package --fast --image <http://ghcr.io/flyteorg/flytekit:py3.9-latest|ghcr.io/flyteorg/flytekit:py3.9-latest>