clean-city-64472
10/13/2021, 11:17 PM./pants
with version set to 2.8.0.dev4 . 2.8.0.dev3 works fine.
ERROR: Command errored out with exit status 1:
command: /Users/gordon/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.2H81Or/install/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/g4/8ps3_1d52wl2h7g4120w1yy40000gn/T/pip-install-tgl3794i/pystache_31f7891a3aad43f38c9c7f0b3c203d9d/setup.py'"'"'; __file__='"'"'/private/var/folders/g4/8ps3_1d52wl2h7g4120w1yy40000gn/T/pip-install-tgl3794i/pystache_31f7891a3aad43f38c9c7f0b3c203d9d/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/g4/8ps3_1d52wl2h7g4120w1yy40000gn/T/pip-pip-egg-info-5bh87jeb
cwd: /private/var/folders/g4/8ps3_1d52wl2h7g4120w1yy40000gn/T/pip-install-tgl3794i/pystache_31f7891a3aad43f38c9c7f0b3c203d9d/
Complete output (3 lines):
pystache: using: version '58.0.4' of <module 'setuptools' from '/Users/gordon/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.2H81Or/install/lib/python3.9/site-packages/setuptools/__init__.py'>
Warning: 'classifiers' should be a list, got type 'tuple'
error in pystache setup command: use_2to3 is invalid.
witty-crayon-22786
10/13/2021, 11:24 PMsetuptools
can float in virtualenvs …pants
script? this sounds a bit like something that might have been addressed there.clean-city-64472
10/13/2021, 11:28 PMwitty-crayon-22786
10/13/2021, 11:28 PMclean-city-64472
10/13/2021, 11:29 PMpants_version
to dev3 and rerun the exact same command and it all workswitty-crayon-22786
10/13/2021, 11:29 PM~/.cache/pants/setup
… if you move them aside, do you see the same error for both dev3 and dev4?clean-city-64472
10/13/2021, 11:32 PM# pants_version = 2.8.0.dev3
rm -rf ~/.cache/pants/setup
./pants
# Works
# pants_version = 2.8.0.dev4
rm -rf ~/.cache/pants/setup
./pants
# Error
pystache
doesn't show up in the output for dev3witty-crayon-22786
10/13/2021, 11:33 PMsetuptools
clean-city-64472
10/13/2021, 11:33 PMBootstrapping Pants using /usr/local/bin/python3.9
Creating the virtualenv PEX.
Downloading the Pex PEX.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 609 100 609 0 0 1371 0 --:--:-- --:--:-- --:--:-- 1371
100 3529k 100 3529k 0 0 3550k 0 --:--:-- --:--:-- --:--:-- 9794k
SHA256 fingerprint of <https://github.com/pantsbuild/pex/releases/download/v2.1.42/pex> verified.
Installing pantsbuild.pants==2.8.0.dev4 into a virtual environment at /Users/gordon/.cache/pants/setup/bootstrap-Darwin-x86_64/2.8.0.dev4_py39
created virtual environment CPython3.9.1.final.0-64 in 258ms
creator CPython3Posix(dest=/Users/gordon/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.7Os7rG/install, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/gordon/Library/Application Support/virtualenv)
added seed packages: pip==21.2.4, setuptools==58.0.4, wheel==0.37.0
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Requirement already satisfied: pip in /Users/gordon/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.7Os7rG/install/lib/python3.9/site-packages (21.2.4)
Collecting pip
Using cached pip-21.3-py3-none-any.whl (1.7 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 21.2.4
Uninstalling pip-21.2.4:
Successfully uninstalled pip-21.2.4
Successfully installed pip-21.3
Collecting pantsbuild.pants==2.8.0.dev4
Using cached pantsbuild.pants-2.8.0.dev4-cp39-cp39-macosx_10_15_x86_64.whl (9.4 MB)
Collecting pex==2.1.51
Using cached pex-2.1.51-py2.py3-none-any.whl (2.6 MB)
Collecting setproctitle==1.2.2
Using cached setproctitle-1.2.2-cp39-cp39-macosx_10_15_x86_64.whl
Collecting ijson==3.1.4
Using cached ijson-3.1.4-cp39-cp39-macosx_10_9_x86_64.whl (52 kB)
Collecting types-PyYAML==5.4.3
Using cached types_PyYAML-5.4.3-py2.py3-none-any.whl (12 kB)
Collecting types-setuptools==57.0.0
Using cached types_setuptools-57.0.0-py3-none-any.whl (4.8 kB)
Collecting psutil==5.8.0
Using cached psutil-5.8.0-cp39-cp39-macosx_10_9_x86_64.whl (236 kB)
Collecting types-toml==0.1.3
Using cached types_toml-0.1.3-py2.py3-none-any.whl (2.1 kB)
Collecting pystache==0.5.4
Using cached pystache-0.5.4.tar.gz (75 kB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/gordon/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.7Os7rG/install/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/g4/8ps3_1d52wl2h7g4120w1yy40000gn/T/pip-install-r83h41d7/pystache_afeb63400dc04fa6945ef47635299500/setup.py'"'"'; __file__='"'"'/private/var/folders/g4/8ps3_1d52wl2h7g4120w1yy40000gn/T/pip-install-r83h41d7/pystache_afeb63400dc04fa6945ef47635299500/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/g4/8ps3_1d52wl2h7g4120w1yy40000gn/T/pip-pip-egg-info-6stlpqok
cwd: /private/var/folders/g4/8ps3_1d52wl2h7g4120w1yy40000gn/T/pip-install-r83h41d7/pystache_afeb63400dc04fa6945ef47635299500/
Complete output (3 lines):
pystache: using: version '58.0.4' of <module 'setuptools' from '/Users/gordon/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.7Os7rG/install/lib/python3.9/site-packages/setuptools/__init__.py'>
Warning: 'classifiers' should be a list, got type 'tuple'
error in pystache setup command: use_2to3 is invalid.
----------------------------------------
WARNING: Discarding <https://files.pythonhosted.org/packages/d6/fd/eb8c212053addd941cc90baac307c00ac246ac3fce7166b86434c6eae963/pystache-0.5.4.tar.gz#sha256=f7bbc265fb957b4d6c7c042b336563179444ab313fb93a719759111eabd3b85a> (from <https://pypi.org/simple/pystache/>). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement pystache==0.5.4 (from pantsbuild-pants) (from versions: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.5.4)
ERROR: No matching distribution found for pystache==0.5.4
witty-crayon-22786
10/13/2021, 11:35 PMclean-city-64472
10/13/2021, 11:35 PMwitty-crayon-22786
10/13/2021, 11:36 PMpystache
not being compatible with some setuptools
versions (after 58
: and your machine has 58.0.4
in the initial venv)clean-city-64472
10/13/2021, 11:38 PMwitty-crayon-22786
10/13/2021, 11:39 PMpystache
fast-nail-55400
10/14/2021, 12:27 AMhundreds-father-404
10/14/2021, 12:28 AMwitty-crayon-22786
10/14/2021, 12:32 AMhundreds-father-404
10/14/2021, 12:33 AMfast-nail-55400
10/14/2021, 12:34 AMwitty-crayon-22786
10/14/2021, 12:36 AMfast-nail-55400
10/14/2021, 12:38 AMhundreds-father-404
10/14/2021, 12:39 AMfast-nail-55400
10/14/2021, 12:40 AMWhenever you add a new dep to Pants, it slows down Pants install times, which hits users’ CInot the case this time. I chose
pystache
because it was already in the venv …hundreds-father-404
10/14/2021, 12:41 AMfast-nail-55400
10/14/2021, 12:44 AMhundreds-father-404
10/14/2021, 12:46 AMwitty-crayon-22786
10/14/2021, 12:48 AMBUILD
file we would have seen it!"... but yea: this is a case for some sort of visibility enforcement probably. because if you don't see it in imports, I doubt you'd see it in the BUILD file. and transitive still gets you.clean-city-64472
10/14/2021, 12:49 AMhundreds-father-404
10/14/2021, 12:50 AMfast-nail-55400
10/14/2021, 3:00 AMcurved-television-6568
10/14/2021, 5:18 AMdockerfile-parser
.. just my +1 ;)