开发者

python win32com Causes Program crash

开发者 https://www.devze.com 2023-01-03 23:02 出处:网络
I wrote program to control iTunes by monitoring keystrokes from with pyHooks and then interfaceing with the iTunes COM interface.

I wrote program to control iTunes by monitoring keystrokes from with pyHooks and then interfaceing with the iTunes COM interface.

The program works fine, the only problem I have is when I try to compile it with py2exe. The program always crashes with this traceback:

Traceback (most recent call last): File 开发者_如何学JAVA"threading.pyc", line 527, in __bootstrap_inner File "iTunesControl.py", line 24, in run File "win32com\client\gencache.pyc", line 540, in EnsureDispatch File "win32com\client\CLSIDToClass.pyc", line 46, in GetClass KeyError: '{9DD6680B-3EDC-40DB-A771-E6FE4832E34A}'

py2exe reports no errors...


The problem is probably that the py2exe version isn't able to access the cache of wrappers generated by win32com.

Here's a recipe for dealing with this problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消