meokz / looking-to-listen

Deep neural network (DNN) for noise reduction, removal of background music, and speech separation
MIT License
169 stars 19 forks source link

docker-compose build fails due to python version mismatch #19

Open sblandford opened 3 years ago

sblandford commented 3 years ago

Running docker-compose build fails with the following final output.

Setting up python3 (3.5.1-3) ...
running python rtupdate hooks for python3.5...
running python post-rtupdate hooks for python3.5...
Setting up python3-dev (3.5.1-3) ...
Setting up dh-python (2.20151103ubuntu1.2) .
Processing triggers for libc-bin (2.23-0ubuntu11.3) ...
Processing triggers for systemd (229-4ubuntu21.31) ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1892k  100 1892k    0     0  16.6M      0 --:--:-- --:--:-- --:--:-- 16.8M
ERROR: This script does not work on Python 3.5 The minimum supported Python version is 3.6. Please use https://bootstrap.pypa.io/pip/3.5/get-pip.py instead.
ERROR: Service 'preprocess' failed to build: The command '/bin/sh -c apt-get update     && apt-get upgrade -y     && apt-get install -y --no-install-recommends      git     gcc     make     curl      wget     cmake     unzip     libsm6     libxext6     libpq-dev     libxrender1     libglib2.0-0     liblapack-dev     libxrender-dev     libopenblas-dev     build-essential     ca-certificates     python3-dev     && curl -kL https://bootstrap.pypa.io/get-pip.py | python3     && pip3 install --upgrade pip setuptools     && pip3 install scikit-build' returned a non-zero code: 1

Looks like Python 3.5 is being installed but Python >3.6 is required.

meokz commented 3 years ago

The error message says,

Please use https://bootstrap.pypa.io/pip/3.5/get-pip.py instead.

We need to modify the Dockerfile. We wait for pull request.