Do I have to have the lock file in the root? or it can be on the working dir?
Tried using a custom python version:
` FROM nvidia/cuda:11.7.0-runtime-ubuntu22.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y
build-essential libssl-dev zlib1g-dev libbz2-dev
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev
xz-utils tk-dev libffi-dev liblzma-dev git
&& rm -rf /var/lib/apt/lists/*
RUN git clone ~/.pyenv
RUN /root/.pyenv/bin/pyenv install 3.10.6
ENV PATH="/root/.pyenv/versions/3.10.6/bin:$PATH"
RUN pip install poetry `Also, set the pip version to an empty string on the clearml.conf on the agent.
In this configuration poetry is not even called, don't now if it is because the poetry files are in the working dir not in the root of the repo or if it is something else.
I just called the script with:
task.set_base_docker(
docker_image="nvidia/cuda:11.7.0-runtime-ubuntu22.04",
# docker_arguments="--privileged -v /dev:/dev",
)
task.execute_remotely(queue_name="default")
Then in the console:Exception: Command '['/usr/bin/python3', '-m', 'poetry', 'config', '--local', 'virtualenvs.in-project', 'true']' returned non-zero exit status 1. Error: Failed configuring Poetry virtualenvs.in-project failed installing poetry requirements: Command '['/usr/bin/python3', '-m', 'poetry', 'config', '--local', 'virtualenvs.in-project', 'true']' returned non-zero exit status 1.
The agent tries to use poetry from python but it did not install it.
If I try to install poetry beforehand in the image, I get the dependency error above, if I install it with the installation script it makes no difference.
I edited the clearml.conf on the agent and set the manager to poetry, do I need to have poetry installed on the agent beforehand, considering that I am using docker?
Hi SkinnyPanda43 , did you set poetry as your package manager or do you simply want to install it as part of the environment?