Bug#1032423: lldb-14/lldb-15: lldb: ModuleNotFoundError: No module named 'lldb.embedded_interpreter'
Bernhard Übelacker
bernhardu at mailbox.org
Sun Sep 1 13:53:25 BST 2024
On Sun, 31 Jul 2022 11:26:14 -0500 "Steve M. Robbins" <smr at debian.org> wrote:
> Package: lldb-14
> Version: 1:14.0.6-2
> $ lldb
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> ModuleNotFoundError: No module named 'lldb.embedded_interpreter'
>
> See https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1972855 for
> full description and a workaround.
Seems this still affects lldb-14 and lldb-15 in Bookworm/stable.
Current Trixie/testing should be good, because lldb-14 is no longer
part of it. And lldb-15 in Trixie/testing does also not show this error.
This might have to do with this paramter LLDB_PYTHON_RELATIVE_LIBDIR
given to the compiler for lldb, which may indicate it got fixed with
in lldb-15 with version 15.0.7-2. [1]
This is also discussed upstream in [2], and contains a workaround by
manually setting the PYTHONPATH environment.
Kind regards,
Bernhard
[1]
https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-15&arch=amd64&ver=1%3A15.0.7-1&stamp=1673827917&raw=0
[7044/8504] /<<PKGBUILDDIR>>/build-llvm/./bin/clang++ -DHAVE_ROUND -DLLDB_PYTHON_EXE_RELATIVE_PATH=\"bin/python3\" -DLLDB_PYTHON_RELATIVE_LIBDIR=\"local/lib/python3.11/dist-packages\" .../PythonReadline.cpp
https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-15&arch=amd64&ver=1%3A15.0.7-2&stamp=1678517920&raw=0
[7056/8504] /<<PKGBUILDDIR>>/build-llvm/./bin/clang++ -DHAVE_ROUND -DLLDB_PYTHON_EXE_RELATIVE_PATH=\"bin/python3\" -DLLDB_PYTHON_RELATIVE_LIBDIR=\"lib/python3.11/site-packages\" .../PythonReadline.cpp
[2]
https://github.com/llvm/llvm-project/issues/55575
PYTHONPATH="/usr/lib/llvm-14/lib/python3.11/dist-packages/:$PYTHONPATH" lldb-14 -P
or
PYTHONPATH="/usr/lib/llvm-15/lib/python3.11/dist-packages/:$PYTHONPATH" lldb-15 -P
More information about the Pkg-llvm-team
mailing list