python - 操作系统 10.8 升级后的 pydev 调试器 : unable to find real location for python 2. 7

标签 python python-2.7 aptana osx-mountain-lion

我刚刚升级到 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/

相关文章:

javascript - 将 Javascript 数组传递给 Flask

带有 Pandas : How does one recover the non intersecting parts of two dataframes? 的 Python 2.7

在 Package Explorer View 中单击方法后,Eclipse 现在仅在编辑器 Pane 中显示单个方法,如何重置为正常行为?

python importlib 在守护进程上下文中找不到模块

google-app-engine - GAE 搜索 API 排序

css - Aptana 3 能识别 CSS3 吗?

ftp - 如何从 Aptana Studio 3 连接到远程主机

python - numpy.save() 内的 Pickle TypeError

javascript - 使用 Shopify API 修改 theme.liquid

python - 如何使用python获取两个地理坐标之间的行驶距离?