Skip to content

subprocess.SubprocessError: Exception occurred in preexec_fn. #6532

Open

Description

@anki-code

Hi! After latest fixes xonsh is working more and more stable so I've mentioned RustPython in xonsh README, thanks!

rc.xsh:

@aliases.register
def _als():
    $(echo)
rustpython -V
# Python 3.13.0alpha (heads/master:40acd5529

~/.local/bin/rust-xonsh --rc rc.xsh
als
Traceback (most recent call last):
  File "/Users/pc/.local/lib/rustpython3.13/site-packages/xonsh/procs/pipelines.py", line 177, in __init__
    proc = spec.run(pipeline_group=pipeline_group)
  File "/Users/pc/.local/lib/rustpython3.13/site-packages/xonsh/procs/specs.py", line 528, in run
    p = self._run_binary(kwargs)
  File "/Users/pc/.local/lib/rustpython3.13/site-packages/xonsh/procs/specs.py", line 585, in _run_binary
    raise xt.XonshError(e) from ex
  File "/Users/pc/.local/lib/rustpython3.13/site-packages/xonsh/procs/specs.py", line 546, in _run_binary
    p = self.cls(cmd, bufsize=bufsize, **kwargs)
  File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/40acd55/crates/pylib/Lib/subprocess.py", line 1062, in __init__
    raise
  File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/40acd55/crates/pylib/Lib/subprocess.py", line 1034, in __init__
    start_new_session, process_group)
  File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/40acd55/crates/pylib/Lib/subprocess.py", line 1958, in _execute_child
    raise child_exception_type(err_msg)
subprocess.SubprocessError: Exception occurred in preexec_fn.

Here p = self.cls is subprocess.Popen by default.

Activity

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