Title: AttributeError: 'xmlparser' object has no attribute 'namespace_prefixes' · Issue #6487 · RustPython/RustPython · GitHub
Open Graph Title: AttributeError: 'xmlparser' object has no attribute 'namespace_prefixes' · Issue #6487 · RustPython/RustPython
X Title: AttributeError: 'xmlparser' object has no attribute 'namespace_prefixes' · Issue #6487 · RustPython/RustPython
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://githu...
Open Graph 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 in...
X 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 sh...
Opengraph URL: https://github.com/RustPython/RustPython/issues/6487
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AttributeError: 'xmlparser' object has no attribute 'namespace_prefixes'","articleBody":"Hello! I'm trying to run xonsh shell using rustpython on Mac but faced with error:\n\n```xsh\nxonsh\ncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh # https://rustup.rs/\n# restart shell\ncargo install --features=ssl --git https://github.com/RustPython/RustPython rustpython\n$PATH.append(p'~/.cargo/bin')\n#rustpython -m site # to get locations\nrustpython --install-pip\nrustpython -m pip install xonsh prompt-toolkit\n```\nHere prompt-toolkit was added - it's the default prompt engine for xonsh shell.\n```xsh\n~/.local/bin/xonsh --no-rc --no-env\n```\nResult:\n```xsh\nTraceback (most recent call last):\n File \"/Users/pc/.local/bin/xonsh\", line 3, in \u003cmodule\u003e\n from xonsh.main import main\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/xonsh/main.py\", line 12, in \u003cmodule\u003e\n import xonsh.procs.pipelines as xpp\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/xonsh/procs/__init__.py\", line 2, in \u003cmodule\u003e\n from xonsh.procs import proxies # noqa\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/xonsh/procs/proxies.py\", line 21, in \u003cmodule\u003e\n import xonsh.tools as xt\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/xonsh/tools.py\", line 55, in \u003cmodule\u003e\n HAVE_CURSOR_SHAPE = False\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/xonsh/tools.py\", line 45, in \u003cmodule\u003e\n from prompt_toolkit.cursor_shapes import (\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/__init__.py\", line 29, in \u003cmodule\u003e\n from .shortcuts import PromptSession, choice, print_formatted_text, prompt\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/shortcuts/__init__.py\", line 13, in \u003cmodule\u003e\n from .progress_bar import ProgressBar, ProgressBarCounter\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/shortcuts/progress_bar/__init__.py\", line 3, in \u003cmodule\u003e\n from .base import ProgressBar, ProgressBarCounter\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/shortcuts/progress_bar/base.py\", line 57, in \u003cmodule\u003e\n from .formatters import Formatter, create_default_formatters\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/shortcuts/progress_bar/formatters.py\", line 129, in \u003cmodule\u003e\n class Percentage(Formatter):\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/shortcuts/progress_bar/formatters.py\", line 134, in Percentage\n template = HTML(\"\u003cpercentage\u003e{percentage:\u003e5}%\u003c/percentage\u003e\")\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/formatted_text/html.py\", line 35, in __init__\n document = minidom.parseString(f\"\u003chtml-root\u003e{value}\u003c/html-root\u003e\")\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/xml/dom/minidom.py\", line 2016, in parseString\n return expatbuilder.parseString(string)\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/xml/dom/expatbuilder.py\", line 922, in parseString\n return builder.parseString(string)\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/xml/dom/expatbuilder.py\", line 218, in parseString\n parser = self.getParser()\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/xml/dom/expatbuilder.py\", line 158, in getParser\n self._parser = self.createParser()\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/xml/dom/expatbuilder.py\", line 719, in createParser\n parser.namespace_prefixes = True\nAttributeError: 'xmlparser' object has no attribute 'namespace_prefixes'\n```\n\n## For community\n⬇️ **Please click the 👍 reaction instead of leaving a `+1` or 👍 comment**","author":{"url":"https://github.com/anki-code","@type":"Person","name":"anki-code"},"datePublished":"2025-12-24T13:37:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/6487/RustPython/issues/6487"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:01f12650-d4cb-17dd-fa15-ed54aebcc126 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 963E:33BDE3:E8C5C:130614:696AF5EE |
| html-safe-nonce | 1034c68e2b9833c1a8b98747e602f5bb9e918c1a98441959808ac1c15b09483e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjNFOjMzQkRFMzpFOEM1QzoxMzA2MTQ6Njk2QUY1RUUiLCJ2aXNpdG9yX2lkIjoiMTkwNTIwNjY3OTIwMDAwMzU2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bc7a491d3323bac59a4407a4d923fcbd93bcaa3272f07897d5197beb6b06d15b |
| hovercard-subject-tag | issue:3760353211 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/RustPython/RustPython/6487/issue_layout |
| twitter:image | https://opengraph.githubassets.com/206f5af183aecb69ec9b1403490c4b633a450190c791ffcbeb4f6aee74af8539/RustPython/RustPython/issues/6487 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/206f5af183aecb69ec9b1403490c4b633a450190c791ffcbeb4f6aee74af8539/RustPython/RustPython/issues/6487 |
| og:image:alt | 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 in... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anki-code |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width