AttributeError: dlsym failed 2

Aperta
#6,696 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python, rust
Ambito
compilers

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RustPython/RustPython

Tutte le issue di RustPython/RustPython

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.