Giter Site home page Giter Site logo

JSON object must be str, not 'bytes' about pgap HOT 9 CLOSED

ncbi avatar ncbi commented on August 19, 2024
JSON object must be str, not 'bytes'

from pgap.

Comments (9)

azat-badretdin avatar azat-badretdin commented on August 19, 2024

Thank you for your report. Someone will look at it soon.

from pgap.

nclaesnacw avatar nclaesnacw commented on August 19, 2024

from pgap.

azat-badretdin avatar azat-badretdin commented on August 19, 2024

We want our software to tolerate as much variability in user system setup as possible and we are actively working on it, so your report is very useful. I am trying to investigate it right now on our setup box.

Meanwhile, a question: did you have more output from ./pgap.py --update? If yes, would you mind posting it as attachment? Thanks!

from pgap.

nclaesnacw avatar nclaesnacw commented on August 19, 2024

Hi
No - I note from pgap.py that the min python version is 3.5. But I get the json string error when I tried to run with python 2,7, before it checked the python version. We are running Ubuntu 16.04 because we are doing nanopore sequencing and the guppy basecaller from nanopore requires 16.04 - and that leaves us with default python 2,7 :-( but the python3 command should deal with that?

from pgap.

azat-badretdin avatar azat-badretdin commented on August 19, 2024

The script refers to python3 in shebang (first, #! line of the script), so any python2-related considerations are not expected to affect the outcome.

from pgap.

slottad avatar slottad commented on August 19, 2024

Sorry about that. The python version check should be the first error message you see. We'll try and get that fixed. We are mandated to move to Python 3 by our organization because Python 2 will no longer be supported. See https://www.python.org/dev/peps/pep-0373/

from pgap.

nclaesnacw avatar nclaesnacw commented on August 19, 2024

Sorry user was not in docker group!!! I was told docker was set up but didn't test :-(
Not sure how that translated into the json error
You were right /bin/usr/env python 3 at !# sets up to use the installed python 3.5 so v.2.7 not the issue
Thanks, it needs a listener sometimes

from pgap.

azat-badretdin avatar azat-badretdin commented on August 19, 2024

Feel free to test pgap.py again after you fixed the docker/user issue. I am not sure how this might have translated into the json error either.

from pgap.

azat-badretdin avatar azat-badretdin commented on August 19, 2024

We were able to reproduce the problem on one of our systems and fix it (thanks, @evolarjun)

See 2529fb0

Feel free to apply the fix locally to your pgap.py script or wait until this commit percolates in official way.

from pgap.

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.