Closed GoogleCodeExporter closed 9 years ago
I double checked the code in pysal and it appears that files are being closed.
Are you opening any other files in your script? Try using the command line
util `lsof` to help debug the problem.
Original comment by schmi...@gmail.com
on 17 May 2011 at 9:29
My test script opened many file types. It turns out the culprit is the DBF
reader... sorry for implicating the SHP reader. `lsof` is a great tool. The
problem can be replicated with:
import pysal
for i in range(300):
dbf = pysal.open('my_data.dbf', 'r')
dbf.close()
Original comment by dfo...@gmail.com
on 17 May 2011 at 10:31
Issue was fixed in r905. The DBF handler was indeed leaving files open when
opened in 'r' mode.
Problem should be fixed. Please re-open this issue if you have any more
problems.
Original comment by schmi...@gmail.com
on 18 May 2011 at 2:49
Original issue reported on code.google.com by
dfo...@gmail.com
on 17 May 2011 at 7:58