pydev调试器:在OS 10.8升级后无法找到python 2.7的真实位置
我刚刚升级到OS X 10.8 Mountain Lion,并在理解pydev调试器在Aptana 3.0上的工作方式上遇到了麻烦.
I just upgraded to OS X 10.8 Mountain Lion and having troubles understanding how the pydev debugger should work on Aptana 3.0.
在Aptana的首选项中,我具有python解释器设置,其位置为"/usr/bin/python".它指出系统库来自"/System/Library/Frameworks/Python.framework/Versions/2.7/..."
In Aptana's preferences I have the python interpreter setup with a location of "/usr/bin/python". It states that the System libs are coming from "/System/Library/Frameworks/Python.framework/Versions/2.7/..."
当我在Aptana中启动我的Google App Engine项目的调试器时,控制台会记录:
When I start the debugger for my Google App Engine project within Aptana, the console logs:
pydev debugger: CRITICAL WARNING: This version of python seems to be incorrectly compiled (internal generated filenames are not absolute)
pydev debugger: The debugger may still function, but it will work slower and may miss breakpoints.
它还指出:
pydev debugger: Unable to find real location for: /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py
pydev debugger: Unable to find real location for: /Applications/Aptana Studio 3/plugins/org.python.pydev.debug_2.2.2.2011100512/pysrc/pydevd.py
pydev debugger: Unable to find real location for: /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py
...
它列出了"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/"文件夹中的所有.py文件.
And it lists out all of the .py files within the "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/" folder.
我的App Engine项目仍在加载,但我真的不明白为什么.我需要配置Aptana 3.0,在OSX 10.7和10.8之间进行了哪些更改,从而使此严重警告出现?
My app engine projects still loads, but I don't really understand why. What do I have to configure Aptana 3.0, and what's changed between my OSX 10.7 and 10.8 that made this critical warning come up?
我有一个非常相似的问题.事实证明,升级到Mountain Lion之后,所有的Python源文件都消失了.
I had a very similar problem. It turned out that after upgrading to Mountain Lion, all the Python source files disappeared.
解决方案是从Apple安装命令行工具".试试这个链接:
The solution was to install the "Command Line Tools" from Apple. Try this link:
https://developer.apple.com/downloads/index .action?= command%20line%20tools
或转到 https://developer.apple.com/opensource/并找到命令行工具"
Or go to https://developer.apple.com/opensource/ and find the "Command Line Tools"