-
Notifications
You must be signed in to change notification settings - Fork 30
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
Unable to install pants using setup due to missing setuptools #14
Comments
Reproed. I'm going to spend 5 or 10 minutes trying to find a fix that covers both this case and pantsbuild/pants#3948 properly. |
OK - I think this is the right short-term solution, basically emulate the pex setuptools constraint in the
As you can see, you'll run into other issues using the bare openjdk image, but I assume you have a Dockerfile wrapping that you can use to add in libffi, etc as needed. |
Yup, I was installing |
OK - great. I have a PR up over in #15 |
Looks like that worked without issue. Ran % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3387 100 3387 0 0 33590 0 --:--:-- --:--:-- --:--:-- 33534
root@ec81a1dcb04d:/tmp# ./pants -V
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 122 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 281 100 281 0 0 1644 0 --:--:-- --:--:-- --:--:-- 1644
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1802k 100 1802k 0 0 5462k 0 --:--:-- --:--:-- --:--:-- 5462k
New python executable in /root/.cache/pants/setup/bootstrap-Linux-x86_64/pants.vcjguQ/install/bin/python2.7
Also creating executable in /root/.cache/pants/setup/bootstrap-Linux-x86_64/pants.vcjguQ/install/bin/python
Installing setuptools, pip, wheel...done.
Collecting setuptools<20.11,>=2.2
Downloading setuptools-20.10.1-py2.py3-none-any.whl (509kB)
100% |████████████████████████████████| 512kB 2.7MB/s
Collecting pantsbuild.pants
Downloading pantsbuild.pants-1.1.0.tar.gz (874kB)
100% |████████████████████████████████| 880kB 1.6MB/s
Collecting ansicolors==1.0.2 (from pantsbuild.pants)
Downloading ansicolors-1.0.2.tar.gz
Collecting setproctitle==1.1.10 (from pantsbuild.pants)
Downloading setproctitle-1.1.10.tar.gz
Collecting twitter.common.collections<0.4,>=0.3.1 (from pantsbuild.pants)
Downloading twitter.common.collections-0.3.9.tar.gz
Collecting six<2,>=1.9.0 (from pantsbuild.pants)
Downloading six-1.10.0-py2.py3-none-any.whl
Collecting pathspec==0.3.4 (from pantsbuild.pants)
Downloading pathspec-0.3.4.tar.gz
Collecting twitter.common.dirutil<0.4,>=0.3.1 (from pantsbuild.pants)
Downloading twitter.common.dirutil-0.3.9.tar.gz
Collecting requests<2.6,>=2.5.0 (from pantsbuild.pants)
Downloading requests-2.5.3-py2.py3-none-any.whl (468kB)
100% |████████████████████████████████| 471kB 2.7MB/s
Collecting pystache==0.5.3 (from pantsbuild.pants)
Downloading pystache-0.5.3.tar.gz (74kB)
100% |████████████████████████████████| 81kB 10.8MB/s
Collecting scandir==1.2 (from pantsbuild.pants)
Downloading scandir-1.2.zip
Collecting psutil==4.3.0 (from pantsbuild.pants)
Downloading psutil-4.3.0.tar.gz (316kB)
100% |████████████████████████████████| 317kB 4.6MB/s
Collecting pywatchman==1.3.0 (from pantsbuild.pants)
Downloading pywatchman-1.3.0.tar.gz
Collecting futures==3.0.5 (from pantsbuild.pants)
Downloading futures-3.0.5-py2-none-any.whl
Collecting pex==1.1.10 (from pantsbuild.pants)
Downloading pex-1.1.10-py2.py3-none-any.whl (103kB)
100% |████████████████████████████████| 112kB 11.7MB/s
Collecting Markdown==2.1.1 (from pantsbuild.pants)
Downloading Markdown-2.1.1.tar.gz (242kB)
100% |████████████████████████████████| 245kB 5.2MB/s
Collecting Pygments==1.4 (from pantsbuild.pants)
Downloading Pygments-1.4.tar.gz (3.5MB)
100% |████████████████████████████████| 3.5MB 419kB/s
Collecting docutils<0.13,>=0.12 (from pantsbuild.pants)
Downloading docutils-0.12.tar.gz (1.6MB)
100% |████████████████████████████████| 1.6MB 939kB/s
Collecting twitter.common.confluence<0.4,>=0.3.1 (from pantsbuild.pants)
Downloading twitter.common.confluence-0.3.9.tar.gz
Collecting fasteners==0.14.1 (from pantsbuild.pants)
Downloading fasteners-0.14.1-py2.py3-none-any.whl
Collecting coverage<3.8,>=3.7 (from pantsbuild.pants)
Downloading coverage-3.7.1.tar.gz (284kB)
100% |████████████████████████████████| 286kB 5.0MB/s
Collecting pytest<2.7,>=2.6 (from pantsbuild.pants)
Downloading pytest-2.6.4.tar.gz (512kB)
100% |████████████████████████████████| 522kB 2.8MB/s
Collecting pytest-cov<1.9,>=1.8 (from pantsbuild.pants)
Downloading pytest-cov-1.8.1.tar.gz
Collecting lmdb==0.89 (from pantsbuild.pants)
Downloading lmdb-0.89.tar.gz (149kB)
100% |████████████████████████████████| 153kB 7.8MB/s
Collecting twitter.common.lang==0.3.9 (from twitter.common.collections<0.4,>=0.3.1->pantsbuild.pants)
Downloading twitter.common.lang-0.3.9.tar.gz
Collecting twitter.common.log==0.3.9 (from twitter.common.confluence<0.4,>=0.3.1->pantsbuild.pants)
Downloading twitter.common.log-0.3.9.tar.gz
Collecting monotonic>=0.1 (from fasteners==0.14.1->pantsbuild.pants)
Downloading monotonic-1.2-py2.py3-none-any.whl
Collecting py>=1.4.25 (from pytest<2.7,>=2.6->pantsbuild.pants)
Downloading py-1.4.31-py2.py3-none-any.whl (81kB)
100% |████████████████████████████████| 92kB 11.8MB/s
Collecting cov-core>=1.14.0 (from pytest-cov<1.9,>=1.8->pantsbuild.pants)
Downloading cov-core-1.15.0.tar.gz
Collecting twitter.common.options==0.3.9 (from twitter.common.log==0.3.9->twitter.common.confluence<0.4,>=0.3.1->pantsbuild.pants)
Downloading twitter.common.options-0.3.9.tar.gz
Building wheels for collected packages: pantsbuild.pants, ansicolors, setproctitle, twitter.common.collections, pathspec, twitter.common.dirutil, pystache, scandir, psutil, pywatchman, Markdown, Pygments, docutils, twitter.common.confluence, coverage, pytest, pytest-cov, lmdb, twitter.common.lang, twitter.common.log, cov-core, twitter.common.options
Running setup.py bdist_wheel for pantsbuild.pants ... done
Stored in directory: /root/.cache/pip/wheels/68/e8/59/59025fec42943645e9984f64fcd1c1d9239e962a74ee6f69c8
Running setup.py bdist_wheel for ansicolors ... done
Stored in directory: /root/.cache/pip/wheels/3a/e9/7a/d539da1af316475bbfe0710f15249d194ccf96755293af318d
Running setup.py bdist_wheel for setproctitle ... done
Stored in directory: /root/.cache/pip/wheels/5b/e6/ac/0a9f3ba8962551d270aa651226c7ccb561b3c3f94063cb2f27
Running setup.py bdist_wheel for twitter.common.collections ... done
Stored in directory: /root/.cache/pip/wheels/61/fd/13/11963549082740e40a34ac6ec390236c8a301640179096c54e
Running setup.py bdist_wheel for pathspec ... done
Stored in directory: /root/.cache/pip/wheels/05/fc/50/1a7e8fc57b03fe4c1299f1cf04e89ac8606614769ca65a9f5f
Running setup.py bdist_wheel for twitter.common.dirutil ... done
Stored in directory: /root/.cache/pip/wheels/be/61/18/65ccb2b782eaa8d09d6b7d6fc07f3f94e90bdb1d475bc596df
Running setup.py bdist_wheel for pystache ... done
Stored in directory: /root/.cache/pip/wheels/9f/ad/66/0c671b563cdf76d88f1ab37a9db5e1804e2dd32cff0e70454e
Running setup.py bdist_wheel for scandir ... done
Stored in directory: /root/.cache/pip/wheels/05/30/da/2e612ab84a6efb0d3fc104856ecda6dd21d49793679b9b4357
Running setup.py bdist_wheel for psutil ... done
Stored in directory: /root/.cache/pip/wheels/e9/8b/35/535f07b31ebe94e56901cee48e1291e18989b272d79de437db
Running setup.py bdist_wheel for pywatchman ... done
Stored in directory: /root/.cache/pip/wheels/72/10/43/28655ed4bb6bd65cfee7d3e377b05c1218ba5ccfc52da4e1c4
Running setup.py bdist_wheel for Markdown ... done
Stored in directory: /root/.cache/pip/wheels/54/57/5d/d85a28804ddffc92283587426652d63ed9578cc01fbf6be957
Running setup.py bdist_wheel for Pygments ... done
Stored in directory: /root/.cache/pip/wheels/ea/0e/59/c878cc73abc93eff6f42d83a924b5901f4163c3c9e1e1ffc1f
Running setup.py bdist_wheel for docutils ... done
Stored in directory: /root/.cache/pip/wheels/db/de/bd/b99b1e12d321fbc950766c58894c6576b1a73ae3131b29a151
Running setup.py bdist_wheel for twitter.common.confluence ... done
Stored in directory: /root/.cache/pip/wheels/00/75/d2/24485b5caf2fd689b38b6d9d8dc743d820c633d0bce1807709
Running setup.py bdist_wheel for coverage ... done
Stored in directory: /root/.cache/pip/wheels/09/d5/14/fad8864342631171117f01b9b2473a07c053e5c1054d40e48c
Running setup.py bdist_wheel for pytest ... done
Stored in directory: /root/.cache/pip/wheels/ca/1c/fe/8b76e537572f91c810910e822cccb178ba3156e432e644ac89
Running setup.py bdist_wheel for pytest-cov ... done
Stored in directory: /root/.cache/pip/wheels/e5/94/08/eab43cda4e17e6ae729ed2cd832d7ca4e3ddca7fa6886ec2b8
Running setup.py bdist_wheel for lmdb ... done
Stored in directory: /root/.cache/pip/wheels/1d/36/58/b211fed809590977150eabf644580f7bc23569d1d782275fd6
Running setup.py bdist_wheel for twitter.common.lang ... done
Stored in directory: /root/.cache/pip/wheels/aa/c4/81/cd307a739a6430089e5d264ad33eabbaffacb1545bfb5784c4
Running setup.py bdist_wheel for twitter.common.log ... done
Stored in directory: /root/.cache/pip/wheels/80/e3/3a/297d8950fcbd822ab5a6a62175818fab38b668cc5a86dbd0b0
Running setup.py bdist_wheel for cov-core ... done
Stored in directory: /root/.cache/pip/wheels/86/e1/c2/9ff8cfe9773ce07003f2c2be096e169af4614c2f634671d49b
Running setup.py bdist_wheel for twitter.common.options ... done
Stored in directory: /root/.cache/pip/wheels/17/41/80/c4811d8c1c7ca7007e520c3399872fc340f45c3a26a6a23e6a
Successfully built pantsbuild.pants ansicolors setproctitle twitter.common.collections pathspec twitter.common.dirutil pystache scandir psutil pywatchman Markdown Pygments docutils twitter.common.confluence coverage pytest pytest-cov lmdb twitter.common.lang twitter.common.log cov-core twitter.common.options
Installing collected packages: setuptools, ansicolors, setproctitle, twitter.common.lang, twitter.common.collections, six, pathspec, twitter.common.dirutil, requests, pystache, scandir, psutil, pywatchman, futures, pex, Markdown, Pygments, docutils, twitter.common.options, twitter.common.log, twitter.common.confluence, monotonic, fasteners, coverage, py, pytest, cov-core, pytest-cov, lmdb, pantsbuild.pants
Found existing installation: setuptools 21.2.1
Uninstalling setuptools-21.2.1:
Successfully uninstalled setuptools-21.2.1
Successfully installed Markdown-2.1.1 Pygments-1.4 ansicolors-1.0.2 cov-core-1.15.0 coverage-3.7.1 docutils-0.12 fasteners-0.14.1 futures-3.0.5 lmdb-0.89 monotonic-1.2 pantsbuild.pants-1.1.0 pathspec-0.3.4 pex-1.1.10 psutil-4.3.0 py-1.4.31 pystache-0.5.3 pytest-2.6.4 pytest-cov-1.8.1 pywatchman-1.3.0 requests-2.5.3 scandir-1.2 setproctitle-1.1.10 setuptools-20.10.1 six-1.10.0 twitter.common.collections-0.3.9 twitter.common.confluence-0.3.9 twitter.common.dirutil-0.3.9 twitter.common.lang-0.3.9 twitter.common.log-0.3.9 twitter.common.options-0.3.9
1.1.0 |
Great - thanks for the test @derektamsen. I've also confirmed this solution works for the case in pantsbuild/pants#3948 (note the setuptools from the source python env is 28.6.1):
|
Ok @derektamsen - should be good to go now. |
When running
curl -L -O https://pantsbuild.github.io/setup/pants && chmod +x pants && touch pants.ini
I am seeing the following issue in the openjdk docker container based on Debian Jessie:I am able to resolve this issue by reversing the change made in commit a4b5f74 and installing setuptools in the venv
The text was updated successfully, but these errors were encountered: