Git Product home page Git Product logo

Comments (4)

59e5aaf4 avatar 59e5aaf4 commented on July 17, 2024

Yeah, it feels weird to have that small 'util.py' in /usr/local/lib/python3.8/dist-packages/ . Looks like the package doesn't live in its own folder ?

    from flatten_json import flatten_json
  File "/usr/local/lib/python3.8/dist-packages/flatten_json.py", line 13, in <module>
    from util import check_if_numbers_are_consecutive
ImportError: cannot import name 'check_if_numbers_are_consecutive' from 'util'

I solved the problem by removing that useless util.py file and hardcoding its contents (the single function check_if_numbers_are_consecutive) in flatten_json.py

from flatten.

TheMatt2 avatar TheMatt2 commented on July 17, 2024

I solved the problem by removing that useless util.py file and hardcoding its contents (the single function check_if_numbers_are_consecutive) in flatten_json.py

I had to do the same thing.

I can't think of a good reason why this shouldn't be changed to flatten_json.util at the very least.

from flatten.

amirziai avatar amirziai commented on July 17, 2024

i've remove util.py and just released 0.1.13. please upgrade and lmk if you still have issues with it.

from flatten.

TheMatt2 avatar TheMatt2 commented on July 17, 2024

@amirziai I think its safe to close this bug report out.
util has been refactored away

from flatten.

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.