[Bug 1972855] Re: lldb malfunctions due to faulty python path (ModuleNotFoundError: No module named 'lldb.embedded_interpreter')
Patrick Fasano
1972855 at bugs.launchpad.net
Sun Feb 18 18:35:00 UTC 2024
** Also affects: llvm-toolchain-14 (Ubuntu)
Importance: Undecided
Status: New
** Also affects: llvm-toolchain-15 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to llvm-toolchain-15 in Ubuntu.
https://bugs.launchpad.net/bugs/1972855
Title:
lldb malfunctions due to faulty python path (ModuleNotFoundError: No
module named 'lldb.embedded_interpreter')
Status in llvm-defaults package in Ubuntu:
Confirmed
Status in llvm-toolchain-14 package in Ubuntu:
New
Status in llvm-toolchain-15 package in Ubuntu:
New
Bug description:
Starting lldb causes the following to happen:
$ lldb
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'lldb.embedded_interpreter'
(lldb)
This causes issues with, for instance, QtCreator, which stalls when
trying to debug anything with lldb.
lldb -P gives the following path:
/usr/lib/local/lib/python3.10/dist-packages
However, that path doesn't exist:
$ ls -l /usr/lib/local/lib/python3.10/dist-packages
ls: cannot access '/usr/lib/local/lib/python3.10/dist-packages': No such file or directory
The package python3-lldb-14 provides this path, though:
/usr/lib/llvm-14/lib/python3.10/dist-packages/
Creating a symbolic link from /usr/lib/llvm-14/lib/python3.10/dist-
packages/ to /usr/lib/local/lib/python3.10/dist-packages makes things
work as expected:
$ ls -l /usr/lib/local/lib/python3.10/dist-packages && lldb
lrwxrwxrwx 1 root root 45 May 10 15:23 /usr/lib/local/lib/python3.10/dist-packages -> /usr/lib/llvm-14/lib/python3.10/dist-packages
(lldb)
Now QtCreator functions fine with lldb.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: lldb 1:14.0-55~exp2
ProcVersionSignature: Ubuntu 5.15.0-27.28-lowlatency 5.15.30
Uname: Linux 5.15.0-27-lowlatency x86_64
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: Unity:Unity7:ubuntu
Date: Tue May 10 15:18:41 2022
InstallationDate: Installed on 2015-02-26 (2630 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
SourcePackage: llvm-defaults
UpgradeStatus: Upgraded to jammy on 2022-05-02 (7 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1972855/+subscriptions
More information about the foundations-bugs
mailing list