I'm afraid I've never seen that before. The code in build.py at line 261 is looping over each method defined in an object, and seems to be havng trouble loading the info for one of them. It might be that a dependent typelib hasn't been loaded - I don't think we handle dependent typelibs correctly in all cases.
If you add debug prints you might be able to find some clues as to what is happening, but I'm reluctant to simply catch and ignore such errors until I have a better idea what is going on. Cheers, Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Reinhammar Maria Sent: Friday, 1 February 2008 8:41 PM To: python-win32@python.org Subject: [python-win32] makepy exception Hi all, Any advice to give on this? (python 2.5.1, win32 ext 210) D:\Python25\Lib\site-packages\win32com\client>"D:\Python25\python.exe" makepy.py -d SmarTeam.Std.SessionManagement.Authentication.Modules.tlb Generating to D:\Python25\lib\site-packages\win32com\gen_py\69661005-524C-44A4-B1B8-9E4B3C 6940C3x0x5x18\__init__.py Building definitions from type library... Traceback (most recent call last): File "makepy.py", line 370, in <module> rc = main() File "makepy.py", line 363, in main GenerateFromTypeLibSpec(arg, f, verboseLevel = verboseLevel, bForDemand = bForDemand, bBuildHidden = hiddenSpec) File "makepy.py", line 264, in GenerateFromTypeLibSpec gen.generate(fileUse, bForDemand) File "D:\Python25\lib\site-packages\win32com\client\genpy.py", line 770, in generate self.do_generate() File "D:\Python25\lib\site-packages\win32com\client\genpy.py", line 831, in do_generate oleItems, enumItems, recordItems, vtableItems = self.BuildOleItemsFromType() File "D:\Python25\lib\site-packages\win32com\client\genpy.py", line 745, in BuildOleItemsFromType oleItem, vtableItem = self._Build_Interface(type_info_tuple) File "D:\Python25\lib\site-packages\win32com\client\genpy.py", line 713, in _Build_Interface oleItem = DispatchItem(info, attr, doc) File "D:\Python25\lib\site-packages\win32com\client\genpy.py", line 266, in __init__ build.DispatchItem.__init__(self, typeinfo, attr, doc) File "D:\Python25\lib\site-packages\win32com\client\build.py", line 113, in __init__ self.Build(typeinfo, attr, bForUser) File "D:\Python25\lib\site-packages\win32com\client\build.py", line 261, in Build self._AddFunc_(typeinfo,fdesc,bForUser) File "D:\Python25\lib\site-packages\win32com\client\build.py", line 174, in _AddFunc_ typerepr, resultCLSID, resultDoc = _ResolveType(typerepr, typeinfo) File "D:\Python25\lib\site-packages\win32com\client\build.py", line 438, in _ResolveType subrepr, sub_clsid, sub_doc = _ResolveType(subrepr, itypeinfo) File "D:\Python25\lib\site-packages\win32com\client\build.py", line 454, in _ResolveType resultTypeInfo = itypeinfo.GetRefTypeInfo(subrepr) pywintypes.com_error: (-2147319765, 'Element not found.', None, None) D:\Python25\Lib\site-packages\win32com\client> Regards// Maria Reinhammar Software Engineer Swisslog-Accalon AB **************************************************************************** ******************** CONFIDENTIALITY AND DISCLAIMER This e-mail and its attachments are intended for the above named addressee(s) only and may be confidential. If the mail has come to you in error please reply to this e-mail and highlight the error. In addition, we kindly ask you to destroy the Mail. Please be aware that we disclaim all liability for the integrity or for the accuracy of this Mail, as transmissions via Internet are not error free communications medium.
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32