8000 subprocess.SubprocessError: Exception occurred in preexec_fn. · Issue #6489 · RustPython/RustPython · GitHub
[go: up one dir, main page]

Skip to content

subprocess.SubprocessError: Exception occurred in preexec_fn. #6489

@anki-code

Description

@anki-code

Hello! I'm trying to run xonsh shell using rustpython on Mac but faced with error:

xonsh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh  # https://rustup.rs/
# restart shell
cargo install --features=ssl --git https://github.com/RustPython/RustPython rustpython
$PATH.append(p'~/.cargo/bin')
#rustpython -m site  # to get locations
rustpython --install-pip
rustpython -m pip install xonsh   

Note! No prompt-toolkit as workaround #6487

~/.local/bin/xonsh --no-rc --no-env
# Skipping setup. Because no `readline` implementation available.
$XONSH_SHOW_TRACEBACK = True
ls

Result:

xonsh: To log full traceback to a file set: $XONSH_TRACEBACK_LOGFILE = <filename>
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/7c3bc5e/crates/pylib/Lib/subprocess.py", line 1062, in __init__
    raise
  File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/subprocess.py", line 1034, in __init__
    start_new_session, process_group)
  File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/subprocess.py", line 1958, in _execute_child
    raise child_exception_type(err_msg)
subprocess.SubprocessError: Exception occurred in preexec_fn.

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 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

      0