Craig McQueen wrote:
Craig McQueen wrote:
Hello,
I've got a Python program that does client COM programming on
Windows, for Excel and National Instruments TestStand.
When I convert it to a Windows EXE file with cx_Freeze, at exit, I
get a message like this:
Exception KeyError: KeyError(2768,) in <module 'threading' from
'<frozen>'> ignored
It seems not to be an exception; rather some sort of debug message
that I can't get rid of--a little unusual.
Any ideas why this might be happening? I assume it is something to do
with a COM-related thread not finishing "correctly" at exit. The
number quoted in the KeyError appears likely to be a Windows
process/thread ID. This message doesn't occur when running the
original Python program; only when running the cx_Freeze-generated EXE.
This is using cx_Freeze 4.1.2 with Python 2.6.5 on Windows 2000.
Regards,
Craig McQueen
This may be related:
http://bugs.python.org/issue1596321
But I'm not sure what might be a good work-around when using cx_Freeze.
Regards,
Craig McQueen
I found that a very basic Python program that does nothing except
`import threading` causes this message.
(I had hoped that `import threading` in the main program might be a
work-around, after reading the comments on the Python bug report linked
above. My program originally didn't import threading directly, but
evidently uses it indirectly for win32com COM client programming.)
Regards,
Craig McQueen
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users