In appveyor, I'm having trouble deleting .dbf files that were written by a shapefile.Writer and subsequently read again by a shapefile.Reader (to check contents were written correctly).
I'm getting the following error: WindowsError: [Error 32] The process cannot access the file because it is being used by another process: u'c:\\users\\appveyor\\appdata\\local\\temp\\1\\obspy-ogjwjz\\inventory.dbf' on a os.remove(filename) call: See https://ci.appveyor.com/project/obspy/obspy/build/1.0.5339-master/job/ox2tu1p3xry0kkx4#L573
I suspect the Reader is likely to blame, but even a manual reader_instance.close() call did not make this error go away.
In appveyor, I'm having trouble deleting
.dbf
files that were written by ashapefile.Writer
and subsequently read again by ashapefile.Reader
(to check contents were written correctly). I'm getting the following error:WindowsError: [Error 32] The process cannot access the file because it is being used by another process: u'c:\\users\\appveyor\\appdata\\local\\temp\\1\\obspy-ogjwjz\\inventory.dbf'
on aos.remove(filename)
call: See https://ci.appveyor.com/project/obspy/obspy/build/1.0.5339-master/job/ox2tu1p3xry0kkx4#L573I suspect the
Reader
is likely to blame, but even a manualreader_instance.close()
call did not make this error go away.Have you seen something like the above before?
See obspy/obspy#1933.