Title: AttributeError: dlsym failed · Issue #6510 · RustPython/RustPython · GitHub
Open Graph Title: AttributeError: dlsym failed · Issue #6510 · RustPython/RustPython
X Title: AttributeError: dlsym failed · Issue #6510 · RustPython/RustPython
Description: Hi! I'm trying to run prompt-toolkit (the main prompt engine for xonsh shell) and facing with exception. # rustpython v0.4.0 (https://github.com/RustPython/RustPython#92acf339) rustpython -m pip install prompt-toolkit # 3.0.52 ptk.py: fr...
Open Graph Description: Hi! I'm trying to run prompt-toolkit (the main prompt engine for xonsh shell) and facing with exception. # rustpython v0.4.0 (https://github.com/RustPython/RustPython#92acf339) rustpython -m pip in...
X Description: Hi! I'm trying to run prompt-toolkit (the main prompt engine for xonsh shell) and facing with exception. # rustpython v0.4.0 (https://github.com/RustPython/RustPython#92acf339) rustpython -m pi...
Opengraph URL: https://github.com/RustPython/RustPython/issues/6510
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AttributeError: dlsym failed","articleBody":"Hi! I'm trying to run prompt-toolkit (the main prompt engine for xonsh shell) and facing with exception.\n```xsh\n# rustpython v0.4.0 (https://github.com/RustPython/RustPython#92acf339)\nrustpython -m pip install prompt-toolkit # 3.0.52\n```\nptk.py:\n```xsh\nfrom prompt_toolkit import prompt\ntext = prompt(\"Say something: \")\nprint(\"You said:\", text)\n```\nRun:\n```xsh\n~/.cargo/bin/rustpython ptk.py\n```\n```xsh\nTraceback (most recent call last):\n File \"ptk.py\", line 3, in \u003cmodule\u003e\n text = prompt(\"Say something: \")\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/shortcuts/prompt.py\", line 1494, in prompt\n inputhook=inputhook,\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/shortcuts/prompt.py\", line 1059, in prompt\n inputhook=inputhook,\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/application/application.py\", line 1002, in run\n return asyncio.run(coro)\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/92acf33/crates/pylib/Lib/asyncio/runners.py\", line 193, in run\n with Runner(debug=debug, loop_factory=loop_factory) as runner:\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/92acf33/crates/pylib/Lib/asyncio/runners.py\", line 194, in run\n return runner.run(main)\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/92acf33/crates/pylib/Lib/asyncio/runners.py\", line 129, in run\n signal.signal(signal.SIGINT, signal.default_int_handler)\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/92acf33/crates/pylib/Lib/asyncio/runners.py\", line 124, in run\n raise # CancelledError\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/92acf33/crates/pylib/Lib/asyncio/runners.py\", line 118, in run\n return self._loop.run_until_complete(task)\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/92acf33/crates/pylib/Lib/asyncio/base_events.py\", line 687, in run_until_complete\n return future.result()\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/92acf33/crates/pylib/Lib/asyncio/futures.py\", line 203, in result\n raise self._exception.with_traceback(self._exception_tb)\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/92acf33/crates/pylib/Lib/asyncio/tasks.py\", line 314, in __step_run_and_handle_result\n result = coro.send(None)\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/application/application.py\", line 865, in run_async\n with ExitStack() as stack:\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/application/application.py\", line 877, in run_async\n stack.enter_context(set_handle_sigint(loop))\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/92acf33/crates/pylib/Lib/contextlib.py\", line 530, in enter_context\n result = _enter(cm)\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/92acf33/crates/pylib/Lib/contextlib.py\", line 143, in __enter__\n raise RuntimeError(\"generator didn't yield\") from None\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/92acf33/crates/pylib/Lib/contextlib.py\", line 141, in __enter__\n return next(self.gen)\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/application/application.py\", line 810, in set_handle_sigint\n with _restore_sigint_from_ctypes():\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/92acf33/crates/pylib/Lib/contextlib.py\", line 143, in __enter__\n raise RuntimeError(\"generator didn't yield\") from None\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/92acf33/crates/pylib/Lib/contextlib.py\", line 141, in __enter__\n return next(self.gen)\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/prompt_toolkit/application/application.py\", line 1610, in _restore_sigint_from_ctypes\n pythonapi.PyOS_getsig.restype = c_void_p\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/92acf33/crates/pylib/Lib/ctypes/__init__.py\", line 412, in __getattr__\n func = self.__getitem__(name)\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/92acf33/crates/pylib/Lib/ctypes/__init__.py\", line 417, in __getitem__\n func = self._FuncPtr((name_or_ordinal, self))\nAttributeError: dlsym failed\n```","author":{"url":"https://github.com/anki-code","@type":"Person","name":"anki-code"},"datePublished":"2025-12-25T05:16:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/6510/RustPython/issues/6510"}
| 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:1d4eeeca-4bfc-7b63-3ab8-25b2392d66f7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE24:3E9E49:51D4E9:70290D:6964F45E |
| html-safe-nonce | 189a80133507c102b36c3311bffa826e086f06d1cdcf4486d375d498b48d71ca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTI0OjNFOUU0OTo1MUQ0RTk6NzAyOTBEOjY5NjRGNDVFIiwidmlzaXRvcl9pZCI6IjYwODI4MDU2Nzg3Nzk3MjQ4OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | befffae40fa8d90d3e8f5895487489e8c619ed1a41fbe31e2db726351d05ea61 |
| hovercard-subject-tag | issue:3761424123 |
| 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/6510/issue_layout |
| twitter:image | https://opengraph.githubassets.com/69b72ded074dabf0bbb85e53dde7d8256b9a898213a7d1f2bf52acd1a9c934b4/RustPython/RustPython/issues/6510 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/69b72ded074dabf0bbb85e53dde7d8256b9a898213a7d1f2bf52acd1a9c934b4/RustPython/RustPython/issues/6510 |
| og:image:alt | Hi! I'm trying to run prompt-toolkit (the main prompt engine for xonsh shell) and facing with exception. # rustpython v0.4.0 (https://github.com/RustPython/RustPython#92acf339) rustpython -m pip 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 | 003e962bf5ca78f3f8f71db2461c6a7f9cfcbe99b480d6aeddaef78d33e9161a |
| 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 | 21cbf6733480c5c09366f15b8dc8b6953472172a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width