concordia icon indicating copy to clipboard operation
concordia copied to clipboard

An installation problem

Open alexunderch opened this issue 7 months ago • 2 comments

Whenever I try to install the library with pip or from source (having no other dependencies installed, plain docker container), the process is not successful because it can't resolve requirements for many packages, like numpy.

What to do?

alexunderch avatar Jun 06 '25 11:06 alexunderch

Have you solved it now?

What is the exact command you are using to install it? What is the error message you get?

jzleibo avatar Jun 09 '25 10:06 jzleibo

@jzleibo, yes, I solved it, but manually resolving dependencies (installed with --no-deps and fixed further).

Here is a minimal reproducible example:

ROM nvidia/cuda:12.1.0-runtime-ubuntu22.04

ARG PYTHON_VERSION=3.11
RUN apt-get update && \
  DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
  software-properties-common \
  build-essential \
  curl \
  ffmpeg \
  git \
  htop \
  vim \
  nano \
  rsync \
  tmux \
  wget \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/*
  RUN add-apt-repository ppa:deadsnakes/ppa
  RUN apt-get update && apt-get install -y -qq python${PYTHON_VERSION} \
      python${PYTHON_VERSION}-dev \
      python${PYTHON_VERSION}-distutils

# Set python aliases
RUN update-alternatives --install /usr/bin/python python /usr/bin/python${PYTHON_VERSION} 1
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python${PYTHON_VERSION} 1
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python get-pip.py
WORKDIR /app

#from pip
RUN pip install --upgrade pip && pip install gdm-concordia
#OR, from source
RUN git clone -b main https://github.com/google-deepmind/concordia
RUN pip install --editable concordia[dev]

Both installations stall while resolving the dependencies. Conflicting dependencies:

  • pyasn1 and -modules
  • google-cloud-aiplatform

alexunderch avatar Jun 10 '25 06:06 alexunderch