py2exe - win32com - GetGeneratePath Error

Christopher Panici cjpanici at
Wed Mar 25 16:19:44 CET 2009

Has anyone solved the GetGeneratePath Error? 

I am getting this when I use win32com.client.DispatchWithEvents('iTunes.Application', customEventHandler). I have drilled down to the file and found it in that path. 

Does anyone have any ideas? 

HERE IS THE ERROR. If anyone is good at this please email me back. 
Traceback (most recent call last): 
File "AppleHackGUI.pyw", line 376, in <module> 
File "Main.pyc", line 29, in __init__ 
File "win32com\client\__init__.pyc", line 250, in DispatchWithEvents 
File "win32com\client\gencache.pyc", line 520, in EnsureModule 
File "win32com\client\gencache.pyc", line 287, in MakeModuleForTypelib 
File "win32com\client\makepy.pyc", line 256, in GenerateFromTypeLibSpec 
File "win32com\client\gencache.pyc", line 141, in GetGeneratePath 
IOError: [Errno 2] No such file or directory: 'C:\\Users\\Neech\\Documents\\PythonProjects\\AppleHack\\src\\dist\\\\win32com\\gen_py\\' 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list