Git Product home page Git Product logo

Comments (3)

owencjones avatar owencjones commented on September 13, 2024

Hi @kevin-vitro,

This is almost certainly an actual invalidity in the JSON, or possibly a character encoding problem, given the error.

Currently, we've set multi CPU approaches off, as the error output we get from these when something does go wrong isn't what we'd like, and we have plans to implement a better version in future.

In the current version you should find the use_multi_cpu flag defaults to False

from darwin-py.

kevin-vitro avatar kevin-vitro commented on September 13, 2024

Yeah, I was able to figure that out, but it doesn't say which JSON is invalid so I had to do extra digging. My thought is that if we have an error raised doing this, it would be nice to have some idea which JSON file is bad in the list of N files.

from darwin-py.

owencjones avatar owencjones commented on September 13, 2024

You're right, and our plan is to implement better error reporting on the multiprocessing once we work on a new major refactor - the need for pickled functions obscures error output more than I'd like.

In the meantime, I'd try a simple script with a json.loads on the file you're trying to load, or putting the file into a JSON validator to source problems in it. IIRC, jq CLI tool can do this.

from darwin-py.

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.