euroargodev / argopy

A python library for Argo data beginners and experts
https://argopy.readthedocs.io
European Union Public License 1.2
176 stars 39 forks source link

AttributeError: type object 'MemoryFileSystem' has no attribute 'cached_files' #294

Closed gmaze closed 11 months ago

gmaze commented 11 months ago

this seems to plague rtd build and upstream tests un der python 3.9

Related to #292 and #293

gmaze commented 11 months ago

Just notice https://github.com/fsspec/filesystem_spec/pull/1353 !! changed occurred in release 2023.9.1 file cache is no longer a pickle but a json file !

gmaze commented 11 months ago

Also, cached files data are now managed by a specific class in https://github.com/fsspec/filesystem_spec/pull/1296 (https://github.com/fsspec/filesystem_spec/commit/aacc5f2b80f44a19f8d9aeac30608ec5d9f406db)

that's why we have the AttributeError: type object 'MemoryFileSystem' has no attribute 'cached_files' error

the list of cached_files is now in the fs._metadata.cached_files ! not fs.cached_files anymore

this is for fsspec version > 2023.6.0