Skip to content

AttributeError: dlsym failed 2 #6696

@anki-code

Description

@anki-code

I've faced again with #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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions