Giter VIP home page Giter VIP logo

Comments (6)

jerabaul29 avatar jerabaul29 commented on September 22, 2024

(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.

jerabaul29 avatar jerabaul29 commented on September 22, 2024

(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.

jerabaul29 avatar jerabaul29 commented on September 22, 2024

Unfortunately, this is on a private store, so I cannot share access for debugging :( .

from adlfs.

jerabaul29 avatar jerabaul29 commented on September 22, 2024

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.

jerabaul29 avatar jerabaul29 commented on September 22, 2024

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.

jerabaul29 avatar jerabaul29 commented on September 22, 2024

Closing for now, will re-open if the issue shows up again.

from adlfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.