After updating to Lion a few months ago, I noticed that any Python-based apps/tools stopped working. After some research, I solved the problem by re-installing the official Python installer, and correcting my PATH variable.
Now though, I'm not so sure everything is working the way it should, because when I try to use Sublime Text 2, I get an error report dialog with:
....
Dyld Error Message:
Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.6/Python
Referenced from: /Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2
Reason: image not found
....
Upon inspection, my /System/Library/Frameworks/Python.framework/Versions/2.6
folder contains:
2.6/
Extras/
Headers/ --(symlink)--> include
include/
lib/
Not Python
like expected.
Curious, I did a little digging, and find that I have
/Library/Frameworks/Python.framework
/System/Library/Frameworks/Python.framework
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Python.framework
/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Python.framework
/Developer-3.2.6/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Python.framework
/Developer-3.2.6/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Python.framework
Along with several application-specific distributions, but I'm not concerned about those.
Am I supposed to have Python frameworks in both /Library/Frameworks
and /System/Library/Frameworks
? What's the difference between the two?
At this point, I feel like things would just be cleaner to start from scratch with Python, but how can I do that without screwing up my existing tools/apps? Would I need to delete my Python frameworks? Should I use the official installer, or perhaps homebrew's python
package?