proud-dentist-22844
05/27/2022, 2:54 PM./pants
in a checkout of the pants repo, but I'm getting an ugly pex
file not found error. ๐งตpants.engine.internals.scheduler.ExecutionError: 1 Exception encountered:
Engine traceback:
in select
in pants.init.plugin_resolver.resolve_plugins
in pants.backend.python.util_rules.pex.create_venv_pex (pants_plugins.pex)
in pants.backend.python.util_rules.pex.build_pex (pants_plugins.pex)
in pants.engine.process.fallible_to_exec_result_or_raise
Traceback (most recent call last):
File "/home/cognifloyd/g/github/pantsbuild/pants.git/src/python/pants/engine/process.py", line 277, in fallible_to_exec_result_or_raise
process_cleanup=process_cleanup.val,
pants.engine.process.ProcessExecutionFailure: Process 'Resolving plugins: hdrhistogram, toolchain.pants.plugin==0.19.0' failed with exit code 1.
stdout:
stderr:
Failed to spawn a job for /home/cognifloyd/.cache/pants/pants_dev_deps/Linux.x86_64.Intel(R).Core(TM).i7-3610QM.CPU.@.2.30GHz.py37.venv/bin/python3.7: [Errno 2] No such file or directory: '/home/cognifloyd/.cache/pants/named_caches/pex_root/venvs/4944c1434412ec17d02ad24dd6e05cf1f0b3a38a/acea27d2dbcc288eac2b093081739a3575b60708/pex': '/home/cognifloyd/.cache/pants/named_caches/pex_root/venvs/4944c1434412ec17d02ad24dd6e05cf1f0b3a38a/acea27d2dbcc288eac2b093081739a3575b60708/pex'
./pants ...
as well, so same error.hundreds-father-404
05/27/2022, 2:58 PMrm -rf ~cache/pants/pants_dev_deps
? Also I'm surprised to see your machine's stats like thatproud-dentist-22844
05/27/2022, 2:58 PMrustup
(v1.24.3) with emerge
(gentoo's package manager): https://packages.gentoo.org/packages/dev-util/rustup~/.cache/pants
with the same result.~/.cache/pants/pants_dev_deps
. same resulthundreds-father-404
05/27/2022, 3:00 PM/home/cognifloyd/.cache/pants/pants_dev_deps/Linux.x86_64.Intel(R).Core(TM).i7-3610QM.CPU.@.2.30GHz.py37.venv/bin/
exist?proud-dentist-22844
05/27/2022, 3:01 PM~/g/github/pantsbuild/pants.git ๎ฐ ๎ valid-choices โ ๎ฐ ls ~/.cache/pants/pants_dev_deps/Linux.x86_64.Intel\(R\).Core\(TM\).i7-3610QM.CPU.@.2.30GHz.py37.venv/bin
activate activate.fish normalizer pex3 pip pip3.7 pytest python3 wheel
activate.csh chevron pex pex-tools pip3 py.test python python3.7
hundreds-father-404
05/27/2022, 3:03 PM--no-pantsd --no-local-cache
make any difference?proud-dentist-22844
05/27/2022, 3:03 PMhundreds-father-404
05/27/2022, 3:06 PMNot sure why it picked 3.7, but it's within the range in pants.tomlwe choose the lowest of 3.7-3.9 because we're more likely to catch you using stuff not in 3.8, like new syntax You can set
export PY=python3.9
-- maybe it would make a difference..proud-dentist-22844
05/27/2022, 3:08 PMhundreds-father-404
05/27/2022, 3:09 PMproud-dentist-22844
05/27/2022, 3:10 PM./pants
with PY=python3.7 or PY=python3.9 (one try that builds the engine, and a follow up to make sure it still works.
But if I do a kill -HUP <pid of pantsd>
and then run it again, I get that same error again.
So, it only works as long as pantsd is still running from the initial time../pants lint src/python/pants/engine/target_test.py
pex.resolve.resolvers.Untranslatable: Failed to spawn a job for BuildRequest(target=LocalInterpreter(id='usr.bin.python3.7m', platform=Platform(platform='manylinux_2_34_x86_64', impl='cp', version='3.7.13', version_info=(3, 7, 13), abi='cp37m'), marker_environment=MarkerEnvironment(implementation_name='cpython', implementation_version='3.7.13', os_name='posix', platform_machine='x86_64', platform_python_implementation='CPython', platform_release='5.15.41-gentoo', platform_system='Linux', platform_version='#1 SMP Sat May 21 10:13:44 CDT 2022', python_full_version='3.7.13', python_version='3.7', sys_platform='linux'), interpreter=PythonInterpreter('/usr/bin/python3.7m', PythonIdentity('/usr/bin/python3.7m', 'cp37', 'cp37m', 'manylinux_2_34_x86_64', (3, 7, 13)))), source_path='/home/cognifloyd/.cache/pants/named_caches/pex_root/downloads/3865dbbbb8efb4bb5eaa72f1be7f3e0be00ea8b7f125c69cbd1f5fda926f37a2/untokenize-0.1.1.tar.gz', fingerprint='3865dbbbb8efb4bb5eaa72f1be7f3e0be00ea8b7f125c69cbd1f5fda926f37a2'): [Errno 2] No such file or directory: '/home/cognifloyd/.cache/pants/named_caches/pex_root/venvs/4944c1434412ec17d02ad24dd6e05cf1f0b3a38a/acea27d2dbcc288eac2b093081739a3575b60708/pex': '/home/cognifloyd/.cache/pants/named_caches/pex_root/venvs/4944c1434412ec17d02ad24dd6e05cf1f0b3a38a/acea27d2dbcc288eac2b093081739a3575b60708/pex'
I get this when running with PY=python3.9 ./pants lint src/python/pants/engine/target_test.py
- odd it is still trying to use 3.7PY=python3.7 ./pants lint src/python/pants/engine/target_test.py
pex.resolve.resolvers.Untranslatable: Failed to spawn a job for BuildRequest(target=LocalInterpreter(id='usr.bin.python3.7m', platform=Platform(platform='manylinux_2_34_x86_64', impl='cp', version='3.7.13', version_info=(3, 7, 13), abi='cp37m'), marker_environment=MarkerEnvironment(implementation_name='cpython', implementation_version='3.7.13', os_name='posix', platform_machine='x86_64', platform_python_implementation='CPython', platform_release='5.15.41-gentoo', platform_system='Linux', platform_version='#1 SMP Sat May 21 10:13:44 CDT 2022', python_full_version='3.7.13', python_version='3.7', sys_platform='linux'), interpreter=PythonInterpreter('/usr/bin/python3.7m', PythonIdentity('/usr/bin/python3.7m', 'cp37', 'cp37m', 'manylinux_2_34_x86_64', (3, 7, 13)))), source_path='/home/cognifloyd/.cache/pants/named_caches/pex_root/downloads/61a353012cff6ab94ca062823d1fb2f692c4acda51c76ff83a8d77915fba51ea/autoflake-1.4.tar.gz', fingerprint='61a353012cff6ab94ca062823d1fb2f692c4acda51c76ff83a8d77915fba51ea'): [Errno 2] No such file or directory: '/home/cognifloyd/.cache/pants/named_caches/pex_root/venvs/4944c1434412ec17d02ad24dd6e05cf1f0b3a38a/acea27d2dbcc288eac2b093081739a3575b60708/pex': '/home/cognifloyd/.cache/pants/named_caches/pex_root/venvs/4944c1434412ec17d02ad24dd6e05cf1f0b3a38a/acea27d2dbcc288eac2b093081739a3575b60708/pex'
PY=python3.7m
(/usr/bin/python3.7 is a symlink to /usr/bin/python3.7m) and now it's working. Deleting ~/.cache/pants was not enough, nor was PY=python3.7m
, so there must have been something else cached somewhere. Something somewhere must have been cached using the borked python3.7 install. very odd.