Error: IDLE stops working after closed

1

I have a lab with 35 machines running Windows 8.1 Pro. After installing Python (Version 2.7.9 64bits) on all machines, I run into the following problems:

  • Some machines install normally, but IDLE can not be opened. When you click on the shortcut, IDLE simply does not open. No error message is displayed.

  • Other machines work properly, I can open IDLE, enter code, execute. However, when I close the tool and try to open it again, I return to the problem mentioned above.

  • When IDLE crashes (I can not open any more), it also stops working via the command prompt. When I try to run some code via command prompt, I get the following message:

    Traceback (most recente call last):
    File "C:\Python27\lib\site.py", line 62, in <module>
      import os
    File "C:\Python27\lib\os.py", line 400, in <module>
      import UserDict
    File "C:\Python27\lib\UserDict.py", line 1
      Version" valueType="REG_SZ" value="1.0" operationHint="replace" owner="true" />
                         ^
    SyntaxError: invalid syntax
    

Any way to solve this? Is there a known compatibility issue with Windows 8.1?

    
asked by anonymous 16.03.2015 / 14:01

1 answer

2

This error is the syntax of the file UserDict.py in the lib directory inside the Python installation. It is clear that it is an XML file and not the original source code of this module in Python. Try changing the content of this file for the original content. In Python's own documentation you can check it out quickly.

Link: link

It is a fact that someone or something has changed the contents of the file. And probably many others.

I recommend watching the processes on the machine or what happens after the installation, until the files are corrupted.

    
28.05.2015 / 00:25