Message27348
Today's update of my Cygwin installation caused a long
running Python/Tkinter application to fail to start.
Further investigation shows it hanging on a closed of a
popened file object. The problem seems associated with
importing Tkinter:
===========FILE START=====
#! /usr/bin/python
from Tkinter import *
from os import popen
print "Here"
#grab a calander in case we need it
calpipe = popen("/usr/bin/cal -3")
caltext = calpipe.read(1000)
print "Middle"
calpipe.close()
print "There"
print caltext
==========FILE END=====
prints "Here" and "Middle" and then hangs. Windows
task manager shows sh.exe and a copy of Python2.4.exe
sharing most of the CPU time. If I kill those two
processes, the program finishes its output normally.
If I comment out the from Tkinter line, everthing works
fine.
Cygcheck info attached
|
|
Date |
User |
Action |
Args |
2007-08-23 14:37:27 | admin | link | issue1413379 messages |
2007-08-23 14:37:27 | admin | create | |
|