Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyDev interactive console

Tags:

python

pydev

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

Error initializing console.
Unexpected error connecting to console.
Failed to recive suitable Hello response from pydevconsole. Last msg received: HTTP server returned unexpected status: Service Unavailable
Command Line used: D:\activestate\python.exe -u D:\Boulot\pydev\eclipse\plugins\org.python.pydev_3.3.3.201401272249\pysrc\pydevconsole.py 51203 51204 51203 51204

Eclipse:
Version: Kepler Service Release 2
Build id: 20140224-0627
Pydev:
PyDev for Eclipse   3.3.3.201401272249
Java:
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

Any idea how to make it work?

like image 860
user2759511 Avatar asked Mar 12 '14 14:03

user2759511


People also ask

What is PyDev used for?

PyDev is a third-party plug-in for Eclipse. It is an Integrated Development Environment (IDE) used for programming in Python supporting code refactoring, graphical debugging, code analysis among other features.

What is interactive console?

The interactive console allows you to execute some extra code, while debugging, when stopped at via a `breakpoint`. This is a really beneficial feature when you are debugging and suddenly want to change the value of variable, execute a sysout or some utility function.

How do I get the Python console?

The console appears as a tool window every time you choose the corresponding command on the Tools menu. You can assign a shortcut to open Python console: press Ctrl+Alt+S , navigate to Keymap, specify a shortcut for Main menu | Tools | Python or Debug Console.


2 Answers

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

like image 130
Sala Avatar answered Sep 29 '22 12:09

Sala


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.

like image 40
Sebastian Castañeda Avatar answered Sep 29 '22 13:09

Sebastian Castañeda