[Bug 44240] New: lldb-9 doesn't work after installation

Bug ID 44240
Summary lldb-9 doesn’t work after installation
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity enhancement
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter maxime.roussinbelanger@gmail.com
CC jdevlieghere@apple.com, llvm-bugs@lists.llvm.org

Environment:
$ uname -a
Linux mbedesk 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11)
x86_64 GNU/Linux

$ python --version
Python 2.7.16

Installed from apt.llvm.org

$ apt-cache show lldb-9
Package: lldb-9
Source: llvm-toolchain-9
Version: 1:9~+20191125110536+62a16ca77d6-1~exp1~20191125221139.91
Architecture: amd64
Maintainer: LLVM Packaging Team <[pkg-llvm-team@lists.alioth.debian.org](mailto:pkg-llvm-team@lists.alioth.debian.org)>
Installed-Size: 28064
Depends: libc6 (>= 2.15), libedit2 (>= 2.11-20080614-0), libgcc1 (>= 1:3.0),
liblldb-9 (>= 1:9~svn298832-1~), libllvm9 (=
1:9~+20191125110536+62a16ca77d6-1~exp1~20191125221139.91), libncurses6 (>= 6),
libstdc++6 (>= 7), libtinfo6 (>= 6), llvm-9-dev, python-lldb-9
Homepage: [https://www.llvm.org/](https://www.llvm.org/)
Priority: optional
Section: devel
Filename:
pool/main/l/llvm-toolchain-9/lldb-9_9~+20191125110536+62a16ca77d6-1~exp1~20191125221139.91_amd64.deb
Size: 7231112
SHA256: 9f4a03baa60d3635e6a02f16631d0caef33e35f933654eb03ac9f15cad97db5f
SHA1: f7c133ea8d9c4f7244e2822720d4636f8b0c3380
MD5sum: 36292919a2698a61e2a9b1954ce5def4
Description: Next generation, high-performance debugger
 LLDB is a next generation, high-performance debugger. It is built as a set of
 reusable components which highly leverage existing libraries in the larger
LLVM
 Project, such as the Clang expression parser and LLVM disassembler.
Description-md5: 45d52d0209cd7953d2f2bc4d1a99170f

$ lldb-9
(lldb) script
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'lldb'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_python_interpreter' is not defined

(lldb) script print(123)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
error: python failed attempting to evaluate 'print(123)'