[python-win32] py2exe problem with makepy

James Carroll mrmaple at gmail.com
Fri Mar 3 22:03:53 CET 2006


Hi, I've got python 2.4.2 & pythonwin 207 & py2exe 0.6.4 (I also tried 0.6.3)

The other day I tried to run makepy on Excel.Application and got a
strange error... today I am getting something similar trying to py2exe
something that I've had luck with before.  I'm getting the following
error:


running py2exe
*** generate typelib stubs ***
Traceback (most recent call last):
  File "C:\jimc\prj\bright\scripts\vsEdit\setup.py", line 69, in ?
    windows=[vsEdit])
  File "C:\Python24\lib\distutils\core.py", line 149, in setup
    dist.run_commands()
  File "C:\Python24\lib\distutils\dist.py", line 946, in run_commands
    self.run_command(cmd)
  File "C:\Python24\lib\distutils\dist.py", line 966, in run_command
    cmd_obj.run()
  File "C:\Python24\Lib\site-packages\py2exe\build_exe.py", line 218, in run
    self._run()
  File "C:\Python24\Lib\site-packages\py2exe\build_exe.py", line 249, in _run
    self.typelibs)
  File "C:\Python24\Lib\site-packages\py2exe\build_exe.py", line 1494, in collec
t_win32com_genpy
    makepy.GenerateFromTypeLibSpec(info, bForDemand = False)
  File "C:\Python24\Lib\site-packages\win32com\client\makepy.py", line 273, in G
enerateFromTypeLibSpec
    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:\jimc\prj\bright\scripts\vsEdit\build\bdist.win32\winexe\temp\win32com
\gen_py\565783C6-CB41-11D1-8B02-00600806D9B6x0x1x2.py", line 1484
class ISWbemRefreshableItem(DispatchBaseClass):
    ^
SyntaxError: invalid syntax



I've looked at the offending file, and it looks just fine to me (I
don't know what the synatx error is.)

Are there any quick fixes I can try?
Thanks,
-jim


More information about the Python-win32 mailing list