Eclipse上的PyDev Jython Interactive Console无法创建 [英] PyDev Jython Interactive Console on Eclipse fails to be created

查看:222
本文介绍了Eclipse上的PyDev Jython Interactive Console无法创建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在Jython手册中的使用Jython中,Jython交互式控制台无法创建? href =http://www.jython.org/jythonbook/en/1.0/JythonIDE.html> http://www.jython.org/jythonbook/en/1.0/JythonIDE.html )我有在测试部分中的清单11-10之前,具体来说:


首先,单击控制台工具栏上最右边的按钮(您将
识别为在左上角的
角上加上一个加号,当您将鼠标放在
上时,它会显示Open Console提示)。从菜单中选择PyDev控制台。在下一个对话框中,回答
Jython控制台。这样做后,您将获得嵌入IDE的交互式
解释器


我选择Open Console - >PyDev控制台 - >Jython控制台 - >确定。出现创建交互式控制台对话框,然后出现:


  1. 获取约1/10的完成和停止(我将其过夜,

  2. 完成并失败并显示错误消息:




初始化控制台时出错。
连接到控制台的意外错误。
无法从pydevconsole接收适当的Hello响应。
收到的最后一个msg:HTTP服务器返回意外状态:null


我的设置:




  • 操作系统:Windows XP

  • Eclipse:Kepler Service Release 1

  • Jython:2.5。 2

  • PyDev:3.0.0.201311051910


解决方案

由于配置不正确的代理设置,出现此错误,具体来说代理例外不包括localhost和127.0.0.1。这导致了Eclipse通过本地主机通过代理转发的请求,代理和Eclipse都不满意。



解决方案(在Windows XP中)是打开Internet选项 - >连接(选项卡) - > LAN设置 - >高级,然后将 localhost; 127.0.0.1; 添加到例外列表的开头。


Why might my Jython Interactive Console fail to be created when called in Eclipse?

Following the 'Using Jython in an IDE' instructions in the Jython manual (http://www.jython.org/jythonbook/en/1.0/JythonIDE.html) I have reached just before 'Listing 11-10' in the Testing section, specifically:

First, click the right-most button on the console’s toolbar (you will recognize it as the one with a plus sign on its upper left-hand corner, which has the Open Console tip when you pass the mouse over it). From the menu, select PyDev Console. To the next dialog, answer Jython Console. After doing this you will get an interactive interpreter embedded on the IDE

I select 'Open Console' -> 'PyDev Console' -> 'Jython Console' -> 'OK'. The 'Create Interactive Console' dialog appears and then either:

  1. Gets about 1/10th complete and stops (I left it overnight and it hadn't progressed in the morning)
  2. Finishes and fails with the error message:

Error initializing console. Unexpected error connecting to console. Failed to recive suitable Hello response from pydevconsole. Last msg received: HTTP server returned unexpected status: null

My setup:

  • Operating System: Windows XP
  • Eclipse: Kepler Service Release 1
  • Jython: 2.5.2
  • PyDev: 3.0.0.201311051910

解决方案

This error occured due to badly configured proxy settings, specifically the proxy exceptions did not include 'localhost' and '127.0.0.1'. This resulted in requests from Eclipse to itself through localhost being diverted through the proxy, which neither the proxy nor Eclipse were happy with.

The solution (in Windows XP) was to open Internet Options -> Connections (tab) -> LAN Settings -> Advanced, and then add localhost;127.0.0.1; to the beginning of the Exceptions list.

这篇关于Eclipse上的PyDev Jython Interactive Console无法创建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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