Skip to content

Spindle breaks Python subprocess #218

Closed

Description

@nchaimov

The h5bench and lbann failures in the E4S testsuite are caused by Python's subprocess.run failing to find executables under Spindle:

spindleuser@spindlenode:~$ cat subproc.py
import subprocess

result = subprocess.run(["/bin/true"], check=True)
print(f"returned {result.returncode}")

spindleuser@spindlenode:~$ python3 subproc.py
returned 0

spindleuser@spindlenode:~$ spindle python3 subproc.py
Traceback (most recent call last):
  File "/home/spindleuser/subproc.py", line 3, in <module>
    result = subprocess.run(["/bin/true"], check=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.12/subprocess.py", line 1955, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/bin/true'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions