I've configured my Jython Path in the eclipse preferences, but when I try to open a Jython Console, I have this message:
>>>import sys; print '%s %s' % (sys.executable or sys.platform, sys.version)
Failed to read servers response: Connection refused
And if I try try to enter something, this is the result:
Console already exited with value: 255 while waiting for an answer.
I don't understand what happen.
Could someone help me?
Thanks in advance
That bug is reported at: https://sourceforge.net/tracker/index.php?func=detail&aid=1984150&group_id=85796&atid=577329 (the problem seems that the jython server takes too long for starting and the timeout can't be adjusted for that... note that I still haven't been able to fix it...)
But is this bug only under Ubuntu?
I tried on Windows and It's OK...
It happens on windows too (but in your particular case, it seems that in windows the timeout set is enough).
Do you when the 1.3.18 will be released?
It was just released.
I just installed the new release 1.3.18 of Pydev but it appear that the bug is still active.
I have Ubuntu 7.10, with java 1.5.0_13 and try with Jython 2.2.1.
I don't know how to reopen the bug so can someone reopen it.
Have you tried raising the 'maximum number of connection attempts' in window > preferences > pydev > interactive console?
Also, is there some firewall active (it could be blocking communication to the shell).
Yes I have tried without success. There is no firewall installed on my computer. I am wondering if it is due to the default Ubuntu configuration. I was said that most port where closed by default. If you know which port Jython use to connect to the shell, maybe I could check it out.
Sorry, I said "Jython" but wanted to say Pydev.
I found something that might be interesting for you.
I launch my Eclipse and open a Python console. So far there is no problem at all. The Python console is connected and works fine. And if I open a Jython console after that, of course the console can't connect, but the Python console doesn't reconnect !
I hope it will give you some clue to solve the bug.