<#17987 `No such file or directory: 'local_dists.p...
# github-notifications
q
#17987 `No such file or directory: 'local_dists.pex/PEX-INFO'` when running a `python_source` Issue created by danxmoran Describe the bug After updating one of our CI checks to
./pants run
a
python_source
directly (vs. the previous code which ran the
pex_binary
), some of our jobs started failing with:
Copy code
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/pants