2017-09-01 232 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應該這樣做。