-
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 prompt-toolkitHere prompt-toolkit was added - it's the default prompt engine for xonsh shell.
~/.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/__init__.py", line 2, in <module>
from xonsh.procs import proxies # noqa
File "/Users/pc/.local/lib/rustpython3.13/site-packages/xonsh/procs/proxies.py", line 21, in <module>
import xonsh.tools as xt
File "/Users/pc/.local/lib/rustpython3.13/site-packages/xonsh/tools.py", line 55, in <module>
HAVE_CURSOR_SHAPE = False
File "/Users/pc/.local/lib/rustpython3.13/site-packages/xonsh/tools.py", line 45, in <module>
from prompt_toolkit.cursor_shapes import (
File "/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/__init__.py", line 29, in <module>
from .shortcuts import PromptSession, choice, print_formatted_text, prompt
File "/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/shortcuts/__init__.py", line 13, in <module>
from .progress_bar import ProgressBar, ProgressBarCounter
File "/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/shortcuts/progress_bar/__init__.py", line 3, in <module>
from .base import ProgressBar, ProgressBarCounter
File "/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/shortcuts/progress_bar/base.py", line 57, in <module>
from .formatters import Formatter, create_default_formatters
File "/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/shortcuts/progress_bar/formatters.py", line 129, in <module>
class Percentage(Formatter):
File "/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/shortcuts/progress_bar/formatters.py", line 134, in Percentage
template = HTML("<percentage>{percentage:>5}%</percentage>")
File "/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/formatted_text/html.py", line 35, in __init__
document = minidom.parseString(f"<html-root>{value}</html-root>")
File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/xml/dom/minidom.py", line 2016, in parseString
return expatbuilder.parseString(string)
File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/xml/dom/expatbuilder.py", line 922, in parseString
return builder.parseString(string)
File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/xml/dom/expatbuilder.py", line 218, in parseString
parser = self.getParser()
File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/xml/dom/expatbuilder.py", line 158, in getParser
self._parser = self.createParser()
File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/xml/dom/expatbuilder.py", line 719, in createParser
parser.namespace_prefixes = True
AttributeError: 'xmlparser' object has no attribute 'namespace_prefixes'For community
⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment
youknowonecoderabbitai and Copilot
Metadata
Metadata
Assignees
Labels
No labels