From: SourceForge.net <no...@so...> - 2003-11-27 16:22:54
|
Patches item #850322, was opened at 2003-11-27 18:22 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=850322&group_id=78018 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: David Fraser (davidfraser) Assigned to: Nobody/Anonymous (nobody) Summary: Patch to fix error running makepy.py Initial Comment: Hi When running makepy.py to try and speed up COM access to ADO, received the following error in selecttlb.py: win32com\client>makepy.py "Microsoft ActiveX Data Objects 2.7 Library" Traceback (most recent call last): File "win32com\client\makepy.py", line 369, in ? rc = main() File "win32com\client\makepy.py", line 362, in main GenerateFromTypeLibSpec(arg, f, verboseLevel = verboseLevel, bForDemand = bForDemand, bBuildHidden = hiddenSpec) File "win32com\client\makepy.py", line 215, in GenerateFromTypeLibSpec typelibs = GetTypeLibsForSpec(typelibInfo) File "win32com\client\makepy.py", line 157, in GetTypeLibsForSpec tlbs = selecttlb.FindTlbsWithDescription(arg) File "win32com\client\selecttlb.py", line 127, in FindTlbsWithDescription items = EnumTlbs() File "win32com\client\selecttlb.py", line 119, in EnumTlbs spec.ver_desc = tlbdesc + " (" + version + ")" TypeError: unsupported operand types for +: 'NoneType' and 'str' Unfortunately am remote and cannot debug what entry in the registry caused this, but created a patch to ignore such an error, and have attached it here (this is from win32all-162.exe, which contains the latest CVS version) Instead of exiting, it prints "TypeError" and the parameters, and continues... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=850322&group_id=78018 |