[python-win32] 'No such interface supported' error after makepy
Simon Judge
simon at meru.org.uk
Fri Oct 3 09:33:54 EDT 2003
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)
More information about the Python-win32
mailing list