10

我刚刚升级到 OS X 10.8 Mountain Lion,无法理解 pydev 调试器在 Aptana 3.0 上的工作方式。

在 Aptana 的首选项中,我设置了位置为“/usr/bin/python”的 python 解释器。它指出系统库来自“/System/Library/Frameworks/Python.framework/Versions/2.7/...”

当我在 Aptana 中为我的 Google App Engine 项目启动调试器时,控制台会记录:

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 文件。

我的应用引擎项目仍在加载,但我真的不明白为什么。我必须如何配置 Aptana 3.0,以及我的 OSX 10.7 和 10.8 之间发生了哪些变化导致这个严重警告出现?

4

1 回答 1

12

我有一个非常相似的问题。原来,升级到Mountain Lion之后,所有的Python源文件都消失了。

解决方案是从 Apple 安装“命令行工具”。试试这个链接:

https://developer.apple.com/downloads/index.action?=command%20line%20tools

或者去https://developer.apple.com/opensource/找到“命令行工具”

于 2012-08-01T06:17:18.873 回答