From: alexander s. <al...@go...> - 2010-10-23 18:04:22
|
Katie Carbonari wrote, at 22.10.2010 23:27: > Hi there. I'm trying to read some bdf files using dbfpy. The code I'm > using is here: > > infiles = ['SWATOutput_Current_2ndtime.mdb','SWATOutput_Future_2ndTime.mdb'] > File "/usr/local/lib/python2.5/site-packages/dbfpy/utils.py", line > 75, in getDate > return datetime.date(*date[:3]) > ValueError: month must be in 1..12 > > Any ideas on what is causing this error? the error is caused by invalid file contents. i think that the files you are trying to read are not dbf files: their names suggest they are ms access databases. best wishes, alex. |