AttributeError: dlsym failed 2
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
Direzione di ricerca
Riproduci il problema con rustpython -V e rust-xonsh --no-rc --no-env, poi inizia da __getattr__ e __getitem__ in crates/pylib/Lib/ctypes/__init__.py, seguendo il traceback fino alla ricerca di dlsym non riuscita. Il lavoro è completato quando il comando xonsh non solleva più AttributeError: dlsym failed durante l’avvio del prompt.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I've faced again with https://github.com/RustPython/RustPython/issues/6510
rustpython -V
Python 3.13.0alpha (heads/master:6ff7b3ed2
rust-xonsh --no-rc --no-env
Traceback (most recent call last):
File "/Users/pc/.local/lib/rustpython3.13t/site-packages/xonsh/main.py", line 512, in main
sys.exit(main_xonsh(args))
^^^^
File "/Users/pc/.local/lib/rustpython3.13t/site-packages/xonsh/main.py", line 559, in main_xonsh
shell.shell.cmdloop()
^^^^^
File "/Users/pc/.local/lib/rustpython3.13t/site-packages/xonsh/shells/ptk_shell/__init__.py", line 410, in cmdloop
line = self.singleline(auto_suggest=auto_suggest)
^^^^^^^^^^^^
File "/Users/pc/.local/lib/rustpython3.13t/site-packages/xonsh/shells/ptk_shell/__init__.py", line 378, in singleline
line = self.prompter.prompt(**prompt_args)
^^^^^^^^^^^
File "/Users/pc/.local/lib/rustpython3.13t/site-packages/prompt_toolkit/shortcuts/prompt.py", line 1059, in prompt
inputhook=inputhook,
^^^^^^^^^
File "/Users/pc/.local/lib/rustpython3.13t/site-packages/prompt_toolkit/application/application.py", line 1002, in run
return asyncio.run(coro)
^^^^
File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/6ff7b3e/crates/pylib/Lib/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^
File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/6ff7b3e/crates/pylib/Lib/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^
File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/6ff7b3e/crates/pylib/Lib/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^
File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/6ff7b3e/crates/pylib/Lib/asyncio/futures.py", line 203, in result
raise self._exception.with_traceback(self._exception_tb)
File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/6ff7b3e/crates/pylib/Lib/asyncio/tasks.py", line 314, in __step_run_and_handle_result
result = coro.send(None)
^^^^
File "/Users/pc/.local/lib/rustpython3.13t/site-packages/prompt_toolkit/application/application.py", line 877, in run_async
stack.enter_context(set_handle_sigint(loop))
^^^^
File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/6ff7b3e/crates/pylib/Lib/contextlib.py", line 530, in enter_context
result = _enter(cm)
^^
File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/6ff7b3e/crates/pylib/Lib/contextlib.py", line 141, in __enter__
return next(self.gen)
^^^^
File "/Users/pc/.local/lib/rustpython3.13t/site-packages/prompt_toolkit/application/application.py", line 810, in set_handle_sigint
with _restore_sigint_from_ctypes():
...<11 lines>...
loop.remove_signal_handler(signal.SIGINT)
File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/6ff7b3e/crates/pylib/Lib/contextlib.py", line 141, in __enter__
return next(self.gen)
^^^^
File "/Users/pc/.local/lib/rustpython3.13t/site-packages/prompt_toolkit/application/application.py", line 1610, in _restore_sigint_from_ctypes
pythonapi.PyOS_getsig.restype = c_void_p
^^^^^^^^^
File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/6ff7b3e/crates/pylib/Lib/ctypes/__init__.py", line 412, in __getattr__
func = self.__getitem__(name)
^^^^
File "/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/6ff7b3e/crates/pylib/Lib/ctypes/__init__.py", line 417, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
^^^^
AttributeError: dlsym failed
- Lingua principale
- Rust
- Stelle
- 22.4k
- Fork
- 1.5k
- Merge medio
- 14h 42m
- PR unite (30g)
- 174
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di RustPython/RustPython
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
RustPython/RustPython#8470 · 2 commenti ·
-
C-bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
RustPython/RustPython#7995 · 5 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
RustPython/RustPython#5577 ·
-
C-bug z-ca-2026
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
RustPython/RustPython#8765 · 1 reazione ·
-
C-bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 74/100
RustPython/RustPython#8764 ·
Tutte le issue di RustPython/RustPython
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
bitcoindevkit/bdk-ffi#1125 ·
-
Accept -c in more positions Apertaarea: compat bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
area:ci enhancement requires-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
apache/datafusion-comet#6078 ·
-
area: dogs bug priority: P3 silent failure test-code
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100