ambitious-airplane-25777
07/24/2024, 10:52 AMpyflyte register -p ${FLYTE_PROJECT} -d ${FLYTE_DOMAIN} ${PIPELINE_PATH} --version ${PIPELINE_VERSION} --image "${IMAGE_NAME}:${PIPELINE_VERSION}"
command.
Here’s the Dockerfile
FROM python:3.11-slim
WORKDIR /usr/app
RUN apt-get update && apt-get install -y --no-install-recommends \
curl gnupg build-essential cmake libssl-dev
RUN curl -sSL <https://install.python-poetry.org> | POETRY_VERSION=1.7.0 POETRY_HOME=$HOME/.poetry python \
&& ln -s $HOME/.poetry/bin/poetry /usr/bin/poetry \
# install dependencies on the python interpreter and not in the poetry virtualenv
&& poetry config virtualenvs.create false
COPY poetry.lock .
COPY pyproject.toml .
RUN poetry install --only main --no-interaction
When the workflow is run I get a ModuleNotFoundError: No module named 'example'
.
This is my folder structure
pipelines
│ └── src
│ ├── README.md
│ └── example
│ ├── README.md
│ ├── __init__.py
│ ├── info.json
│ ├── main.py
│ ├── poetry.lock
│ └── pyproject.toml
Pyflyte command is run from the pipelines's
parent directory, with pip all works good.
Thank youhigh-accountant-32689
07/24/2024, 11:47 PMtall-lock-23197
ambitious-airplane-25777
07/25/2024, 6:25 AMambitious-airplane-25777
07/26/2024, 8:35 AM