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
(mhammond@skippinet.com.au) - 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
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)