That is bizarre; Python should not be touching /bin/ls at all (if you're at all familiar with POSIX, 'ls' is the "list contents of directory" command). I'd be more inclined to suspect that your XCode has been corrupted somehow; perhaps reinstalling that might help. I wouldn't expect LLDB to depend on Python either, but who knows.
I don't think your installation of Python 3.3 is at fault here, since as you noted the error is dealing with Python 2.7. I believe that's simply the OS built-in Python. You might try opening up a commandline in Terminal and running this: /Library/Frameworks/Python.framework/Versions/2.7/bin/python which ought to run the 2.7 Python REPL (read-eval-print loop, a simple program that lets you test out Python code). If that fails, then your OS built-in Python has probably been damaged. Hope that helps. -Chris On Mon, Apr 8, 2013 at 12:06 PM, Boyd Collier <bcoll...@mail.sdsu.edu>wrote: > Hello All, > > In late February, I thought I'd give python a try, so I took steps to run > it on my Mac. Unfortunately, I didn't keep a good record of what those > steps were, but the installation seemed to be successful, in that I was > able to run a few simple python programs. > > However, I now suspect that installing python may have messed up something > needed to work with my objective-c programs with Xcode. The symptom of a > problem in Xcode is that when I set an Xcode project to use LLDB as the > debugger (this is the default debugger), Xcode immediately crashes when the > run button in the project window is hit. However, projects run properly > when I change the debugger to be used to GDB. At least initially, there > was no indication that this problem had anything to do with python. I > filed an Xcode bug report with Apple and have been following the steps > suggested by Apple engineers to try to track down the problem. This > morning, they asked me to run the command > /Applications/Xcode.app/Contents/Developer/usr/bin/lldb /bin/ls from the > terminal, which I did. Here is the result: > > > Macintosh:~ bcollier$ > /Applications/Xcode.app/Contents/Developer/usr/bin/lldb /bin/ls > > dyld: Library not loaded: > /System/Library/Frameworks/Python.framework/Versions/2.7/Python > > Referenced from: > /Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/LLDB.framework/LLDB > > Reason: image not found > > Trace/BPT trap: 5 > > My (perhaps erroneous) recollection is that I installed python 3.3, and I > see that what is not being loaded is 2.7. I've sent this result to Apple, > but perhaps those of you who have been working with python on the Mac and > using Xcode might have experienced a similar problem and might be able to > suggest what is going on. I'm running OSX 10.7.5 and Xcode 4.6 (but first > had the problem with Xcode 4.2). > > Thanks very much, > Boyd Collier > Prof. of Biology, Emeritus > San Diego State University > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG >
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG