Failed to load IDLE (Python GUI)

I installed Python 2.7 (Windwos 7). However, I cannot load the GUI. I do not get an answer when I try to open. I installed it again, but again the same problem. What could be the solution?

+6
source share
5 answers

There can be many reasons, and it is difficult to diagnose and recommend a solution without studying the actual system and process. If you are really interested in this, I can suggest how you can debug these problems.

  • Download Process Monitor
  • Bring the process Monitor and filter the entire process except pythonw. PythonW is a process that starts when IDLE starts.
  • Now start monitoring in the process monitor.
  • Connect IDLE and wait until the process monitoring log is stable.
  • Now study the LOG to find out what could go wrong.
  • If you need more help, just post a magazine here and we can try to figure out what is wrong with your system.

To simulate your problem, I renamed my idle.pyw to idle_1.pyw and tried to call IDLE. He did not pass without any message. Then I picked up the Monitor process and filtered out the pythonw process and tried to run IDLE again. I found a message in the log that was consistent with the problem.

enter image description here

As you can see, I highlighted an error that shows which error is yes. Try a process handler, and this will probably muffle the problem if there is nothing for you :-) Remember that just do a ThreadExit search in the log, the error should be slightly higher than the operation. In case you find it difficult to understand the problem, just post a scroll next to ThreadExit , and we can help you.


Update from the provided image enter image description here

As you can see in the log, FSECURE.DLL has suddenly shut down the thread. FSECURE (antivirus / firewall) does not believe that this process has legal rights to perform any operation. If you need to know more details about which operation was blocked, you can get it from the Fsecure log. In most cases, as you did, starting as an administrator will help the process gain the right not to block Fsecure.

I have no experience with Fsecure, but most antiviruses have a Whitelist entry where, if you add a process, this will not stop it from blocking it.

+3
source

If you have python in the default installation path, try in the windows shell:

C:\Python27\pythonw C:\Python27\Lib\idlelib\idle.pyw 

or change the path accordingly. This should work even if you have other conflicting pythons in your installation or paths not set.

  • If downtime works, the best solution is to change idle.bat (in idlelib) with the above explicit paths and create direct desktop access for this new .bat.
  • If downtime does not come, try
    • inactivity
    • starting idle after closing windows firewall
+4
source

I had the same problem after installing python 3.3.2 on my Windows 7 Professional x64.

During installation, I had to grant administrator rights due to the inclusion of UAC. Ever trying to run IDLE, nothing will happen - unless I started it as an administrator.

I checked the installation, but could not determine the option for installing without an administrator, as described in http://bit.ly/15WBouF .

Inspired by Joaquin's comment above, I deleted the entire folder named .idlerc located in my user directory. Et voila - IDLE works like a charm!

Although the root of the problem is still unknown to me, this solved my problem.

0
source

I had a similar problem, IDLE would remain silent and crash after several attempts.

Then I tried to run the code from the command line: → python program.py on the command line says that I have a problem with global variables. You must declare a global variable at the beginning of each function before reaching it:

 var1 def func(): global var1 ...code.. ##end of func() 

IDLE will not show this problem. This is a handy tool, but sometimes leaves you speechless.

0
source

In keeping with simplicity, I can suggest uninstalling Python 2.7 and downloading the stable version without known IDLE issues. This will be Python 3.3.3. Click here -> Python 3.3.3 Python 3.4.1. is problematic.

  • Choose Start> Computer> Right-click Computer> Select Properties.
  • Select Environmental Variables.
  • Select New or Change Variables. The path to python.exe. C: \ Python33 .
  • Modify or introduce new variables with naming conventions. This should fix any problems with IDLE. However, with regard to the GUI - I can offer the following: 5) At the command prompt, type: cd C: \ Python33 . That should take care of this. Hope this helps.
-1
source

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


All Articles