[Pythonmac-SIG] possible interaction between python

Boyd Collier bcollier at mail.sdsu.edu
Mon Apr 8 21:06:47 CEST 2013


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


More information about the Pythonmac-SIG mailing list