cold-branch-54016
01/25/2023, 12:08 PMdocker_environment(
name="dev_docker",
platform="linux_x86_64",
image="test", # python:3.10.4-slim-bullseye docker image
python_bootstrap_search_path=["<PATH>"]
)
On the test I have set the environment
python_tests(
name="tests",
environment="dev_docker"
)
When I now try to run that test I get the following FileNotFoundError:
./pants test ::
13:06:26.16 [ERROR] 1 Exception encountered:
Engine traceback:
in `test` goal
ProcessExecutionFailure: Process 'Find interpreter for constraints: CPython>=3.10.*' failed with exit code 1.
stdout:
stderr:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/runpy.py", line 189, in _run_module_as_main
mod_name, mod_spec, code = _get_main_module_details(_Error)
File "/usr/local/lib/python3.10/runpy.py", line 223, in _get_main_module_details
return _get_module_details(main_name)
File "/usr/local/lib/python3.10/runpy.py", line 129, in _get_module_details
spec = importlib.util.find_spec(mod_name)
File "/usr/local/lib/python3.10/importlib/util.py", line 103, in find_spec
return _find_spec(fullname, parent_path)
File "<frozen importlib._bootstrap>", line 945, in _find_spec
File "<frozen importlib._bootstrap_external>", line 1439, in find_spec
File "<frozen importlib._bootstrap_external>", line 1411, in _get_spec
File "<frozen zipimport>", line 170, in find_spec
File "<frozen importlib._bootstrap>", line 431, in spec_from_loader
File "<frozen importlib._bootstrap_external>", line 741, in spec_from_file_location
File "<frozen zipimport>", line 229, in get_filename
File "<frozen zipimport>", line 752, in _get_module_code
File "<frozen zipimport>", line 586, in _get_data
FileNotFoundError: [Errno 2] No such file or directory: '/pants-sandbox/pants-sandbox-kEtOGg/./pex'
Does anyone know what the problem might be?