high-yak-85899
10/10/2022, 5:04 PM~/.cache/pants
has not seemed to be helpful.high-yak-85899
10/10/2022, 5:04 PM16:57:48.32 [INFO] Scheduler initialized.
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/buildbot/.pex/unzipped_pexes/2aac9312154c299fac910874b778e800dca4c62a/__main__.py", line 102, in <module>
from pex.pex_bootstrapper import bootstrap_pex
ModuleNotFoundError: No module named 'pex'
16:57:51.47 [ERROR] 1 Exception encountered:
Engine traceback:
in select
in pants.core.goals.export.export
Traceback (most recent call last):
File "/home/buildbot/.cache/pants/setup/bootstrap-Linux-x86_64/2.13.0_py38/lib/python3.8/site-packages/pants/engine/internals/selectors.py", line 653, in native_engine_generator_send
res = func.send(arg)
File "/home/buildbot/.cache/pants/setup/bootstrap-Linux-x86_64/2.13.0_py38/lib/python3.8/site-packages/pants/core/goals/export.py", line 142, in export
raise ExportError(f"Failed to write {result.description} to {result_dir}")
pants.core.goals.export.ExportError: Failed to write virtualenv for the resolve 'python-default' (using Python 3.8.10) to dist/export/python/virtualenvs/python-default
high-yak-85899
10/10/2022, 5:05 PM./pants export
at different times and messing with the state of the cache.high-yak-85899
10/10/2022, 5:15 PM~/.pex
as well. I don't remember seeing any notes in the Pants docs about that. Just some notes about monitoring the size of ~/.cache/pants
.high-yak-85899
10/10/2022, 5:22 PMpantsd
processes on the troubled machineenough-analyst-54434
10/10/2022, 5:45 PMfind /home/buildbot/.pex/
)? I'm not sure why that backtrace would be happening after a pantsd bootstrap since - fwict - all Pex CLI use in Pants sets up a PEX_ROOT
of /home/buildbot/.cache/pants/named_caches/pex_root
, but I'll check the export goal ruleset since that's implicated.high-yak-85899
10/10/2022, 5:49 PM./pants export
to protect against any concurrency.enough-analyst-54434
10/10/2022, 5:53 PM/home/buildbot/.pex/unzipped_pexes/2aac9312154c299fac910874b778e800dca4c62a
direcory (and all other PEX_ROOT directories. It uses:
+ https://github.com/pantsbuild/pex/blob/bc29962d1b05d514c9098e1f5077734463bb69b3/pex/layout.py#L98-L109
+ https://github.com/pantsbuild/pex/blob/bc29962d1b05d514c9098e1f5077734463bb69b3/pex/common.py#L435-L471enough-analyst-54434
10/10/2022, 5:54 PM~/.pex
leak, it's right here: https://github.com/pantsbuild/pants/blob/2551b3382f9135cdd8ab3c96225def77ff5c2f20/src/python/pants/backend/python/goals/export.py#L178-L195
I'll file an issue - that PEX_ROOT non-specification is an unintended leak / aka Pants using /home/buildbot/.pex
is a bug.high-yak-85899
10/10/2022, 5:56 PMenough-analyst-54434
10/10/2022, 5:57 PMenough-analyst-54434
10/10/2022, 5:57 PMenough-analyst-54434
10/10/2022, 6:03 PMhigh-yak-85899
10/11/2022, 4:33 PMModuleNotFoundError: No module named 'pex'
in other places completely separate from the export goal. I'm wondering if this is a systematic issue beyond just export
.enough-analyst-54434
10/11/2022, 5:28 PMhigh-yak-85899
10/11/2022, 5:39 PM