[pywin32-bugs] [ pywin32-Patches-850322 ] Patch to fix error running makepy.py
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2004-04-25 04:24:56
|
Patches item #850322, was opened at 2003-11-28 03:22 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=850322&group_id=78018 Category: None Group: None >Status: Closed >Resolution: Fixed 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... ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2004-04-25 14:24 Message: Logged In: YES user_id=14198 Fixed, but in a slightly different way. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=850322&group_id=78018 |