quiet-grass-7164
03/24/2023, 4:14 PMFROM python:3.8-buster
WORKDIR /root
ENV VENV /opt/venv
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ENV PYTHONPATH /root
ARG tag
ARG wandb_api_key
ARG wandb_username
ENV FLYTE_INTERNAL_IMAGE $tag
ENV WANDB_API_KEY $wandb_api_key
ENV WANDB_USERNAME $wandb_username
# Install the AWS cli separately to prevent issues with boto being written over
RUN pip3 install awscli
RUN apt-get update && apt-get install -y curl
ENV VENV /opt/venv
# Virtual environment
RUN python3 -m venv ${VENV}
ENV PATH="${VENV}/bin:$PATH"
# Install Python dependencies
COPY requirements.txt /root/.
RUN pip install -r /root/requirements.txt
# Copy the actual code
COPY src/ /root/src/
[1/1] currentAttempt done. Last Error: USER::Pod failed. No message received from kubernetes.
[ab8dm4nttv49wgvn59kg-n0-0] terminated with exit code (1). Reason [Error]. Message:
rtlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'site-packages.flytekit'
Traceback (most recent call last):
File "/opt/venv/bin/pyflyte-fast-execute", line 8, in <module>
sys.exit(fast_execute_task_cmd())
File "/opt/venv/lib/python3.8/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/opt/venv/lib/python3.8/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/opt/venv/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/venv/lib/python3.8/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/opt/venv/lib/python3.8/site-packages/flytekit/bin/entrypoint.py", line 513, in fast_execute_task_cmd
subprocess.run(cmd, check=True)
File "/usr/local/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['pyflyte-execute', '--inputs', '<s3://senn-ai-mlops-flyte/metadata/propeller/flytesnacks-development-ab8dm4nttv49wgvn59kg/n0/data/inputs.pb>', '--output-prefix', '<s3://senn-ai-mlops-flyte/metadata/propeller/flytesnacks-development-ab8dm4nttv49wgvn59kg/n0/data/0>', '--raw-output-data-prefix', '<s3://senn-ai-mlops-flyte/data/sk/ab8dm4nttv49wgvn59kg-n0-0>', '--checkpoint-path', '<s3://senn-ai-mlops-flyte/data/sk/ab8dm4nttv49wgvn59kg-n0-0/_flytecheckpoints>', '--prev-checkpoint', '""', '--dynamic-addl-distro', '<s3://senn-ai-mlops-flyte/mo/flytesnacks/development/NRI2T5OSZMCFXKR4CUNLWO7MSM======/fastab502ef8d4ae75b6b5497a94633e8642.tar.gz>', '--dynamic-dest-dir', '/root', '--resolver', 'site-packages.flytekit.core.python_auto_container.default_task_resolver', '--', 'task-module', 'src.workflows.hello_world', 'task-name', 'say_hello']' returned non-zero exit status 1.
average-finland-92144
03/24/2023, 4:15 PMquiet-grass-7164
03/24/2023, 4:16 PMquiet-grass-7164
03/24/2023, 4:20 PMflytekit==1.4.2
pandas
scikit-learn
flytekitplugins-whylogs
whylogs[s3]
whylogs[mlflow]
whylogs[whylabs]
wandb
quiet-grass-7164
03/24/2023, 4:30 PMquiet-grass-7164
03/24/2023, 5:54 PMaverage-finland-92144
03/24/2023, 6:49 PMbroad-monitor-993
03/24/2023, 7:26 PMsite-packages.flytekit
is not a valid module. What commands are you invoking to run/package/register the workflow on the cluster?quiet-grass-7164
03/24/2023, 7:39 PMquiet-grass-7164
03/24/2023, 9:34 PMtall-lock-23197
quiet-grass-7164
03/28/2023, 5:31 PMbroad-monitor-993
03/28/2023, 7:25 PMsrc
directory?quiet-grass-7164
03/28/2023, 9:37 PMtall-lock-23197
pyflyte register
. Moreover, can you remove __init__.py
in you src
directory? I also recommend you to start afresh by creating a simple workflow, adding to a directory and registering the same. That should help you find the source of the error.quiet-grass-7164
03/29/2023, 4:05 PMlinux/amd64
DOCKER_DEFAULT_PLATFORM=linux/amd64`. You can try the image I built docker.io/lehyperion/hello-world-flytekit:0.1.0.
FROM python:3.8.16-slim-buster
WORKDIR /root
ENV VENV /opt/venv
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ENV PYTHONPATH /root
RUN apt-get update && apt-get install -y build-essential
# Install the AWS cli separately to prevent issues with boto being written over
RUN pip3 install awscli
ENV VENV /opt/venv
# Virtual environment
RUN python3 -m venv ${VENV}
ENV PATH="${VENV}/bin:$PATH"
# Install Python dependencies
COPY ./requirements.txt /root
RUN pip install -r /root/requirements.txt
# Copy the actual code
COPY . /root/
# This tag is supplied by the build script and will be used to determine the version
# when registering tasks, workflows, and launch plans
ARG tag
ENV FLYTE_INTERNAL_IMAGE $tag
quiet-grass-7164
03/29/2023, 4:07 PMflytekit==1.4.2
pandas
scikit-learn
tall-lock-23197
tall-lock-23197
tall-lock-23197
quiet-grass-7164
03/30/2023, 7:27 AMtall-lock-23197