With the test Script below, I receive the error message:
"TypeError: __new__() got an unexpected keyword argument 'read_only'"
when I remove the "read_only=False" I of course get an access error when I try to append a record.
"Traceback (most recent call last):
File "D:\BD\BD9649_GradientAccess\103J077\test4.py", line 6, in <module>
rec = Tbl.append()
File "C:\Python27\ArcGIS10.1\lib\site-packages\dbf.py", line 3752, in append
raise DbfError('%s not in read/write mode, unable to append records' % meta.filename)
DbfError: sample.dbf not in read/write mode, unable to append records"
TEST SCRIPT
import arcpy
import dbf
Tbl = dbf.Table( 'sample.dbf', 'ID N(6,0); FCODE C(10)', read_only=False )
rec = Tbl.append()
rec.ID = 5
rec.FCODE = 'GA24850000'
rec.write.record()