2017-09-01 309 views
0

我试图在lldb中运行一些python。当我执行的脚本命令,我收到以下错误:无法在lldb中运行python脚本

(lldb) script 
Traceback (most recent call last): 
    File "<string>", line 1, in <module> 
ImportError: No module named lldb.embedded_interpreter 
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版本4.0.1和Python版本2.7.13在Fedora 26

+0

这就是问题所在。谢谢。如果您想发布答案,我会将其标记为解决方案。 – brianjob

+0

有时候这很容易:) – mattdm

回答

0

您需要安装此python-lldb上班。 sudo dnf install python-lldb应该这样做。