[pywin32-bugs] [ pywin32-Bugs-2065850 ] Some typelibs have non integer versions
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2012-02-09 22:40:10
|
Bugs item #2065850, was opened at 2008-08-21 15:59 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2065850&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: com Group: None >Status: Pending Resolution: Invalid Priority: 5 Private: No Submitted By: Mark Hammond (mhammond) Assigned to: Mark Hammond (mhammond) Summary: Some typelibs have non integer versions Initial Comment: From python-win32: """ When using the makepy utility I noticed it used to crash out with the following traceback: line 148, in SelectTlb i.major = int(i.major, 16) ValueError: invalid literal for int() with base 16: 'CS2' ... Most likely this (last line of traceback) refers to the version number of Adobe Photoshop Creative Suite 2. """ There is some existing confusion between hex and int in that file, but it doesn't expect strings! Note that GetTypeLibInfo() etc all use integers for the version info - which probably means the typelib can't be directly loaded - but that isn't really our problem - we shouldn't die. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2012-02-09 14:40 Message: > My question is why would Python2.5 have no problem but Python2.6 and up does. Are you sure it is the same problem? The original problem is that pywin32 assumes a typelib version is an integer, but in some cases it is a string that can't be converted to an integer. Also, the original problem must have been pre 2.6 as 2.6 wasn't out then. Therefore, I'd be really surprised if this is the same issue you are facing. Can you give a few more details? ---------------------------------------------------------------------- Comment By: Brenda Trist (tristb) Date: 2012-02-09 05:14 Message: I am having the same issue as the person who brought this up a few years ago. I noticed it was closed recently with no resolution. You mention in your comments that it has to do with the original typelib. My question is why would Python2.5 have no problem but Python2.6 and up does. I would like to upgrade because the nitro-nitf has been compiled with Python2.6 but yet I still need to be able to run COM Makepy Utility to obtain the Excel and Word libraries of wincom32. Is there anything I can do to work around this problem. Thank you. ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2012-01-27 21:13 Message: I'm rejecting this as it seems limited to just the original typelib and hasn't since been reported again. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2065850&group_id=78018 |