Open SammyAgrawal opened 2 months ago
import requests
resp = requests.get(sample_url)
with open('file2.nc', 'wb') as f:
f.write(resp.content)
open_virtual_dataset("file2.nc")
This works, so the issue definitely isn't with the url as some inherently inaccessible thing. But the above FileNotFoundError
comes from fsspec/implementations/http.py:435, in HTTPFileSystem._info(self, url, **kwargs)
Getting some sort of strange error internally when virtualizarr uses fsspec. Works when I manually use ffsspec though; might be way in which their filesystem loads it.
From parsing the error stack trace, the problem seems to be when
fsspec.filesystem(protocol, **storage_options).open(filepath)
is called internally. The eventual get request fails causing aFileNotFoundError
for the url