On 26/03/2009 2:19 AM, Christopher Panici wrote:
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\\library.zip\\win32com\\gen_py\\__init__.py'

This error is caused by a py2exe application; such applications are unable to generate .py files from COM typelibs, but they are capable of generating them at build time and distributing them with the app. You should ask whoever put the application together to read the py2exe docs to learn how to embed the generated files for ITunes directly inside the app.

Cheers,

Mark
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to