Menu

#1436 Python console hangs

open
nobody
None
5
2012-01-06
2011-12-10
bowie
No

Hello,

using the python comsole leads to a hangig eclispe IDE.
Especially if you try to use the code completion the system gets very slow and in most cases the only way out is to stop eclipse.

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2011-12-13

    You mean using the console in a debug session (as in http://pydev.org/manual_adv_debug_console.html ) or using the console with an interpreter ( as in http://pydev.org/manual_adv_interactive_console.html )?

    You mean it halts forever or is it just slow?

    The 'usual' cause would usually be some problem connecting the socket to the process... it may be a problem resolving localhost or some firewall slowing things down or some network misconfiguration...

    What's your platform?

    If on windows, do you have some edition in your hosts file ( at C:\Windows\System32\drivers\etc )?

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-12-13
    • status: open --> pending
     
  • bowie

    bowie - 2012-01-06
    • status: pending --> open
     
  • bowie

    bowie - 2012-01-06

    Hello,

    sorry for the late reply.
    I use Windosw 7.
    I checked again.

    Sequence:
    PyDev Console
    Console for active editor (not in debug mode)
    Python 2.7
    >>>raw_data='mama'
    >>>raw_data.
    here I press tab for code completion and it takes about 30s-60s til at least the
    cursor is blinking again.
    But there is nothing displayed in a sense of a code completion.
    Sporadically Eclipse does not come back at all and I have to close it.

    I have checked my hosts file.
    It looks like that

    # Copyright (c) 1993-2009 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host

    # localhost name resolution is handled within DNS itself.
    # 127.0.0.1 localhost
    # ::1 localhost