curved-television-6568
04/07/2022, 9:34 AMpants_requirements()
target on the 2.11.0rc1 release.. 🧵curved-television-6568
04/07/2022, 9:34 AMProcessExecutionFailure: Process 'Generate lockfile for 3rdparty-deps' failed with exit code 1.
stdout:
stderr:
ERROR: Cannot install pantsbuild-pants==2.11.0rc0 and pantsbuild-pants==2.11.0rc1 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit <https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies>
pid 8619 -> /Users/x/.cache/pants/named_caches/pex_root/venvs/d73eb1958462afae0ef27208a6356f1bd127bac9/5227c1516c74d286d844078a1012386b2283a2d5/pex --disable-pip-version-check --no-python-version-warning --exists-action a --isolated -q --cache-dir /Users/x/.cache/pants/named_caches/pex_root --log /private/tmp/tmp9rzue6fg/pip.log download --dest /private/tmp/tmprv074hpp/Users.x..pyenv.versions.3.7.12.bin.python3.7 pantsbuild.pants.testutil<2.12,>=2.11.0rc0 pantsbuild.pants<2.12,>=2.11.0rc0 --index-url <https://pypi.org/simple/> --retries 5 --timeout 15 exited with 1 and STDERR:
The conflict is caused by:
pantsbuild-pants 2.11.0rc1 depends on pex==2.1.75
pantsbuild-pants 2.11.0rc0 depends on pex==2.1.72
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
curved-television-6568
04/07/2022, 9:36 AMpip
ought to have found a way out by using the rc1
release given the desired constraints of pantsbuild.pants<2.12,>=2.11.0rc0
… ?curved-television-6568
04/07/2022, 9:38 AMpants.toml
have pants_version="2.11.0rc1"
in this case… maybe that is a missing input to all this?curved-television-6568
04/07/2022, 10:09 AMcurved-television-6568
04/07/2022, 10:24 AMpants_version="2.11.0rc0"
in pants.toml
..curved-television-6568
04/07/2022, 10:38 AMpip
command seemed to run ok, but exits with 1.. ?
$ /Users/x/.cache/pants/named_caches/pex_root/venvs/b295182ab4c550677e62422803f6a58e63ee0a33/5227c1516c74d286d844078a1012386b2283a2d5/pex --disable-pip-version-check --no-python-version-warning --exists-action a --isolated -vvv --cache-dir /Users/x/.cache/pants/named_caches/pex_root --log ./pip.log download --dest ./pip-down 'pantsbuild.pants.testutil<2.12,>=2.11.0rc0' 'pantsbuild.pants<2.12,>=2.11.0rc0' --index-url <https://pypi.org/simple/> --retries 5 --timeout 15
Ends after a lot of log lines with:
[...]
Saved ./pip-down/six-1.16.0-py2.py3-none-any.whl
Saved ./pip-down/setuptools-57.5.0-py3-none-any.whl
Successfully downloaded pantsbuild.pants ansicolors fasteners humbug ijson packaging pex psutil python-lsp-jsonrpc setproctitle toml types-PyYAML types-setuptools types-toml typing-extensions pantsbuild.pants.testutil pyparsing pytest attrs importlib-metadata pluggy py PyYAML tomli ujson zipp iniconfig requests certifi charset-normalizer idna urllib3 six setuptools
Removed build tracker: '/private/var/folders/8j/c8jf_msj009947wyw82xvdkw0000gn/T/pip-req-tracker-6fl7gsxj'
curved-television-6568
04/07/2022, 10:42 AM__run.sh
script from the sandbox errors out with:
ERROR: Cannot install pantsbuild-pants==2.11.0rc0 and pantsbuild-pants==2.11.0rc1 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit <https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies>
pid 23011 -> /Users/x/.cache/pants/named_caches/pex_root/venvs/b295182ab4c550677e62422803f6a58e63ee0a33/5227c1516c74d286d844078a1012386b2283a2d5/pex --disable-pip-version-check --no-python-version-warning --exists-action a --isolated -vvv --cache-dir /Users/x/.cache/pants/named_caches/pex_root --log /private/var/folders/8j/c8jf_msj009947wyw82xvdkw0000gn/T/tmpxhku4u0l/pip.log download --dest /private/var/folders/8j/c8jf_msj009947wyw82xvdkw0000gn/T/tmpe9f2ex1e/Users.x..pyenv.versions.3.7.12.bin.python3.7 pantsbuild.pants.testutil<2.12,>=2.11.0rc0 pantsbuild.pants<2.12,>=2.11.0rc0 --index-url <https://pypi.org/simple/> --retries 5 --timeout 15 exited with 1 and STDERR:
The conflict is caused by:
pantsbuild-pants 2.11.0rc1 depends on pex==2.1.75
pantsbuild-pants 2.11.0rc0 depends on pex==2.1.72
which has the pip command I attempted to run directly, but it didn’t complain about conflicts then, so I must be missing some pieces here..curved-television-6568
04/07/2022, 10:52 AMERROR: Could not find a version that satisfies the requirement pex==2.1.72
ERROR: No matching distribution found for pex==2.1.72
curved-television-6568
04/07/2022, 10:52 AMpex==2.1.72
just fine…curved-television-6568
04/07/2022, 11:00 AMERROR: Cannot install pantsbuild-pants==2.11.0rc1 and pex because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit <https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies>
pid 25913 -> /Users/x/.cache/pants/named_caches/pex_root/venvs/d73eb1958462afae0ef27208a6356f1bd127bac9/1f60713df5937a496dd6818c57bcdefa31df4883/pex --disable-pip-version-check --no-python-version-warning --exists-action a --isolated -q --cache-dir /Users/x/.cache/pants/named_caches/pex_root --log /private/tmp/tmpezlq1q3u/pip.log download --dest /private/tmp/tmpe4ushdeg/Users.x..pyenv.versions.3.8.11.bin.python3.8 pantsbuild.pants.testutil==2.11.0rc1 pantsbuild.pants==2.11.0rc1 pex --index-url <https://pypi.org/simple/> --retries 5 --timeout 15 exited with 1 and STDERR:
The conflict is caused by:
The user requested pex
pantsbuild-pants 2.11.0rc1 depends on pex==2.1.75
Here, I’ve uninstalled py3.7, just to make sure it wasn’t related to the python version. And I’ve moved away from pants_requirements
and instead added them to my requirements.txt
file, which only has these lines in it, for an otherwise bare project:
pantsbuild.pants==2.11.0rc1
pantsbuild.pants.testutil==2.11.0rc1
pex
curved-television-6568
04/07/2022, 11:16 AM">=3.8,<3.9"
) solved it. Probably for other reasons, but I’ve no clue as to why… 😉enough-analyst-54434
04/07/2022, 1:11 PMcurved-television-6568
04/07/2022, 1:12 PMcurved-television-6568
04/07/2022, 1:12 PMbitter-ability-32190
04/07/2022, 1:13 PMcurved-television-6568
04/07/2022, 1:13 PMenough-analyst-54434
04/07/2022, 1:13 PMenough-analyst-54434
04/07/2022, 3:38 PM/Users/
) - are you m1?enough-analyst-54434
04/07/2022, 3:42 PMpex --python python3.7 "pantsbuild.pants.testutil<2.12,>=2.11.0rc0" "pantsbuild.pants<2.12,>=2.11.0rc0" --resolver-version pip-2020-resolver -o kaos.pex
That works for me and selects:
$ pex-tools ./kaos.legacy.pex info | jq -r '.distributions | keys[]' | grep -E "pex|pantsbuild"
pantsbuild.pants-2.11.0rc1-cp37-cp37m-manylinux2014_x86_64.whl
pantsbuild.pants.testutil-2.11.0rc1-py37.py38.py39-none-any.whl
pex-2.1.75-py2.py3-none-any.whl
enough-analyst-54434
04/07/2022, 4:06 PM__run.sh
script still available from:
while theThat would be interesting to see along with knowing which Process it is associated with if you have the relevant output log lines that reveal that.script from the sandbox errors out with:__run.sh
enough-analyst-54434
04/07/2022, 4:07 PMenough-analyst-54434
04/07/2022, 4:13 PMpex3 lock create "pantsbuild.pants.testutil<2.12,>=2.11.0rc0" "pantsbuild.pants<2.12,>=2.11.0rc0" --resolver-version pip-2020-resolver -o lock.json --indent 2 --style universal
That works for me still, but I may have enough to go on to gedanken this...enough-analyst-54434
04/07/2022, 4:20 PMcurved-television-6568
04/07/2022, 5:50 PMcurved-television-6568
04/07/2022, 5:50 PMcurved-television-6568
04/07/2022, 5:52 PMenough-analyst-54434
04/07/2022, 5:54 PMcurved-television-6568
04/07/2022, 7:25 PMenough-analyst-54434
04/07/2022, 7:42 PMenough-analyst-54434
04/07/2022, 7:44 PMenough-analyst-54434
04/07/2022, 7:56 PMenough-analyst-54434
04/07/2022, 7:56 PMenough-analyst-54434
04/07/2022, 7:56 PM>=3.8,<3.10
and it works absolutely fine.curved-television-6568
04/08/2022, 6:35 AMcurved-television-6568
04/08/2022, 6:38 AMRequires-Python: >=2.7,<3.11,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
So, it’s all very obvious “in my face” kind of, once I’ve managed to connect the dots. The error message I got however, doesn’t really help with that, and more so when the pants version was not pinned down, the error message was even more confusing.curved-television-6568
04/08/2022, 6:41 AMenough-analyst-54434
04/08/2022, 7:03 AMenough-analyst-54434
04/08/2022, 7:07 AMenough-analyst-54434
04/08/2022, 7:10 AMenough-analyst-54434
04/08/2022, 7:13 AMcurved-television-6568
04/08/2022, 7:13 AMRequires-Python: …, <3.8
in it?curved-television-6568
04/08/2022, 7:14 AMRequires-Python
in it’s METADATA then?enough-analyst-54434
04/08/2022, 7:15 AMcurved-television-6568
04/08/2022, 7:15 AM>=3.8,<3.11
too…enough-analyst-54434
04/08/2022, 7:15 AMcurved-television-6568
04/08/2022, 7:15 AMenough-analyst-54434
04/08/2022, 7:16 AMenough-analyst-54434
04/08/2022, 7:17 AMcurved-television-6568
04/08/2022, 7:17 AM<3.11
as pex is ok with 3.10, and pants doesn’t have any constraints.enough-analyst-54434
04/08/2022, 7:17 AMcurved-television-6568
04/08/2022, 7:17 AMenough-analyst-54434
04/08/2022, 7:18 AMcurved-television-6568
04/08/2022, 7:18 AMenough-analyst-54434
04/08/2022, 7:18 AMcurved-television-6568
04/08/2022, 7:19 AMRequires-Python
to the pants dist METADATA solve this?enough-analyst-54434
04/08/2022, 7:20 AMcurved-television-6568
04/08/2022, 7:21 AMenough-analyst-54434
04/08/2022, 7:21 AMcurved-television-6568
04/08/2022, 7:22 AMenough-analyst-54434
04/08/2022, 7:22 AMcurved-television-6568
04/08/2022, 7:23 AMenough-analyst-54434
04/08/2022, 7:23 AMcurved-television-6568
04/08/2022, 7:24 AMcurved-television-6568
04/08/2022, 7:24 AMcurved-television-6568
04/08/2022, 7:25 AMenough-analyst-54434
04/08/2022, 7:25 AMcurved-television-6568
04/08/2022, 7:26 AMcurved-television-6568
04/08/2022, 7:27 AMenough-analyst-54434
04/08/2022, 7:27 AMcurved-television-6568
04/08/2022, 7:28 AMcurved-television-6568
04/08/2022, 7:34 AMcurved-television-6568
04/08/2022, 7:34 AMenough-analyst-54434
04/08/2022, 7:41 AMenough-analyst-54434
04/08/2022, 7:42 AMcurved-television-6568
04/08/2022, 7:44 AMcurved-television-6568
04/08/2022, 7:48 AMenough-analyst-54434
04/08/2022, 7:48 AMcurved-television-6568
04/08/2022, 7:48 AMenough-analyst-54434
04/08/2022, 7:50 AM