Amit Upadhyay wrote:
> I tried 207, and its working, or atleast I am not getting that perticular
> error.
> 
> Now I am getting:
> 
> Traceback (most recent call last):
>   File "iebutton.py", line 37, in ?
>     win32com.client.gencache.EnsureModule
> ('{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}',0,1,1)
>   File "C:\Python24\Lib\site-packages\win32com\client\gencache.py", line
> 393, in EnsureModule
>     module = GetModuleForTypelib(typelibCLSID, lcid, major, minor)
>   File "C:\Python24\Lib\site-packages\win32com\client\gencache.py", line
> 258, in GetModuleForTypelib
>     mod = _GetModule(modName)
>   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\EAB22AC0-
> 30C1-11CF-A7EB-0000C05BAE0Bx0x1x1.py", line 813
>     """method InvokeContextMenuCommand"""
>         return self._oleobj_.InvokeTypes(8, LCID, 1, (24, 0), ((8,
> 1),),strCommand
>                                          ^
> SyntaxError: invalid syntax
> 
> I have tried deleting the content of gen_py before starting that script
> again.

There was a bug in early versions of Python 2.4 that caused bogus
syntax errors to be raised.  Upgrading to 2.4.2 should solve that.
However, it looks like you'll have to build Pywin32 from
CVS for the demo to work.

        Roger




_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to