<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - "import _lldb" doesn't work on Windows with Python 3.8+"
href="https://bugs.llvm.org/show_bug.cgi?id=46891">46891</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>"import _lldb" doesn't work on Windows with Python 3.8+
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@lists.llvm.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>Tatyana.Krasnukha@synopsys.com
</td>
</tr>
<tr>
<th>CC</th>
<td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>This happens when liblldb.dll depends on non-system libraries (e.g.
libxml2.dll).
To reproduce this issue, build LLDB with LibXML2 and run `python_d -c "import
_lldb"`.
The error will be "ImportError: DLL load failed while importing _lldb: The
specified module could not be found". Neither PATH nor PYTHONPATH makes a
difference.
Since version 3.8, Python stopped searching dlls in directories specified by
PATH.
Now such paths should be specified by calling `add_dll_directory()`
(<a href="https://docs.python.org/3.8/whatsnew/3.8.html#bpo-36085-whatsnew">https://docs.python.org/3.8/whatsnew/3.8.html#bpo-36085-whatsnew</a>).
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>