[pywin32-bugs] [ pywin32-Bugs-1471918 ] COM Makepy for Excel Fails
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2006-04-18 07:19:26
|
Bugs item #1471918, was opened at 2006-04-18 05:31 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1471918&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: None Group: None >Status: Closed >Resolution: Duplicate Priority: 5 Submitted By: Vail (newts) Assigned to: Nobody/Anonymous (nobody) Summary: COM Makepy for Excel Fails Initial Comment: Here is the output window with 2 attempts for two different excel interface versions (below). The files seem to be in the right places and I haven't taken it much further than that. My system is XP/SP2 with Excel 97 SR2. Thanks, jv PythonWin 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32. Portions Copyright 1994-2004 Mark Hammond (mha...@sk...) - see 'Help/About PythonWin' for further copyright information. >>> Generating to C:\Python24\lib\site-packages\win32com\gen_py\00020813-0000-0000-C000-000000000046x0x1x2.py Building definitions from type library... Generating... Importing module Failed to execute command: from win32com.client import makepy;makepy.main() Traceback (most recent call last): File "C:\Python24\Lib\site-packages\pythonwin\pywin\framework\toolmenu.py", line 103, in HandleToolCommand exec "%s\n" % pyCmd File "<string>", line 1, in ? File "C:\Python24\Lib\site-packages\win32com\client\makepy.py", line 339, in main GenerateFromTypeLibSpec(arg, f, verboseLevel = verboseLevel, bForDemand = bForDemand, bBuildHidden = hiddenSpec) File "C:\Python24\Lib\site-packages\win32com\client\makepy.py", line 250, in GenerateFromTypeLibSpec gencache.AddModuleToCache(info.clsid, info.lcid, info.major, info.minor) File "C:\Python24\Lib\site-packages\win32com\client\gencache.py", line 550, in AddModuleToCache mod = _GetModule(fname) File "C:\Python24\Lib\site-packages\win32com\client\gencache.py", line 629, in _GetModule mod = __import__(mod_name) File "C:\Python24\lib\site-packages\win32com\gen_py\00020813-0000-0000-C000-000000000046x0x1x2.py", line 1393 coclass_clsid = None ^ SyntaxError: invalid syntax Generating to C:\Python24\lib\site-packages\win32com\gen_py\00020813-0000-0000-C000-000000000046x9x1x0.py Building definitions from type library... Generating... Importing module Failed to execute command: from win32com.client import makepy;makepy.main() Traceback (most recent call last): File "C:\Python24\Lib\site-packages\pythonwin\pywin\framework\toolmenu.py", line 103, in HandleToolCommand exec "%s\n" % pyCmd File "<string>", line 1, in ? File "C:\Python24\Lib\site-packages\win32com\client\makepy.py", line 339, in main GenerateFromTypeLibSpec(arg, f, verboseLevel = verboseLevel, bForDemand = bForDemand, bBuildHidden = hiddenSpec) File "C:\Python24\Lib\site-packages\win32com\client\makepy.py", line 250, in GenerateFromTypeLibSpec gencache.AddModuleToCache(info.clsid, info.lcid, info.major, info.minor) File "C:\Python24\Lib\site-packages\win32com\client\gencache.py", line 550, in AddModuleToCache mod = _GetModule(fname) File "C:\Python24\Lib\site-packages\win32com\client\gencache.py", line 629, in _GetModule mod = __import__(mod_name) File "C:\Python24\lib\site-packages\win32com\gen_py\00020813-0000-0000-C000-000000000046x9x1x0.py", line 1672 def VarP(self): return self._ApplyTypes_(16578, 1, (12, 0), (), 'VarP', None,) ^ SyntaxError: invalid syntax ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2006-04-18 17:19 Message: Logged In: YES user_id=14198 Please upgrade to python 2.4.2 or later, then delete your win32com\gen_py directory and it should be resolved (it is a bug in Python 2.4.1) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1471918&group_id=78018 |