quaint-telephone-89068
01/12/2023, 11:19 PM./pants run a python_source directly (vs. the previous code which ran the pex_binary), some of our jobs started failing with:
Traceback (most recent call last):
File "/opt/python/3.8.14/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/python/3.8.14/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/runner/.pants/execution/pants-sandbox-g6NiAf/./src.pex/__main__.py", line 89, in <module>
__venv_dir__ = __maybe_run_venv__(
File "/home/runner/.pants/execution/pants-sandbox-g6NiAf/./src.pex/__main__.py", line 37, in __maybe_run_venv__
venv_dir = venv_dir(
File "/home/runner/.pants/execution/pants-sandbox-g6NiAf/src.pex/.bootstrap/pex/variables.py", line 738, in venv_dir
File "/home/runner/.pants/execution/pants-sandbox-g6NiAf/src.pex/.bootstrap/pex/variables.py", line 736, in add_pex_path_items
File "/home/runner/.pants/execution/pants-sandbox-g6NiAf/src.pex/.bootstrap/pex/pex_info.py", line 82, in from_pex
FileNotFoundError: [Errno 2] No such file or directory: 'local_dists.pex/PEX-INFO'
The python_source has run_goal_use_sandbox=False.
Pants version
v2.15.0rc1
OS
Linux
pantsbuild/pantsuser
01/18/2023, 11:58 PM