Hi!
I am trying to generate a DirectX API(?) by myself instead if using
makepy.py.
So I do:
>>> import win32com.client.gencache
>>> LVClass = win32com.client.gencache.EnsureDispatch("LabVIEW.Application")
And I get:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File
"C:\PROGRA~1\Python23\lib\site-packages\win32com\client\gencache.py",
line 537, in EnsureDispatch
GetModuleForCLSID(disp_clsid)
File
"C:\PROGRA~1\Python23\lib\site-packages\win32com\client\gencache.py",
line 240, in GetModuleForCLSID
makepy.GenerateChildFromTypeLibSpec(sub_mod, info)
File
"c:\Progra~1\Python23\lib\site-packages\win32com\client\makepy.py",
line 318, in GenerateChildFromTypeLibSpec
__import__("win32com.gen_py." + dir_name + "." + child)
ImportError: No module named _IApplication
When looking at the stack in pdb, there is a better message to show I
think, not just walking through it:
> c:\progra~1\python23\lib\site-packages\win32com\client\gencache.py(543)EnsureDispatch()
-> raise TypeError, "This COM object can not automate the makepy
process - please run makepy manually for this object"
(This run is probably due to that there are 4 LabVIEW targets in the
list of api's to create, two on LabVIEW 7.1, and two on LabVIEW 7.0)
/Andy
--
TANSTAAFI - There Are No Such Thing As A Free Internet
Or?
_______________________________________________
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32