8000 AttributeError: module 'signal' has no attribute 'pthread_sigmask' · Issue #6302 · RustPython/RustPython · GitHub
[go: up one dir, main page]

Skip to content

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

@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

# 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

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