No connection to IDLE subprocess

I am new to python programming and want to try editing scripts in IDLE instead of OSX command line. However, when I try to start it, it gives me the error "Idle Subprocess has not established a connection. Either Idle cannot start the subprocess, or the personal firewall software blocks the connection." I don't have a firewall configured, so what could be the problem?

+3
source share
2 answers

You can try running IDLE with the "-n" option. From IDLE help:

Running without a subprocess:

    If IDLE is started with the -n command line switch it will run in a
    single process and will not create the subprocess which runs the RPC
    Python execution server. This can be useful if Python cannot create
    the subprocess or the RPC socket interface on your platform. However,
    in this mode user code is not isolated from IDLE itself. Also, the
    environment is not restarted when Run / Run Module (F5) is selected. If
    your code has been modified, you must reload () the affected modules and
    re-import any specific items (eg from foo import baz) if the changes
    are to take effect. For these reasons, it is preferable to run IDLE
    with the default subprocess if at all possible.
+2
source

, Python OS X , IDLE, 64- python.org Python 2.7, . , , 2.7 , 2.7 32- 2.7 "10.3 " .

UPDATE: 64-/32- python.org Python 2.7. Python 2.7; Python 2.7.2 . Tcl/Tk 8.5, Apple Mac OS X 10.6. IDLE Tkinter 64- Python OS X, Tcl/Tk 8.5 ActiveState. , .

+2

Source: https://habr.com/ru/post/1755237/


All Articles