Comments (6)
(about the cache: I am wondering if this comes from caching somehow, as I run the exact same code earlier today, and it worked; it stopped working after the remote blob was updated).
from adlfs.
(and I am pretty sure the file is valid and well found, if I try a different non existing filename I get a much more understandable error FileNotFoundError
, so it seems that the file does is found)
from adlfs.
Unfortunately, this is on a private store, so I cannot share access for debugging :( .
from adlfs.
That may come from using an older version:
[ins] In [1]: import adlfs
[ins] In [2]: adlfs.__version__
Out[2]: '2023.1.0'
I will update to latest and check if the issue persists.
from adlfs.
I have i) updated to the newest version, ii) disabled cache when reading the small "volatile" json files I was having issues with, by changing my code to:
# It seems that adlfs does not handle "files that change" too
# well due to using (not very smart / robust) caching: there
# were some issues during testing when the *.json files
# changed "on the fly".
# To avoid issues with cache, disable it (we are reading small
# "volatile" json files anyways), and put it in an area where
# it is easy to find and inspect in case of issues.
az_fs = AzureBlobFileSystem(
use_listings_cache=False,
# cache_storage='/tmp/fsspec_cache/',
**zarr_credentials["storage_options"]
)
with az_fs.open(json_az_path, "r") as json_fh:
json_content = json_fh.read()
dict_json = json.loads(json_content)
print(f"read json manifest {json_az_path} | content: {json_content}")
from adlfs.
Closing for now, will re-open if the issue shows up again.
from adlfs.
Related Issues (20)
- Add use_emulator setting to better align with object_store crate HOT 2
- Current state of the library, milestones and current development HOT 1
- Concurrent download of multiple files HOT 1
- Support virtual directory stubs with uppercase "Hdi_isfolder" metadata HOT 1
- Feature Suggestion: Optional content type when for writing file HOT 2
- Support passing url in AzureBlobFileSystem HOT 1
- Add comment why `aiohttp` is required
- Fix typo in repo About
- Python 3.12 support blocked by aiohttp HOT 1
- Feature Request: Support for Adding Metadata to Blobs
- Runtime warning from missing await HOT 2
- `fs.info()` and `fs.ls(detail=True)` return different etag formats
- Issue with parallel uploads to the same blob HOT 1
- Can I use a bearer token / entra ID token for authentication? HOT 1
- Parameter anon ignored if set to False
- exists() is missing **kwargs
- object NoneType can't be used in 'await' expression HOT 3
- Does adlfs provide a way to set the content-type when writing a file to azure blob storage? HOT 1
- Does adlfs provide a way to get a file's public cloud url?
- Xarray Serialisation Issues reading NetCDF from AzureBlobFile HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adlfs.