← 输入框|github.com|刷新
Skip to content

AttributeError: module 'signal' has no attribute 'pthread_sigmask' #6302

Closed

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

# Remove ctypes (https://github.com/RustPython/RustPython/issues/6299)
cd /Users/pc/.local/lib/rustpython3.13/site-packages
# Mac
find ./xonsh -type f -name "*.py" -print0 | xargs -0 sed -i '' 's/import ctypes/#import ctypes/g'
# Linux
# find ./xonsh -type f -name "*.py" -print0 | xargs -0 sed -i 's/import ctypes/#import ctypes/g'

~/.local/bin/xonsh --no-rc --no-env

Result:

Traceback (most recent call last):
  File "/Users/pc/.local/bin/xonsh", line 3, in <module>
    from xonsh.main import main
  File "/Users/pc/.local/lib/rustpython3.13/site-packages/xonsh/main.py", line 12, in <module>
    import xonsh.procs.pipelines as xpp
  File "/Users/pc/.local/lib/rustpython3.13/site-packages/xonsh/procs/pipelines.py", line 14, in <module>
    import xonsh.procs.jobs as xj
  File "/Users/pc/.local/lib/rustpython3.13/site-packages/xonsh/procs/jobs.py", line 299, in <module>
    _pthread_sigmask = signal.pthread_sigmask  # type:ignore
AttributeError: module 'signal' has no attribute 'pthread_sigmask'

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

Activity

  1. youknowone commented on Dec 24, 2025

    @youknowone
    Member

    @anki-code Thank you so much for trying RustPython for xonsh. Could you check more issues to blocking xonsh? I will check them one by one. It may take time though.

  2. anki-code commented on Dec 24, 2025

    @anki-code
    Author

    @youknowone thanks for your support! I'm testing the new version of RustPython.

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