Eclipse PyDev正在抛出错误的错误 [英] Eclipse PyDev is throwing false errors

查看:144
本文介绍了Eclipse PyDev正在抛出错误的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我昨天更新了PyDev(Eclipse),现在告诉我,无,名称和其他保留字/内置函数无效,但脚本运行正常。我在这个论坛上阅读过,问题是导入内置的错误。我已经尝试改变口译和重新添加,但没有运气。有人可以帮助我吗?

I updated PyDev (Eclipse) yesterday and now it is telling me that None, name and other reserved words/builtin functions are invalid, but the script runs just fine. I have read on this forum that the problem deals with incorrectly importing the built-ins. I have tried changing the interpreter and re-adding it but no luck. Can somebody help me please?

错误:

未定义的变量主要
未定义的变量无
未定义的变量int
未定义的变量eval

Undefined variable main Undefined variable None Undefined variable int Undefined variable eval

我正在运行eclipse Juno和PyDev 2.7.4。另外,我注意到错误只出现在PyDev代码分析结束之后。

I am running eclipse Juno and PyDev 2.7.4. also, I notice that the errors only appear after the PyDev code analysis ends.

推荐答案

嗯,没有人想出一些想法我发现自己,所以我发布我如何解决这里;也许这会帮助某人:

Well, I see nobody has come up with some idea. I found out by myself so I'm posting how I solved it here; maybe it'll help somebody:

问题是我最近更改了本地机器的名字,但PyDev在尝试连接到Python时仍在寻找localhost贝壳。我刚刚更新了包含主机名的操作系统中的文件,瞧(自动向导因为某些原因没有更新所有文件,所以我必须手动进行)。

The problem was that I had recently changed my local machine's name, but PyDev was still looking for localhost when it tried to connect to the Python Shell. I just updated the files in my operating system containing the hostname, and voila (the automatic wizard did not update all the files for some reason, so I had to do it manually).

这篇关于Eclipse PyDev正在抛出错误的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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