chen3feng / article

本人的文章和笔记,充当懒人 Blog 来用。
9 stars 1 forks source link

LLDB 在 WSL 上启动报错:ModuleNotFoundError: No module named 'lldb.formatters' #38

Open chen3feng opened 1 year ago

chen3feng commented 1 year ago

在 WSL2 上安装 lldb 后启动报错:

NameError: name 'lldb' is not defined
error: module importing failed: Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/mnt/c/Work/linux/distributedDS/Engine/Extras/LLDBDataFormatters/UEDataFormatters_2ByteChars.py", line 8, in <module>
    import lldb.formatters.Logger
ModuleNotFoundError: No module named 'lldb.formatters'

搜了一下按指示操作解决:

apt install python3-lldb-14
ln -s /usr/lib/llvm-14/lib/python3.10/dist-packages/lldb/* /usr/lib/python3/dist-packages/lldb/