-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSError: [Errno 18] Invalid cross-device link error on readthedocs #322
Comments
This is probably the right answer. I was trying to ameliorate the effect or races, since it's possible that multiple instances are accessing the cache from multiple threads or processes, but it ought to be the case that the worst result is that occasionally a file is downloaded more than once. Note that you may want to use "simplecache" instead, if you don't expect your files to ever expire or change on the remote server. simplecache does not maintain any metadata, so does not suffer this problem. |
(actually, |
I think I need the full cache meta data, since I have some expiration dates to enforce. To use |
PR here: #323 |
awesome ! |
Removed all cells executions because of the fsspec issue with links at readthedocs (see [here](fsspec/filesystem_spec#322))
Removed all cells executions because of the fsspec issue with links at readthedocs (see [here](fsspec/filesystem_spec#322))
Hi folks,
I develop a python library to work with ocean data collected using a specific type of instruments (Argo floats): https://github.com/euroargodev/argopy
Data can be fetched from local files or from an erddap server online.
I recently tried to use fsspec to implement file/resource management and ease handling of cached data.
I ended up wrapping
file
,memory
andhttp
fsspec file systems into classes that managed custom methods like open_dataset or open_dataframe.I worked nicely up to the point where the new master branch was pushed to readthedocs, which failed because of a:
The error is raised when readthedocs executes a notebook where I demonstrate the use of the caching system of argopy.
The error is raised by the sspec/implementations/cached.py
save_cache(self)
method in the line where the new cache replace the old one:os.replace(fn2, fn)
.This is apparently raised because
os
expect files to be from the same file system.Is this only related to readthedocs ? and if you have any ideas about how to fix this, that would be great ! One possibility is by using
shutil.move
instead ofos.rename
.The RTD log build with the error can be seen here.
The interesting peace is here (sorry for the RTD character mess):
The text was updated successfully, but these errors were encountered: