Discussion:
[pytables-users] Error closing file
Julio Trevisan
2014-11-02 11:58:04 UTC
Permalink
I am ocasionally getting this error (doesn't occur all the time):

.
.
.
File "C:\Python27\lib\site-packages\tables\file.py", line 2507, in close
del _open_files[filename]
KeyError:
'C:/Users/j/Documents/projects/navala/assignments/case\\gaRunner.0012.h5'



if H.isopen:
H.close()
--
You received this message because you are subscribed to the Google Groups "pytables-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pytables-users+***@googlegroups.com.
To post to this group, send an email to pytables-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Julio Trevisan
2014-11-02 12:03:06 UTC
Permalink
I also used to get this one some time ago. I wrote it down but I don't know
the exact code line:

AttributeError: 'NoneType' object has no attribute '_f_close'
Post by Julio Trevisan
.
.
.
File "C:\Python27\lib\site-packages\tables\file.py", line 2507, in close
del _open_files[filename]
'C:/Users/j/Documents/projects/navala/assignments/case\\gaRunner.0012.h5'
H.close()
--
You received this message because you are subscribed to the Google Groups "pytables-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pytables-users+***@googlegroups.com.
To post to this group, send an email to pytables-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Julio Trevisan
2014-11-02 13:35:31 UTC
Permalink
Another error that is probably related. Could I be experiencing
unpredictable effects from opening concurrent handles? I am trying to be
careful to avoid this, e.g. using locks etc, but sth may have slipped.

File
"C:\Users\j\Documents\projects\navala\trunk\vera\lib\navala\backtesting\btafile.py",
line 381, in _Open
self._assignment = pkl.loads(self._H.root.assignment.read())
AttributeError: 'UnImplemented' object has no attribute 'read'

Above, "assignment" is an array of dtype str.
Post by Julio Trevisan
I also used to get this one some time ago. I wrote it down but I don't
AttributeError: 'NoneType' object has no attribute '_f_close'
Post by Julio Trevisan
.
.
.
File "C:\Python27\lib\site-packages\tables\file.py", line 2507, in close
del _open_files[filename]
'C:/Users/j/Documents/projects/navala/assignments/case\\gaRunner.0012.h5'
H.close()
--
You received this message because you are subscribed to the Google Groups "pytables-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pytables-users+***@googlegroups.com.
To post to this group, send an email to pytables-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...