-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
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-envResult:
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
youknowone
Metadata
Metadata
Assignees
Labels
No labels