Code Monkey home page Code Monkey logo

json-store's People

Contributors

amotl avatar brainsik avatar nicktimko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

json-store's Issues

Call os.rename directly instead of through shutil.move

The shutil.move function exists specifically to support non-atomic move across filesystems. Atomic move is done using os.rename that refuses to move across filesystems. On the other hand you would then need to ensure your temporary file is created on the same filesystem.

Python 3.10 croaks with `AttributeError: module 'collections' has no attribute 'MutableMapping'`

Dear Jeremy,

thanks a stack for conceiving and maintaining the json-store package.

At daq-tools/kotori#94, we just bumped the CI to use Python 3.10, but it croaked with AttributeError: module 'collections' has no attribute 'MutableMapping' 12.

ImportError while loading conftest '/home/runner/work/kotori/kotori/test/conftest.py'.
test/conftest.py:12: in <module>
    from kotori import KotoriBootloader
kotori/__init__.py:27: in <module>
    from kotori.util.common import setup_logging
kotori/util/common.py:10: in <module>
    import json_store
/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/json_store/__init__.py:3: in <module>
    from .json_store import *
/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/json_store/json_store.py:25: in <module>
    class JSONStore(collections.MutableMapping):
E   AttributeError: module 'collections' has no attribute 'MutableMapping'
Error: Process completed with exit code 4.

Is there anything you could do about it?

With kind regards,
Andreas.

Footnotes

  1. https://github.com/daq-tools/kotori/runs/7312346751

  2. https://github.com/daq-tools/kotori/runs/7312346825

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.