我刚刚升级到 OS X 10.8 Mountain Lion 并且无法理解 pydev 调试器应该如何在 Aptana 3.0 上工作。
在 Aptana 的首选项中,我将 python 解释器设置为“/usr/bin/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 文件。
我的 App Engine 项目仍在加载,但我不太明白为什么。我必须如何配置 Aptana 3.0,我的 OSX 10.7 和 10.8 之间有什么变化导致出现此严重警告?
最佳答案
我有一个非常相似的问题。原来升级到Mountain Lion后,所有的Python源文件都不见了。
解决方案是安装 Apple 的“命令行工具”。试试这个链接:
https://developer.apple.com/downloads/index.action?=command%20line%20tools
或转到 https://developer.apple.com/opensource/并找到“命令行工具”
关于python - 操作系统 10.8 升级后的 pydev 调试器 : unable to find real location for python 2. 7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11702139/