PyDev interactive console

前端 未结 3 1290
盖世英雄少女心
盖世英雄少女心 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:49

    As documented here, the solution is to update IPython

    workon project
    pip install -U ipython
    

    I was having the same problem and fixed it with this.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-01-12 06:52

    Try following:

    In Eclipse under Window/Preferences/General/Network Connections:

    --> set Active Provider: Manual

    --> check in the box "Proxy bypass" if localhost and 127.0.0.1 are checked

    Click Apply and try to open again.

    That worked for me

    0 讨论(0)
提交回复
热议问题