If anybody else comes across this problem, it was caused by insufficient
privileges to instantiate Lotus.NotesSession COM object. Everything worked
fine when I tried from admin account.
On Jan 30, 2008 1:41 PM, Suraj Barkale <[EMAIL PROTECTED]> wrote:
> Hi All,
> I restarted writing a script for Lotus Notes after a gap of 1/2
> weeks and found that I can no longer create a Lotus.NotesSession
> object! I cleaned up the comtypes/gen directory to no avail. The
> strange thing is that I get a different error message for the first
> time I try CreateObject('Lotus.NotesSession'). I am suspecting that
> this problem has nothing to do with comtypes. However I am putting
> this on the mailing list to get some info about the underlying problem
> from the lurking experts. Thanks for your attention :) Here is a trial
> session in IDLE:
>
> ----------------------------------------------------------------------------------------------------------------------------
> Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
> (Intel)] on win32
> IDLE 1.2.1
> >>> import comtypes.client
> >>> lns = comtypes.client.CreateObject('Lotus.NotesSession')
>
> Traceback (most recent call last):
> File "<pyshell#1>", line 1, in <module>
> lns = comtypes.client.CreateObject('Lotus.NotesSession')
> File "C:\Python25\Lib\site-packages\comtypes\client\__init__.py",
> line 198, in CreateObject
> obj = comtypes.CoCreateInstance(clsid, clsctx=clsctx,
> interface=interface)
> File "C:\Python25\Lib\site-packages\comtypes\__init__.py", line 931,
> in CoCreateInstance
> _ole32.CoCreateInstance(byref(clsid), punkouter, clsctx,
> byref(iid), byref(p))
> WindowsError: exception code 0xe06d7363
> >>> lns = comtypes.client.CreateObject('Lotus.NotesSession')
>
> Traceback (most recent call last):
> File "<pyshell#2>", line 1, in <module>
> lns = comtypes.client.CreateObject('Lotus.NotesSession')
> File "C:\Python25\Lib\site-packages\comtypes\client\__init__.py",
> line 198, in CreateObject
> obj = comtypes.CoCreateInstance(clsid, clsctx=clsctx,
> interface=interface)
> File "C:\Python25\Lib\site-packages\comtypes\__init__.py", line 931,
> in CoCreateInstance
> _ole32.CoCreateInstance(byref(clsid), punkouter, clsctx,
> byref(iid), byref(p))
> File "\loewis\25\python\Modules\_ctypes\callproc.c", line 754, in
> GetResult
> WindowsError: [Error -2147024882] Not enough storage is available to
> complete this operation
> >>> ea = comtypes.client.CreateObject('Excel.Application')
> # Generating comtypes.gen._00020813_0000_0000_C000_000000000046_0_1_4
> # Generating comtypes.gen._2DF8D04C_5BFA_101B_BDE5_00AA0044DE52_0_2_2
> # Generating comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0
> # Generating comtypes.gen.stdole
> # Generating comtypes.gen.Office
> # Generating comtypes.gen._0002E157_0000_0000_C000_000000000046_0_5_3
> # Generating comtypes.gen._2DF8D04C_5BFA_101B_BDE5_00AA0044DE52_0_2_4
> # Generating comtypes.gen.VBIDE
> # Generating comtypes.gen.Excel
> >>> ea.Quit()
> 0
> >>>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users