Search code examples
pythonipythonpydev

Anaconda Python and PyDev (in Aptana Studio)


I have just updated my installation of Python 3.4 using Anaconda. I am now unable to open a PyDev console in Aptana Studio using this version of Python, although I can use a different version of Python.

The error message I get is this:

Error initializing console.
Unexpected error connecting to console.
Failed to recive suitable Hello response from pydevconsole. Last msg received: Console already exited with value: 1 while waiting for an answer.
Error stream: C:\Users\z5044992\AppData\Local\Continuum\Anaconda3\lib\site-packages\IPython\utils\traitlets.py:5: UserWarning: IPython.utils.traitlets has moved to a top-level traitlets package.
  warn("IPython.utils.traitlets has moved to a top-level traitlets package.")
Error starting server with host: 127.0.0.1, port: 52021, client_port: 52022
Traceback (most recent call last):
  File "C:\Users\z5044992\AppData\Roaming\Appcelerator\Aptana Studio\plugins\org.python.pydev_3.0.0.1388187472\pysrc\pydevconsole.py", line 222, in <module>
    StartServer(pydev_localhost.get_localhost(), int(port), int(client_port))
  File "C:\Users\z5044992\AppData\Roaming\Appcelerator\Aptana Studio\plugins\org.python.pydev_3.0.0.1388187472\pysrc\pydevconsole.py", line 191, in StartServer
    interpreter = InterpreterInterface(host, client_port, server)
  File "C:\Users\z5044992\AppData\Roaming\Appcelerator\Aptana Studio\plugins\org.python.pydev_3.0.0.1388187472\pysrc\pydev_ipython_console.py", line 30, in __init__
    self.interpreter = PyDevFrontEnd(pydev_host=host, pydev_client_port=client_port)
  File "C:\Users\z5044992\AppData\Roaming\Appcelerator\Aptana Studio\plugins\org.python.pydev_3.0.0.1388187472\pysrc\pydev_ipython_console_011.py", line 299, in __init__
    self.ipython = PyDevTerminalInteractiveShell.instance()
  File "C:\Users\z5044992\AppData\Local\Continuum\Anaconda3\lib\site-packages\traitlets\config\configurable.py", line 412, in instance
    inst = cls(*args, **kwargs)
  File "C:\Users\z5044992\AppData\Local\Continuum\Anaconda3\lib\site-packages\IPython\terminal\interactiveshell.py", line 396, in __init__
    super(TerminalInteractiveShell, self).__init__(*args, **kwargs)
  File "C:\Users\z5044992\AppData\Local\Continuum\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 495, in __init__
    self.init_completer()
  File "C:\Users\z5044992\AppData\Roaming\Appcelerator\Aptana Studio\plugins\org.python.pydev_3.0.0.1388187472\pysrc\pydev_ipython_console_011.py", line 220, in init_completer
    self.Completer = self._new_completer_200()
  File "C:\Users\z5044992\AppData\Roaming\Appcelerator\Aptana Studio\plugins\org.python.pydev_3.0.0.1388187472\pysrc\pydev_ipython_console_011.py", line 192, in _new_completer_200
    use_readline=self.has_readline,
AttributeError: 'PyDevTerminalInteractiveShell' object has no attribute 'has_readline'

I have been following other threads and getting contradictory information about 32 and 64 bit compatibility. I am running 64-bit Win7. I now have both 64 bit and 32 bit versions of Java installed. Aptana only exists as 32 bit for Windows, and I think it uses the 32 bitJava, as Aptana would not initialise when I only had 64 bit Java installed. I have tried both 32-bit and 64-bit versions of Anaconda, with the same result. I have tried updating ipython. I have also tried changing the proxy settings to manual and selecting 127.0.0.1 and local host. I have run out of ideas!


Solution

  • Uninstall Aptana. Install PyCharm. Simples.