win32com and com Record types
Chuck Spears
larry_Goodman at yahoo.com
Wed Aug 20 10:56:07 EDT 2003
When I run this code, it fails on the line where i try to create a
record. Thanks again for the help.
import win32com.client
db=win32com.client.Dispatch("PDBUtils.BrandDb")
db.Open (r"c:\temp\irx2_brand.pdb")
for i in range(0,db.RecordCount):
print i
rec = win32com.client.Record("BrandRecord", db)
0
Traceback (most recent call last):
File "c:\temp\test\comTest.py", line 18, in ?
rec = win32com.client.Record("BrandRecord", db)
File "C:\PYTHON22\lib\site-packages\win32com\client\__init__.py",
line 392, in Record
object = gencache.EnsureDispatch(object)
File "C:\PYTHON22\lib\site-packages\win32com\client\gencache.py",
line 442, in EnsureDispatch
raise TypeError, "This COM object can not automate the makepy
process - please run makepy manually for this object"
TypeError: This COM object can not automate the makepy process -
please run makepy manually for this object
More information about the Python-list
mailing list