<div dir="ltr">Buona sera,<div>volevo chiedere un consiglio per un problema che mi si è presentato oggi quando ho provato ad utilizzare il programma di Python.</div><div>Ho lanciato "IDLE" ed il programma, anziché aprirsi, ha mostrato il seguente messaggio:</div><div><br></div><div>IDLE's subprocess didn't make connection. See the 'Startup failure' section of the IDLE doc, online at</div><div><a href="https://docs.python.org/3/library/idle.html#startup-failure">https://docs.python.org/3/library/idle.html#startup-failure</a><br></div><div><br></div><div>Ho eliminato l'applicazione e ne ho scaricata una nuova, "Python 3.8.1. - macosx10.9", ma niente, il problema si è ripresentato, allora ho dato un'occhiata alla pagina indicatami dal messaggio e ne ho letto il testo, purtroppo non mi è stato utile. Potreste darmi un consiglio su come posso ricominciare ad utilizzare Python?</div><div>Grazie,</div><div>Francy</div><div><br></div><div><h3 style="font-family:"Lucida Grande",Arial,sans-serif;color:rgb(26,26,26);border:0px;margin:0px;padding:0.3em 0px"><font size="1" style="">Startup failure<span style="font-weight:normal"><a class="gmail-headerlink" href="https://docs.python.org/3/library/idle.html#startup-failure" title="Permalink to this headline" style="color:rgb(99,99,187);text-decoration-line:none;padding:0px 4px"></a></span></font></h3><p style="text-align:justify;line-height:22.4px;font-family:"Lucida Grande",Arial,sans-serif"><font size="1">IDLE uses a socket to communicate between the IDLE GUI process and the user code execution process. A connection must be established whenever the Shell starts or restarts. (The latter is indicated by a divider line that says ‘RESTART’). If the user process fails to connect to the GUI process, it displays a <code class="gmail-docutils gmail-literal gmail-notranslate" style="background-color:rgb(236,240,243);padding:0px 1px;font-family:monospace,sans-serif;border-radius:3px"><span class="gmail-pre" style="hyphens: none;">Tk</span></code> error box with a ‘cannot connect’ message that directs the user here. It then exits.</font></p><p style="text-align:justify;line-height:22.4px;font-family:"Lucida Grande",Arial,sans-serif"><font size="1">A common cause of failure is a user-written file with the same name as a standard library module, such as <em>random.py</em> and <em>tkinter.py</em>. When such a file is located in the same directory as a file that is about to be run, IDLE cannot import the stdlib file. The current fix is to rename the user file.</font></p><p style="text-align:justify;line-height:22.4px;font-family:"Lucida Grande",Arial,sans-serif"><font size="1">Though less common than in the past, an antivirus or firewall program may stop the connection. If the program cannot be taught to allow the connection, then it must be turned off for IDLE to work. It is safe to allow this internal connection because no data is visible on external ports. A similar problem is a network mis-configuration that blocks connections.</font></p><p style="text-align:justify;line-height:22.4px;font-family:"Lucida Grande",Arial,sans-serif"><font size="1">Python installation issues occasionally stop IDLE: multiple versions can clash, or a single installation might need admin access. If one undo the clash, or cannot or does not want to run as admin, it might be easiest to completely remove Python and start over.</font></p><p style="text-align:justify;line-height:22.4px;font-family:"Lucida Grande",Arial,sans-serif"><font size="1">A zombie pythonw.exe process could be a problem. On Windows, use Task Manager to detect and stop one. Sometimes a restart initiated by a program crash or Keyboard Interrupt (control-C) may fail to connect. Dismissing the error box or Restart Shell on the Shell menu may fix a temporary problem.</font></p><p style="text-align:justify;line-height:22.4px;font-family:"Lucida Grande",Arial,sans-serif"><font size="1">When IDLE first starts, it attempts to read user configuration files in <code class="gmail-docutils gmail-literal gmail-notranslate" style="background-color:rgb(236,240,243);padding:0px 1px;font-family:monospace,sans-serif;border-radius:3px"><span class="gmail-pre" style="hyphens: none;">~/.idlerc/</span></code> (~ is one’s home directory). If there is a problem, an error message should be displayed. Leaving aside random disk glitches, this can be prevented by never editing the files by hand, using the configuration dialog, under Options, instead Options. Once it happens, the solution may be to delete one or more of the configuration files.</font></p><p style="text-align:justify;line-height:22.4px;font-family:"Lucida Grande",Arial,sans-serif"><font size="1">If IDLE quits with no message, and it was not started from a console, try starting from a console (<code class="gmail-docutils gmail-literal gmail-notranslate" style="background-color:rgb(236,240,243);padding:0px 1px;font-family:monospace,sans-serif;border-radius:3px"><span class="gmail-pre" style="hyphens: none;">python</span> <span class="gmail-pre" style="hyphens: none;">-m</span> <span class="gmail-pre" style="hyphens: none;">idlelib</span></code>) and see if a message appears.</font></p></div></div>