Tim: I upgraded my Python install from 2.4.1 to 2.4.3 and now it is all working as I originally expected it should. Thanks for your help in trying to find the problem.
-Jim Jim Steil IT Manager Quality Liquid Feeds (608) 935-2345 (608) 341-9896 cell -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Roberts Sent: Friday, October 06, 2006 12:27 PM To: 'Python-Win32 List' Subject: Re: [python-win32] Excel win32com newbie question Jim Steil wrote: >Thanks for the response! I tried your suggestion with the following >results.... > > > >>>>import win32com.client >>>>x = win32com.client.gencache.EnsureDispatch("Excel.Application") >>>> >>>> >Traceback (most recent call last): > File "<input>", line 1, in ? > File "C:\Python24\Lib\site-packages\win32com\client\gencache.py", line >536, in EnsureDispatch > mod = EnsureModule(tla[0], tla[1], tla[3], tla[4], >bForDemand=bForDemand) > 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\00020813-0000-0000-C000-0000 0 >0000046x0x1x5\__init__.py", line 1748 > '{000208C8-0001-0000-C000-000000000046}' : 'IWalls', > '{000208C9-0001-0000-C000-000000000046}' : 'ITickLabels', > ^ >SyntaxError: invalid syntax > > I'm beginning to think you may have some fundamental problem. I'm running Python24, and I have that exact same file in my gen_py cache, but IWalls is at line 2,063, not line 1,748. What version of Excel is this? I'm running Excel 2003. Hmmm, I'm still at Python-Win32 build 204, so there is a difference there. Still, there is no syntax error there that I can see. -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32 _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32