Eclipse PyDev is throwing false errors(Eclipse PyDev 抛出错误错误)
问题描述
我昨天更新了 PyDev (Eclipse),现在它告诉我 None、name 和其他保留字/内置函数无效,但脚本运行良好.我在这个论坛上读到这个问题涉及错误地导入内置插件.我曾尝试更改解释器并重新添加它,但没有运气.有人可以帮帮我吗?
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?
错误:
未定义变量main未定义变量 无未定义变量 int未定义变量评估
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 Shell 时仍在寻找 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 抛出错误错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Eclipse PyDev 抛出错误错误
基础教程推荐
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01
- 降序排序:Java Map 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01