PyDev interactive console

前端 未结 3 1294
盖世英雄少女心
盖世英雄少女心 2021-01-12 05:59

When trying to open a interactive console on pydev I get an error:

Error initializing console.
Unexpected error connecting to console.
Fai

3条回答
  •  失恋的感觉
    2021-01-12 06:51

    (My solution is inspired by @Sala's answer. And I want to add more reasoning here.)

    The root cause for my problem is, pydev console is hosted on localhost/127.0.0.1 and I have configured a proxy in my system. So my eclipse tried to visit it via a proxy but my proxy cannot find it since it is not a valid public address.

    With @Sala's solution, one working configuration is like below. It essentially prevents eclipse from using the system (i.e. native) proxy.

    And you should notice that in the Proxy bypass area, the Provider for localhost and 127.0.0.1 is Manual. Just in consistent with the Proxy entries area.

    But what if you do want to use proxy? You need to bypass your native proxy for pydev console.

    You can do it in IE -> Internet Options -> Connection -> LAN Settings -> Advanced:

    Then, you don't nee to restart your eclipse, and you will see the Provider for the bypassed localhost and 127.0.0.1 has changed to Native now as shown below:

    Now the pydev console should be able to start.

提交回复
热议问题