fk128/sarcopenia-ai

midatasets python / Pandas compatibility error

Closed this issue · 1 comments

Hello

By doing

docker build -t sarcopeniaai -f ./Dockerfile . 

We get an error because Pandas version is not available for this python version, I think the project was made before the project https://github.com/fk128/midatasets.git specify a version for pandas.

To correct this I specify the last version of midatasets that didn't specify the Pandas version to use, by modifying the Dockerfile like so

FROM tensorflow/tensorflow:1.14.0-gpu-py3

# Quick fix for E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease' is no longer signed.
RUN rm /etc/apt/sources.list.d/cuda.list
RUN rm /etc/apt/sources.list.d/nvidia-ml.list

RUN apt-get update
RUN apt-get install -y libsm6 libxext6 libxrender-dev
RUN apt-get install -y git
RUN apt-get install -y wget

ADD ./requirements.txt /
RUN pip install -r /requirements.txt
# RUN git clone https://github.com/fk128/midatasets.git && pip install -e midatasets
RUN wget https://github.com/fk128/midatasets/archive/refs/tags/v0.20.0.tar.gz && tar -xzf v0.20.0.tar.gz && pip install -e midatasets-0.20.0/

ADD . /sarcopenia_ai

RUN pip3 install -e /sarcopenia_ai

WORKDIR /sarcopenia_ai

So I added the lines

  • RUN apt-get install -y wget
  • RUN wget https://github.com/fk128/midatasets/archive/refs/tags/v0.20.0.tar.gz && tar -xzf v0.20.0.tar.gz && pip install -e midatasets-0.20.0/

and remove (Comment to be specific ) the line

  • RUN git clone https://github.com/fk128/midatasets.git && pip install -e midatasets
fk128 commented

Thanks. I've pinned the version of midatasets to 0.20.0