You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling f.flush() on an S3FS openfile, fails with the following trace:
Exception ignored in: <function AbstractBufferedFile.__del__ at 0x7f0790fc8dc0>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/fsspec/spec.py", line 1954, in __del__
self.close()
File "/usr/lib/python3/dist-packages/fsspec/spec.py", line 1931, in close
if not self.forced:
AttributeError: 'S3File' object has no attribute 'forced'
Not sure if this error should be opened up with fsspec instead.
The text was updated successfully, but these errors were encountered:
Upon further research, this was caused due to leaving an openfile context when trying to open a file with an unsupported filemode, still though, we should probably try to be a bit better about handling this error.
Ah, so this happens during interpreter shutdown: so the attributes of the S3File got cleaned up before the file object itself. I'm not sure what can be done about it, since it's very unlikely that making the actual call to the server can succeed, so maybe __del__ should just warn or silently ignore this kind of thing?
Calling
f.flush()
on an S3FS openfile, fails with the following trace:Not sure if this error should be opened up with fsspec instead.
The text was updated successfully, but these errors were encountered: