[lldb-dev] can't import lldb in python script
gclayton at apple.com
Fri Feb 21 10:56:36 PST 2014
You must set the PYTHONPATH environment variable to include the path to the "lldb.so". See the "Additional Notes" section on:
That explains how to set the environment variable.
On Feb 21, 2014, at 12:15 AM, shanghaojia92 at sohu.com wrote:
> dear sir,
> I am trying to run a python script.
> I caught a problem about the python script of lldb.
> the file is ScriptInterpreterPython.cpp
> the line is import copy,...lldb(lineNo:425).
> the problem is ImportError:No module named lldb
> I searched all the files named lldb.* under llvm/tools/lldb/ and imported the file one by one.
> there is still the problem.
> so I don't know how to resolve this problem.
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
More information about the lldb-dev