<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">This looks like an issue with your “custom” (i.e. non OS-provided) version of Python<div>Does this work if you redirect to the system-wide Python.framework?</div><div>Most probably some of your variables require a Python data formatter, and this is causing the script interpreter to start, and that in turn causes this issue</div><div>A workaround is to type</div><div><br></div><div>(lldb) type category disable *</div><div><br></div><div>but this will disable all data formatters, and might not be what you want given that you are extensively using the STL</div><div><br></div><div>My first bet would be to try the same thing with the Python built into OSX and then take it from there</div><div><br><div><div><div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="font-size: medium; orphans: 2; widows: 2; border-collapse: separate; border-spacing: 0px;"><span style="font-size: 12px; orphans: auto; widows: auto;">Enrico Granata</span><br style="font-size: 12px; orphans: auto; widows: auto;"><span style="font-size: 12px; orphans: auto; widows: auto;">✉ egranata@</span><font color="#ff2600" style="font-size: 12px; orphans: auto; widows: auto;"></font><span style="font-size: 12px; orphans: auto; widows: auto;">.com</span><br style="font-size: 12px; orphans: auto; widows: auto;"><span style="font-size: 12px; orphans: auto; widows: auto;">✆ 27683</span></div></div>
</div>
<br><div><div>On May 8, 2013, at 9:18 AM, Richard Catlin <<a href="mailto:richard.m.catlin@gmail.com">richard.m.catlin@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr">I just upgraded to Mountain Lion. I am getting this error when I try to debug using "frame variable". I use brew to install python. Let me know if you need more information. This was working fine before the upgrade.<div><br></div><div>Thank you.</div><div>Richard Catlin<br><div><div><br></div><div><div>SDGL10fd4f1cb:mybuilddirdebug2 rcatlin1$ lldb bin/TPL</div><div>Current executable set to 'bin/TPL' (x86_64).</div><div>(lldb) breakpoint set --line 1877</div><div>Breakpoint 1: where = TPL`main + 2497 at tpl.cpp:1877, address = 0x000000010000ab11</div><div>(lldb) process launch </div><div>Process 66661 launched: '/Users/rcatlin1/lldb/mybuilddirdebug2/bin/TPL' (x86_64)</div></div><div><div>Process 66661 stopped</div><div>* thread #1: tid = 0x1c03, 0x000000010000ab11 TPL`main + 2497 at tpl.cpp:1877, stop reason = breakpoint 1.1</div><div> frame #0: 0x000000010000ab11 TPL`main + 2497 at tpl.cpp:1877</div><div> 1874</div><div> 1875 // Call block_dep function in libBLOCKDEP</div><div> 1876 block_dep bd;</div><div>-> 1877 std::list<std::string> order2 = bd.execute(map1, edges);</div><div> 1878 std::reverse(order2.begin(), order2.end());</div><div> 1879 std::list<std::string> order;</div><div> 1880 for(std::list<std::string>::iterator iter(order2.begin()); iter != order2.end(); ++iter) {</div></div><div>(lldb) frame variable <br></div><div><div>Traceback (most recent call last):</div><div> File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 563, in <module></div><div> main()</div><div> File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 545, in main</div><div> known_paths = addusersitepackages(known_paths)</div><div> File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 278, in addusersitepackages</div><div> user_site = getusersitepackages()</div><div> File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 253, in getusersitepackages</div><div> user_base = getuserbase() # this will also set USER_BASE</div><div> File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 243, in getuserbase</div><div> USER_BASE = get_config_var('userbase')</div><div> File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py", line 472, in get_config_var</div><div> return get_config_vars().get(name)</div><div> File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py", line 405, in get_config_vars</div><div> import re</div><div> File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", line 105, in <module></div><div> import sre_compile</div><div> File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_compile.py", line 14, in <module></div><div> import sre_parse</div><div> File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_parse.py", line 17, in <module></div><div> from sre_constants import *</div><div> File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_constants.py", line 18, in <module></div><div> from _sre import MAXREPEAT</div><div>ImportError: cannot import name MAXREPEAT</div></div><div><br></div></div></div></div>_______________________________________________<br>lldb-dev mailing list<br><a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a></div></blockquote></div><br></div></div></div></body></html>