[lldb-dev] [Bug 46891] New: "import _lldb" doesn't work on Windows with Python 3.8+

via lldb-dev lldb-dev at lists.llvm.org
Wed Jul 29 06:21:17 PDT 2020


            Bug ID: 46891
           Summary: "import _lldb" doesn't work on Windows with Python
           Product: lldb
           Version: unspecified
          Hardware: All
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: Tatyana.Krasnukha at synopsys.com
                CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org

This happens when liblldb.dll depends on non-system libraries (e.g.

To reproduce this issue, build LLDB with LibXML2 and run `python_d -c "import
The error will be "ImportError: DLL load failed while importing _lldb: The
specified module could not be found". Neither PATH nor PYTHONPATH makes a

Since version 3.8, Python stopped searching dlls in directories specified by
Now such paths should be specified by calling `add_dll_directory()`

Seems like the function call should be placed in bindings/python.swig right
before importing _lldb, however, I don't see a way to determine paths to
dependencies there.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20200729/34d20f12/attachment.html>

More information about the lldb-dev mailing list