[python-win32] 'No such interface supported' error after makepy

Thorsten Henninger henni at brainbot.com
Fri Oct 3 09:34:22 EDT 2003


Hi,

have you tried the "COM Makeoy utility" in Pythonwin (Menu Tools) to 
create the gen_py files?
I had similar problems and that helped.

Thorsten

Simon Judge wrote:

>Hi, I am trying to use win32all to export some information to word.
>
>I tried a simple program e.g: http://p-nand-q.com/python/ms_office.html
>which worked... and TestMSOffice.py which also worked.
>
>I then used makepy.py and testmakepy.py ... after this the examples
>stopped working! Why?!  (error below).
>
>I've tried removing the gen_py folder, however this makes no
>difference... 
>
>Help!
>
>Thanks.
>
>Simon
>
>---
>Error: 
>
>None: (-2147467262, 'No such interface supported', None, None)
>
>Traceback (innermost last):
>
>File "<string>", line 1, in ?
>  
>File "\\Server\meru documents\Project Files\Interface
>Centre\Python\Dialog Test\word.py", line 6, in ?
>  word = win32com.client.Dispatch("Word.Application")
>File "C:\Program
>Files\Python\231\Lib\site-packages\win32com\client\__init__.py", line
>95, in Dispatch
>    dispatch, userName =
>dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
>File "C:\Program
>Files\Python\231\Lib\site-packages\win32com\client\dynamic.py", line 84,
>in _GetGoodDispatchAndUserName
>  	return (_GetGoodDispatch(IDispatch, clsctx), userName)
>File "C:\Program
>Files\Python\231\Lib\site-packages\win32com\client\dynamic.py", line 72,
>in _GetGoodDispatch
>  			IDispatch =
>pythoncom.CoCreateInstance(IDispatch, None, clsctx,
>pythoncom.IID_IDispatch)
>
>_______________________________________________
>Python-win32 mailing list
>Python-win32 at python.org
>http://mail.python.org/mailman/listinfo/python-win32
>
>  
>


-- 
brainbot technologies AG 
boppstrasse . 64 . 55118 mainz . germany
fon +49 6131 211639-1 . fax +49 6131 211639-2
http://brainbot.com/  mailto:henni at brainbot.com





More information about the Python-win32 mailing list