Hi,
despite all the information on this list and on the wiki I can't get my
com server up from the py2exe created dll. As it is a outlook com server
I followed the approach taken in the spambayes project, i.e. in the
addin I have:
bValidateGencache = not hasattr(sys, "frozen")
gencache.EnsureModule('{00062FFF-0000-0000-C000-000000000046}', 0, 9, 0,
bForDemand=True,
bValidateFile=bValidateGencache) # Outlook 9
gencache.EnsureModule('{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}', 0, 2, 1,
bForDemand=True,
bValidateFile=bValidateGencache) # Office 9
gencache.EnsureModule('{AC0714F2-3D04-11D1-AE7D-00A0C90F26F4}', 0, 1, 0,
bForDemand=True, bValidateFile=bValidateGencache)
universal.RegisterInterfaces('{AC0714F2-3D04-11D1-AE7D-00A0C90F26F4}',
0, 1, 0,["_IDTExtensibility2"])
and I added the typelib information to the py2exe options in the setup file:
"typelibs": [('{00062FFF-0000-0000-C000-000000000046}', 0, 9, 1),
('{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}', 0, 2, 2),
('{AC0714F2-3D04-11D1-AE7D-00A0C90F26F4}', 0, 1, 0)]
]
This works on my developer machine but on any other I get the following
traceback:
File "win32com\client\__init__.pyc", line 260, in DispatchWithEvents
AttributeError: 'NoneType' object has no attribute 'CLSID'
I also tried omitting the typelibs in setup.py, removed win32com\gen_py
so that the typelib information would be generated in %temp% but still,
anything runs on my machine but not on any other.
Any hints are highly appreciated!
Regards, Christian
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32