Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip3 not upgrading a dependency #6457

Closed
mitar opened this issue May 1, 2019 · 4 comments
Closed

pip3 not upgrading a dependency #6457

mitar opened this issue May 1, 2019 · 4 comments

Comments

@mitar
Copy link

mitar commented May 1, 2019

Environment

  • pip version: 19.1
  • Python version: 3.6.7
  • OS: Linux

Description

It looks like some reports in comments in #2837 are true. Even if setup.py contains a newer version, pip does not seem to upgrade a dependency when installing through git commit.

How to Reproduce

Run:

$ docker run --rm -t -i registry.gitlab.com/datadrivendiscovery/images/base:ubuntu-bionic-python36 bash
$ pip3 install pip==19.1
$ pip3 install cython
$ pip3 install --upgrade --upgrade-strategy only-if-needed --no-use-pep517 --editable git+https://github.com/NewKnowledge/TimeSeries-D3M-Wrappers.git@7344aab8ef611492c4a72e3f015cae093dceee95#egg=TimeSeriesD3MWrappers
$ pip3 install --upgrade --upgrade-strategy only-if-needed --no-use-pep517 --editable git+https://github.com/NewKnowledge/TimeSeries-D3M-Wrappers.git@2faacbdb11ab46d63f54466e61d68a5c049ec6ed#egg=TimeSeriesD3MWrappers

Expected behavior

The first install command installs Sloth version 2.0.5 as a dependency. I would expect that the second install command installs Sloth version 2.0.6. But it does not.

(Note: it does not installs even if I use just --upgrade, without --upgrade-strategy only-if-needed.)

Output

root@71d663efdb8d:/# pip3 install pip==19.1
Collecting pip==19.1
  Downloading https://files.pythonhosted.org/packages/f9/fb/863012b13912709c13cf5cfdbfb304fa6c727659d6290438e1a88df9d848/pip-19.1-py2.py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 9.2MB/s 
Installing collected packages: pip
  Found existing installation: pip 19.0.3
    Uninstalling pip-19.0.3:
      Successfully uninstalled pip-19.0.3
Successfully installed pip-19.1
root@71d663efdb8d:/# pip3 install cython
Collecting cython
  Downloading https://files.pythonhosted.org/packages/b2/20/46a78072ecd4fda072c3791a257b03af99b64673671663067d18bc4935ec/Cython-0.29.7-cp36-cp36m-manylinux1_x86_64.whl (2.1MB)
     |████████████████████████████████| 2.1MB 7.3MB/s 
Installing collected packages: cython
Successfully installed cython-0.29.7
root@71d663efdb8d:/# pip3 install --upgrade --upgrade-strategy only-if-needed --no-use-pep517 --editable git+https://github.com/NewKnowledge/TimeSeries-D3M-Wrappers.git@7344aab8ef611492c4a72e3f015cae093dceee95#egg=TimeSeriesD3MWrappers
Obtaining TimeSeriesD3MWrappers from git+https://github.com/NewKnowledge/TimeSeries-D3M-Wrappers.git@7344aab8ef611492c4a72e3f015cae093dceee95#egg=TimeSeriesD3MWrappers
  Cloning https://github.com/NewKnowledge/TimeSeries-D3M-Wrappers.git (to revision 7344aab8ef611492c4a72e3f015cae093dceee95) to /src/timeseriesd3mwrappers
  Running command git clone -q https://github.com/NewKnowledge/TimeSeries-D3M-Wrappers.git /src/timeseriesd3mwrappers
  Running command git checkout -q 7344aab8ef611492c4a72e3f015cae093dceee95
  Installing build dependencies ... done
Collecting typing (from TimeSeriesD3MWrappers)
  Downloading https://files.pythonhosted.org/packages/4a/bd/eee1157fc2d8514970b345d69cb9975dcd1e42cd7e61146ed841f6e68309/typing-3.6.6-py3-none-any.whl
Collecting numpy==1.15.4 (from TimeSeriesD3MWrappers)
  Downloading https://files.pythonhosted.org/packages/ff/7f/9d804d2348471c67a7d8b5f84f9bc59fd1cefa148986f2b74552f8573555/numpy-1.15.4-cp36-cp36m-manylinux1_x86_64.whl (13.9MB)
     |████████████████████████████████| 13.9MB 10.6MB/s 
Collecting Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5 from git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5 (from TimeSeriesD3MWrappers)
  Cloning https://github.com/NewKnowledge/sloth (to revision 953594202da93c50ceaa90872e16b0bb6d6fa8d9) to /tmp/pip-install-nt4tulcb/Sloth
  Running command git clone -q https://github.com/NewKnowledge/sloth /tmp/pip-install-nt4tulcb/Sloth
  Running command git checkout -q 953594202da93c50ceaa90872e16b0bb6d6fa8d9
Collecting scikit-learn>=0.18.1 (from Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers)
  Downloading https://files.pythonhosted.org/packages/5e/82/c0de5839d613b82bddd088599ac0bbfbbbcbd8ca470680658352d2c435bd/scikit_learn-0.20.3-cp36-cp36m-manylinux1_x86_64.whl (5.4MB)
     |████████████████████████████████| 5.4MB 12.7MB/s 
Collecting fastdtw>=0.3.2 (from Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers)
  Downloading https://files.pythonhosted.org/packages/fa/ef/a4cf2d72518b5fccd30284ba4d431fdb6266f72e75702ff05fd7c00b0b63/fastdtw-0.3.2.tar.gz (118kB)
     |████████████████████████████████| 122kB 10.4MB/s 
Collecting pandas>=0.19.2 (from Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers)
  Downloading https://files.pythonhosted.org/packages/19/74/e50234bc82c553fecdbd566d8650801e3fe2d6d8c8d940638e3d8a7c5522/pandas-0.24.2-cp36-cp36m-manylinux1_x86_64.whl (10.1MB)
     |████████████████████████████████| 10.1MB 12.2MB/s 
Requirement already satisfied, skipping upgrade: scipy>=0.19.0 in /usr/local/lib/python3.6/dist-packages (from Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (1.2.1)
Collecting matplotlib>=2.2.2 (from Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers)
  Downloading https://files.pythonhosted.org/packages/e9/69/f5e05f578585ed9935247be3788b374f90701296a70c8871bcd6d21edb00/matplotlib-3.0.3-cp36-cp36m-manylinux1_x86_64.whl (13.0MB)
     |████████████████████████████████| 13.0MB 7.4MB/s 
Collecting statsmodels>=0.9.0 (from Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers)
  Downloading https://files.pythonhosted.org/packages/85/d1/69ee7e757f657e7f527cbf500ec2d295396e5bcec873cf4eb68962c41024/statsmodels-0.9.0-cp36-cp36m-manylinux1_x86_64.whl (7.4MB)
     |████████████████████████████████| 7.4MB 11.1MB/s 
Collecting pyramid-arima>=0.6.5 (from Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers)
  Downloading https://files.pythonhosted.org/packages/5c/84/57422f2a6ade3161c586545e38b518ba1b7ab30ee4a4acc29110c0aba2bc/pyramid_arima-0.9.0-cp36-cp36m-manylinux1_x86_64.whl (597kB)
     |████████████████████████████████| 604kB 13.2MB/s 
Requirement already satisfied, skipping upgrade: cython>=0.28.5 in /usr/local/lib/python3.6/dist-packages (from Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (0.29.7)
Collecting tslearn>=0.1.21 (from Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers)
  Downloading https://files.pythonhosted.org/packages/af/f9/7225f4b1e7ba482b10b544cecf50a0a92bfbbde4ec30fdce824a867ad9ab/tslearn-0.1.29.tar.gz (587kB)
     |████████████████████████████████| 593kB 11.6MB/s 
Collecting hdbscan==0.8.18 (from Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers)
  Downloading https://files.pythonhosted.org/packages/aa/30/97f3fc4f1f1fdb8f2c77aef720758ea3e8251c43bb092cb0d64bde76fb78/hdbscan-0.8.18.tar.gz (4.0MB)
     |████████████████████████████████| 4.0MB 8.1MB/s 
  Installing build dependencies ... done
Requirement already satisfied, skipping upgrade: Keras>=2.1.6 in /usr/local/lib/python3.6/dist-packages (from Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (2.2.4)
Requirement already satisfied, skipping upgrade: tensorflow-gpu<=1.12.0 in /usr/local/lib/python3.6/dist-packages (from Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (1.12.0)
Requirement already satisfied, skipping upgrade: pytz>=2011k in /usr/lib/python3/dist-packages (from pandas>=0.19.2->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (2018.3)
Collecting python-dateutil>=2.5.0 (from pandas>=0.19.2->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers)
  Downloading https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl (226kB)
     |████████████████████████████████| 235kB 10.7MB/s 
Collecting cycler>=0.10 (from matplotlib>=2.2.2->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers)
  Downloading https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl
Collecting kiwisolver>=1.0.1 (from matplotlib>=2.2.2->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers)
  Downloading https://files.pythonhosted.org/packages/f8/a1/5742b56282449b1c0968197f63eae486eca2c35dcd334bab75ad524e0de1/kiwisolver-1.1.0-cp36-cp36m-manylinux1_x86_64.whl (90kB)
     |████████████████████████████████| 92kB 23.9MB/s 
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib>=2.2.2->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers)
  Downloading https://files.pythonhosted.org/packages/dd/d9/3ec19e966301a6e25769976999bd7bbe552016f0d32b577dc9d63d2e0c49/pyparsing-2.4.0-py2.py3-none-any.whl (62kB)
     |████████████████████████████████| 71kB 9.1MB/s 
Collecting patsy (from statsmodels>=0.9.0->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers)
  Downloading https://files.pythonhosted.org/packages/ea/0c/5f61f1a3d4385d6bf83b83ea495068857ff8dfb89e74824c6e9eb63286d8/patsy-0.5.1-py2.py3-none-any.whl (231kB)
     |████████████████████████████████| 235kB 6.4MB/s 
Requirement already satisfied, skipping upgrade: keras-preprocessing>=1.0.5 in /usr/local/lib/python3.6/dist-packages (from Keras>=2.1.6->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (1.0.9)
Requirement already satisfied, skipping upgrade: h5py in /usr/local/lib/python3.6/dist-packages (from Keras>=2.1.6->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (2.9.0)
Requirement already satisfied, skipping upgrade: six>=1.9.0 in /usr/lib/python3/dist-packages (from Keras>=2.1.6->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (1.11.0)
Requirement already satisfied, skipping upgrade: pyyaml in /usr/local/lib/python3.6/dist-packages (from Keras>=2.1.6->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (5.1)
Requirement already satisfied, skipping upgrade: keras-applications>=1.0.6 in /usr/local/lib/python3.6/dist-packages (from Keras>=2.1.6->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (1.0.7)
Requirement already satisfied, skipping upgrade: astor>=0.6.0 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (0.7.1)
Requirement already satisfied, skipping upgrade: gast>=0.2.0 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (0.2.2)
Requirement already satisfied, skipping upgrade: absl-py>=0.1.6 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (0.7.1)
Requirement already satisfied, skipping upgrade: termcolor>=1.1.0 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (1.1.0)
Requirement already satisfied, skipping upgrade: wheel>=0.26 in /usr/lib/python3/dist-packages (from tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (0.30.0)
Requirement already satisfied, skipping upgrade: protobuf>=3.6.1 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (3.7.1)
Requirement already satisfied, skipping upgrade: tensorboard<1.13.0,>=1.12.0 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (1.12.2)
Requirement already satisfied, skipping upgrade: grpcio>=1.8.6 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (1.20.1)
Requirement already satisfied, skipping upgrade: setuptools in /usr/local/lib/python3.6/dist-packages (from kiwisolver>=1.0.1->matplotlib>=2.2.2->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (41.0.1)
Requirement already satisfied, skipping upgrade: werkzeug>=0.11.10 in /usr/local/lib/python3.6/dist-packages (from tensorboard<1.13.0,>=1.12.0->tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (0.15.2)
Requirement already satisfied, skipping upgrade: markdown>=2.6.8 in /usr/local/lib/python3.6/dist-packages (from tensorboard<1.13.0,>=1.12.0->tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@953594202da93c50ceaa90872e16b0bb6d6fa8d9#egg=Sloth-2.0.5->TimeSeriesD3MWrappers) (3.1)
Building wheels for collected packages: Sloth, fastdtw, tslearn, hdbscan
  Building wheel for Sloth (setup.py) ... done
  Stored in directory: /tmp/pip-ephem-wheel-cache-60ai_jj4/wheels/c2/63/de/f93b2b0ec09b0eb8fd07227c7d2b3f880e2592e777d93e3d95
  Building wheel for fastdtw (setup.py) ... done
  Stored in directory: /root/.cache/pip/wheels/61/62/46/5a9cc316aa50cc4fb36fd4bf14e7dd206642db3247d7746c23
  Building wheel for tslearn (setup.py) ... done
  Stored in directory: /root/.cache/pip/wheels/af/99/f8/2977c3eb9a525f9afe7978fdda948700c1e955225ebdb1f213
  Building wheel for hdbscan (setup.py) ... done
  Stored in directory: /root/.cache/pip/wheels/80/6c/bb/80343f12bfe907f9475ae274a59677bec4525104455a6c2554
Successfully built Sloth fastdtw tslearn hdbscan
Installing collected packages: typing, numpy, scikit-learn, fastdtw, python-dateutil, pandas, cycler, kiwisolver, pyparsing, matplotlib, patsy, statsmodels, pyramid-arima, tslearn, hdbscan, Sloth, TimeSeriesD3MWrappers
  Found existing installation: numpy 1.16.3
    Uninstalling numpy-1.16.3:
      Successfully uninstalled numpy-1.16.3
  Running setup.py develop for TimeSeriesD3MWrappers
Successfully installed Sloth-2.0.5 TimeSeriesD3MWrappers cycler-0.10.0 fastdtw-0.3.2 hdbscan-0.8.18 kiwisolver-1.1.0 matplotlib-3.0.3 numpy-1.15.4 pandas-0.24.2 patsy-0.5.1 pyparsing-2.4.0 pyramid-arima-0.9.0 python-dateutil-2.8.0 scikit-learn-0.20.3 statsmodels-0.9.0 tslearn-0.1.29 typing-3.6.6
root@71d663efdb8d:/# pip3 install --upgrade --upgrade-strategy only-if-needed --no-use-pep517 --editable git+https://github.com/NewKnowledge/TimeSeries-D3M-Wrappers.git@2faacbdb11ab46d63f54466e61d68a5c049ec6ed#egg=TimeSeriesD3MWrappers
Obtaining TimeSeriesD3MWrappers from git+https://github.com/NewKnowledge/TimeSeries-D3M-Wrappers.git@2faacbdb11ab46d63f54466e61d68a5c049ec6ed#egg=TimeSeriesD3MWrappers
  Updating /src/timeseriesd3mwrappers clone (to revision 2faacbdb11ab46d63f54466e61d68a5c049ec6ed)
  Running command git fetch -q --tags
  Running command git reset --hard -q 2faacbdb11ab46d63f54466e61d68a5c049ec6ed
Requirement already satisfied, skipping upgrade: typing in /usr/local/lib/python3.6/dist-packages (from TimeSeriesD3MWrappers) (3.6.6)
Requirement already satisfied, skipping upgrade: numpy==1.15.4 in /usr/local/lib/python3.6/dist-packages (from TimeSeriesD3MWrappers) (1.15.4)
Requirement already satisfied, skipping upgrade: Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6 from git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6 in /usr/local/lib/python3.6/dist-packages (from TimeSeriesD3MWrappers) (2.0.5)
Requirement already satisfied, skipping upgrade: scikit-learn>=0.18.1 in /usr/local/lib/python3.6/dist-packages (from Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (0.20.3)
Requirement already satisfied, skipping upgrade: fastdtw>=0.3.2 in /usr/local/lib/python3.6/dist-packages (from Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (0.3.2)
Requirement already satisfied, skipping upgrade: scipy>=0.19.0 in /usr/local/lib/python3.6/dist-packages (from Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (1.2.1)
Requirement already satisfied, skipping upgrade: pandas>=0.19.2 in /usr/local/lib/python3.6/dist-packages (from Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (0.24.2)
Requirement already satisfied, skipping upgrade: tslearn>=0.1.21 in /usr/local/lib/python3.6/dist-packages (from Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (0.1.29)
Requirement already satisfied, skipping upgrade: hdbscan==0.8.18 in /usr/local/lib/python3.6/dist-packages (from Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (0.8.18)
Requirement already satisfied, skipping upgrade: matplotlib>=2.2.2 in /usr/local/lib/python3.6/dist-packages (from Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (3.0.3)
Requirement already satisfied, skipping upgrade: pyramid-arima>=0.6.5 in /usr/local/lib/python3.6/dist-packages (from Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (0.9.0)
Requirement already satisfied, skipping upgrade: Keras>=2.1.6 in /usr/local/lib/python3.6/dist-packages (from Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (2.2.4)
Requirement already satisfied, skipping upgrade: statsmodels>=0.9.0 in /usr/local/lib/python3.6/dist-packages (from Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (0.9.0)
Requirement already satisfied, skipping upgrade: tensorflow-gpu<=1.12.0 in /usr/local/lib/python3.6/dist-packages (from Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (1.12.0)
Requirement already satisfied, skipping upgrade: cython>=0.28.5 in /usr/local/lib/python3.6/dist-packages (from Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (0.29.7)
Requirement already satisfied, skipping upgrade: pytz>=2011k in /usr/lib/python3/dist-packages (from pandas>=0.19.2->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (2018.3)
Requirement already satisfied, skipping upgrade: python-dateutil>=2.5.0 in /usr/local/lib/python3.6/dist-packages (from pandas>=0.19.2->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (2.8.0)
Requirement already satisfied, skipping upgrade: kiwisolver>=1.0.1 in /usr/local/lib/python3.6/dist-packages (from matplotlib>=2.2.2->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (1.1.0)
Requirement already satisfied, skipping upgrade: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /usr/local/lib/python3.6/dist-packages (from matplotlib>=2.2.2->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (2.4.0)
Requirement already satisfied, skipping upgrade: cycler>=0.10 in /usr/local/lib/python3.6/dist-packages (from matplotlib>=2.2.2->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (0.10.0)
Requirement already satisfied, skipping upgrade: keras-applications>=1.0.6 in /usr/local/lib/python3.6/dist-packages (from Keras>=2.1.6->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (1.0.7)
Requirement already satisfied, skipping upgrade: six>=1.9.0 in /usr/lib/python3/dist-packages (from Keras>=2.1.6->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (1.11.0)
Requirement already satisfied, skipping upgrade: pyyaml in /usr/local/lib/python3.6/dist-packages (from Keras>=2.1.6->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (5.1)
Requirement already satisfied, skipping upgrade: h5py in /usr/local/lib/python3.6/dist-packages (from Keras>=2.1.6->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (2.9.0)
Requirement already satisfied, skipping upgrade: keras-preprocessing>=1.0.5 in /usr/local/lib/python3.6/dist-packages (from Keras>=2.1.6->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (1.0.9)
Requirement already satisfied, skipping upgrade: patsy in /usr/local/lib/python3.6/dist-packages (from statsmodels>=0.9.0->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (0.5.1)
Requirement already satisfied, skipping upgrade: wheel>=0.26 in /usr/lib/python3/dist-packages (from tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (0.30.0)
Requirement already satisfied, skipping upgrade: gast>=0.2.0 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (0.2.2)
Requirement already satisfied, skipping upgrade: termcolor>=1.1.0 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (1.1.0)
Requirement already satisfied, skipping upgrade: protobuf>=3.6.1 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (3.7.1)
Requirement already satisfied, skipping upgrade: tensorboard<1.13.0,>=1.12.0 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (1.12.2)
Requirement already satisfied, skipping upgrade: astor>=0.6.0 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (0.7.1)
Requirement already satisfied, skipping upgrade: grpcio>=1.8.6 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (1.20.1)
Requirement already satisfied, skipping upgrade: absl-py>=0.1.6 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (0.7.1)
Requirement already satisfied, skipping upgrade: setuptools in /usr/local/lib/python3.6/dist-packages (from kiwisolver>=1.0.1->matplotlib>=2.2.2->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (41.0.1)
Requirement already satisfied, skipping upgrade: markdown>=2.6.8 in /usr/local/lib/python3.6/dist-packages (from tensorboard<1.13.0,>=1.12.0->tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (3.1)
Requirement already satisfied, skipping upgrade: werkzeug>=0.11.10 in /usr/local/lib/python3.6/dist-packages (from tensorboard<1.13.0,>=1.12.0->tensorflow-gpu<=1.12.0->Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6->TimeSeriesD3MWrappers) (0.15.2)
Installing collected packages: TimeSeriesD3MWrappers
  Found existing installation: TimeSeriesD3MWrappers 1.0.3
    Can't uninstall 'TimeSeriesD3MWrappers'. No files were found to uninstall.
  Running setup.py develop for TimeSeriesD3MWrappers
Successfully installed TimeSeriesD3MWrappers
root@71d663efdb8d:/# pip3 check
No broken requirements found.

The problematic line is:

Requirement already satisfied, skipping upgrade: Sloth@ git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6 from git+https://github.com/NewKnowledge/sloth@62b82aeaf133b66aa0fec685f50e5be69f4c6935#egg=Sloth-2.0.6 in /usr/local/lib/python3.6/dist-packages (from TimeSeriesD3MWrappers) (2.0.5)

Pip does notice the old version (2.0.5) but it does not do anything, even if setup.py to which git is pointing has version 2.0.6.

@pradyunsg pradyunsg added the S: needs triage Issues/PRs that need to be triaged label May 27, 2019
@pradyunsg
Copy link
Member

pradyunsg commented May 28, 2019

Does passing the eager strategy work?

(sorry for the terseness, heading to bed)

@mitar
Copy link
Author

mitar commented Jun 18, 2019

No, it does not matter.

@delijati
Copy link

@pradyunsg it works for me with --upgrade-strategy eager but holy molly this should be the default

heilaaks added a commit to heilaaks/snippy-tldr that referenced this issue Mar 12, 2020
The Python 3.4 installation was failing locally with error
related to 'BadZipfile: File is not a zip file'. The reason
for this is unknown. This should work because the Snippy
is able to install with the Python 3.4 and most of the Python
modules are the same.

This was not failing in Travis CI with Python 3.4.

This workaround is now forced from the Makefile to allow
exactly the same installation command to work with all
the Python versions. [1]

Add Makefile parameter to define PIP proxy, cache and
upgrade parameters.

The --upgrade-strategy option is now set by default to the
'eager'. There is a problem with the Snippy being installed
from the Git. If there is already for example an version
'0.10.0' from Snippy, the --upgrade option does not enforce
upgrade to the version from the Git master branch. [2] [3]

[1] https://stackoverflow.com/a/41916324
[2] https://pip.pypa.io/en/stable/reference/pip_install/
[3] pypa/pip#6457 (comment)

Signed-off-by: Heikki Laaksonen <laaksonen.heikki.j@gmail.com>
@uranusjr
Copy link
Member

Merging this into #5780 (comment)

eager should not be the default; it is a workaround for this use case and not universally desired.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 2021
@pradyunsg pradyunsg removed the S: needs triage Issues/PRs that need to be triaged label Mar 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants