-
Notifications
You must be signed in to change notification settings - Fork 13.3k
[lldb] tests errors ModuleNotFoundError: No module named '_lldb'
with BuildType=Debug on Windows
#87381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
ModuleNotFoundError: No module named '_lldb'
with Release=Debug on Windows ModuleNotFoundError: No module named '_lldb'
with BuildType=Debug on Windows
@llvm/issue-subscribers-lldb Author: Alexander M. (amordo)
For example
```
C:\Users\iammorjj\llvm-project\build>python_d bin/lldb-dotest -p TestAddressBreakpoints.py
C:\Program Files\Python312\python_d.exe C:/Users/iammorjj/llvm-project/lldb/test/API/dotest.py --arch x86_64 --build-dir C:/Users/iammorjj/llvm-project/build/lldb-test-build.noindex --executable C:/Users/iammorjj/llvm-project/build/./bin/lldb.exe --compiler C:/Users/iammorjj/llvm-project/build/./bin/clang.exe --dsymutil C:/Users/iammorjj/llvm-project/build/./bin/dsymutil.exe --lldb-libs-dir C:/Users/iammorjj/llvm-project/build/./lib --llvm-tools-dir C:/Users/iammorjj/llvm-project/build/./bin -p TestAddressBreakpoints.py
lldb version 19.0.0git (https://github.com/llvm/llvm-project.git revision ee99475)
clang revision ee99475
llvm revision ee99475
Traceback (most recent call last):
File "C:\Users\iammorjj\llvm-project\build\Lib\site-packages\lldb\__init__.py", line 39, in <module>
import _lldb
ModuleNotFoundError: No module named '_lldb'
During handling of the above exception, another exception occurred: Traceback (most recent call last): C:\Users\iammorjj\llvm-project\build>
C:\Users\iammorjj\llvm-project\build>python_d bin/lldb-dotest -p TestAddressBreakpoints.py
|
For example
It doesn't work neither with
python
norpython_d
.Adding
_d
solves the problem (rename from"C:\Users\iammorjj\llvm-project\build\lib\site-packages\lldb\_lldb.cp312-win_amd64.pyd"
to"C:\Users\iammorjj\llvm-project\build\lib\site-packages\lldb\_lldb_d.cp312-win_amd64.pyd"
).PS: seems it's regression after
ae389b2#diff-644df201b5e726af9435d4fd88f8f43924506062add78fff02d4dca4fb8f98d7R152
set(LIBLLDB_SYMLINK_OUTPUT_FILE "_lldb${LLDB_PYTHON_EXT_SUFFIX}")
The text was updated successfully, but these errors were encountered: