snare / voltron

A hacky debugger UI for hackers
MIT License
6.18k stars 414 forks source link

Can't run on OSX 10.9 (ImportError: No module named lldb) #41

Closed vstepanyuk closed 11 years ago

vstepanyuk commented 11 years ago

[vitaliy:~] $ voltron Traceback (most recent call last): File "/usr/local/bin/voltron", line 9, in load_entry_point('voltron==0.1', 'console_scripts', 'voltron')() File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 357, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 2394, in load_entry_point return ep.load() File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 2108, in load entry = import(self.module_name, globals(),globals(), ['name']) File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/voltron-0.1-py2.7.egg/voltron/init.py", line 8, in from .main import File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/voltron-0.1-py2.7.egg/voltron/main.py", line 15, in from .console import File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/voltron-0.1-py2.7.egg/voltron/console.py", line 6, in import lldb ImportError: No module named lldb

snare commented 11 years ago

I forgot to add this to the README - you'll need to add the following to your $PYTHONPATH to use the console:

/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python

There's another issue raised that will address this if you're not using the console, but putting lldb in your PYTHONPATH should fix it.

vstepanyuk commented 11 years ago

Thank you. All works perfect now.

revolter commented 7 years ago

Add export PYTHONPATH=$PYTHONPATH:/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python in your .bashrc/.zshrc/... for newbies like me.