pydev 调试器:OS 10.8 升级后无法找到 python 2.7 的真实位置 [英] pydev debugger: unable to find real location for python 2.7 after OS 10.8 upgrade

查看:28
本文介绍了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.

我的应用引擎项目仍在加载,但我真的不明白为什么.我需要什么来配置 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"

这篇关于pydev 调试器:OS 10.8 升级后无法找到 python 2.7 的真实位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆