I searched a lot about the VMware issue with python, but I did not find any information about my problem. My problem is that python programs are frozen, the process is still running, but it does not use the processor, and the memory usage does not change. The program does not return any exceptions or anything else ... it just freezes and never returns to execution. It seems like this is happening randomly, and that is not a problem with the lack of memory for my machine, because at the same time I can execute it in another session.
My machine is a virtual machine with: Windows Server 2008 64-bit, VMware Tools 9.4.5
I tried python: 2.7, 3.3 and 3.4
my example script: (but not only this freezing script)
print("START")
for i in range(0, 1000):
print("step: " + str(i))
file = open("./test_file.csv", "r")
for line in file.readlines():
pass
file.close()
print("END")
Output Example:
START
step 0
step 1
step 2
step 3
step 4
, ( 4, 15, 34...) , , .
, , 1,2 ... . , 0% .
script IDLE , , .
, .
, .