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
Traceback (most recent call last):
File "/Users/jwodder/work/dev/tmp/fsspec/fsspec-cache01a.py", line 10, in <module>
with fs.open("https://httpbin.org/uuid", "r", encoding="utf-8") as f:
File "/Users/jwodder/.local/virtualenvwrapper/venvs/tmp-aaf3a4de95a14b1/lib/python3.10/site-packages/fsspec/implementations/cached.py", line 344, in <lambda>
f.close = lambda: self.close_and_update(f, close)
File "/Users/jwodder/.local/virtualenvwrapper/venvs/tmp-aaf3a4de95a14b1/lib/python3.10/site-packages/fsspec/implementations/cached.py", line 406, in <lambda>
return lambda *args, **kw: getattr(type(self), item).__get__(self)(
File "/Users/jwodder/.local/virtualenvwrapper/venvs/tmp-aaf3a4de95a14b1/lib/python3.10/site-packages/fsspec/implementations/cached.py", line 357, in close_and_update
c = self.cached_files[-1][path]
KeyError: '/uuid'
Exception ignored in: <function AbstractBufferedFile.__del__ at 0x10ddf55a0>
Traceback (most recent call last):
File "/Users/jwodder/.local/virtualenvwrapper/venvs/tmp-aaf3a4de95a14b1/lib/python3.10/site-packages/fsspec/spec.py", line 1751, in __del__
File "/Users/jwodder/.local/virtualenvwrapper/venvs/tmp-aaf3a4de95a14b1/lib/python3.10/site-packages/fsspec/implementations/cached.py", line 344, in <lambda>
File "/Users/jwodder/.local/virtualenvwrapper/venvs/tmp-aaf3a4de95a14b1/lib/python3.10/site-packages/fsspec/implementations/cached.py", line 406, in <lambda>
File "/Users/jwodder/.local/virtualenvwrapper/venvs/tmp-aaf3a4de95a14b1/lib/python3.10/site-packages/fsspec/implementations/cached.py", line 357, in close_and_update
KeyError: '/uuid'
Inserting a print statement in WholeFileCacheFileSystem.close_and_update() reveals that the keys in self.cached_files[-1] are URLs (i.e., 'https://httpbin.org/uuid') rather than the /uuid paths that the code expects.
The text was updated successfully, but these errors were encountered:
As of the release of fsspec 2022.10.0 yesterday, the following code:
outputs the following traceback on termination:
Inserting a
print
statement inWholeFileCacheFileSystem.close_and_update()
reveals that the keys inself.cached_files[-1]
are URLs (i.e.,'https://httpbin.org/uuid'
) rather than the/uuid
paths that the code expects.The text was updated successfully, but these errors were encountered: