<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=213115406-26082006><FONT face=Arial color=#0000ff size=2>Could
you try executing win32com\client\makepy.py as a script (eg, from a cmd-prompt),
then select the typelib from the list that will be displayed, and see if it
works there? According to the traceback, win32com believes it successfully
generated the file, but then failed to locate it.</FONT></SPAN></DIV>
<DIV><SPAN class=213115406-26082006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=213115406-26082006><FONT face=Arial color=#0000ff
size=2>Mark.</FONT></SPAN></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
python-win32-bounces@python.org [mailto:python-win32-bounces@python.org]<B>On
Behalf Of </B>Johan Lindvall<BR><B>Sent:</B> Friday, 25 August 2006 8:12
PM<BR><B>To:</B> Python-win32@python.org<BR><B>Subject:</B> [python-win32]
Unexpected exception in gateway method 'AddTypeLib'with own Active Script
Host<BR><BR></FONT></DIV>Hi,<BR><BR>We are sometimes getting the error below
when running a Python script in our app.<BR><BR>We are calling AddTypeLib on
the IActiveScript interface.<BR><BR>It always works with VB-scripts and
sometimes fails with Python. <BR><BR>What could be the
problem?<BR><BR>===============================================<BR>pythoncom
error: Unexpected exception in gateway method 'AddTypeLib'<BR>Traceback (most
recent call last):<BR>File
"C:\Python24\Lib\site-packages\win32com\server\policy.py", line 332,
in<BR><U>InvokeEx</U><BR>return self.<U>invokeex</U>(dispid, lcid, wFlags,
args, kwargs, serviceProvider)<BR>File
"C:\Python24\Lib\site-packages\win32com\server\policy.py", line 588,
in<BR><U>invokeex</U><BR>return
func(*args)<BR>File<BR>"C:\Python24\Lib\site-packages\win32comext\axscript\client\framework.py",<BR>line
688, in AddTypeLib<BR>gencache.EnsureModule(uuid, self.lcid, major, minor,
bForDemand = 1)<BR>File
"C:\Python24\Lib\site-packages\win32com\client\gencache.py", line 520,<BR>in
EnsureModule<BR>module = MakeModuleForTypelib(typelibCLSID, lcid, major,
minor,<BR>progressInstance, bForDemand = bForDemand, bBuildHidden =
bBuildHidden)<BR>File
"C:\Python24\Lib\site-packages\win32com\client\gencache.py", line 290,<BR>in
MakeModuleForTypelib<BR>return GetModuleForTypelib(typelibCLSID, lcid, major,
minor)<BR>File "C:\Python24\Lib\site-packages\win32com\client\gencache.py",
line 258,<BR>in GetModuleForTypelib<BR>mod = _GetModule(modName)<BR>File
"C:\Python24\Lib\site-packages\win32com\client\gencache.py", line 629,<BR>in
_GetModule<BR>mod = _<U>import</U>_(mod_name)<BR>exceptions.ImportError: No
module named<BR>E6F09C5E-5E59-4AC2-B3DE-0A5554BDB9AEx2673x9x4<BR>pythoncom
error: Unexpected gateway error<BR>Traceback (most recent call last):<BR>File
"C:\Python24\Lib\site-packages\win32com\server\policy.py", line 332,
in<BR><U>InvokeEx</U><BR>return self.<U>invokeex</U>(dispid, lcid, wFlags,
args, kwargs, serviceProvider)<BR>File
"C:\Python24\Lib\site-packages\win32com\server\policy.py", line 588,
in<BR><U>invokeex</U><BR>return
func(*args)<BR>File<BR>"C:\Python24\Lib\site-packages\win32comext\axscript\client\framework.py",<BR>line
688, in AddTypeLib<BR>gencache.EnsureModule(uuid, self.lcid, major, minor,
bForDemand = 1)<BR>File
"C:\Python24\Lib\site-packages\win32com\client\gencache.py", line 520,<BR>in
EnsureModule<BR>module = MakeModuleForTypelib(typelibCLSID, lcid, major,
minor,<BR>progressInstance, bForDemand = bForDemand, bBuildHidden =
bBuildHidden)<BR>File
"C:\Python24\Lib\site-packages\win32com\client\gencache.py", line 290,<BR>in
MakeModuleForTypelib<BR>return GetModuleForTypelib(typelibCLSID, lcid, major,
minor)<BR>File "C:\Python24\Lib\site-packages\win32com\client\gencache.py",
line 258,<BR>in GetModuleForTypelib<BR>mod = _GetModule(modName)<BR>File
"C:\Python24\Lib\site-packages\win32com\client\gencache.py", line 629,<BR>in
_GetModule<BR>mod = _<U>import</U>_(mod_name)<BR>exceptions.ImportError: No
module
named<BR>E6F09C5E-5E59-4AC2-B3DE-0A5554BDB9AEx2673x9x4<BR>=====================================================<BR><BR>Thanks<BR><BR>--
<BR>/Johan.<BR></BLOCKQUOTE></BODY></HTML>