Coder Social home page Coder Social logo

Python 2.7 about pybadges HOT 4 CLOSED

google avatar google commented on May 30, 2024
Python 2.7

from pybadges.

Comments (4)

aritra24 avatar aritra24 commented on May 30, 2024

I think that might be because of the use of function annotations which was introduced in python 3. Removing all instances of annotations and replacing them with informative comments should fix the issue. I'm not very well versed in python yet so I might not be completely right. I can work on this.

from pybadges.

brianquinlan avatar brianquinlan commented on May 30, 2024

Hey @u1i,

This project is not compatible with Python 2.7 and making it so would mean removing all of the type annotations, which I'd prefer not to do.

Is there some reason why you are stuck on Python 2.7?

Cheers,
Brian

from pybadges.

u1i avatar u1i commented on May 30, 2024

yes I was looking at the code, and realized it's not compatible with 2.7.
Let's add a version check at the beginning just in case, so there's a 'nice' error message instead the stack trace.

I'll have to do more 3.x but not all environments allow you to choose the version.

from pybadges.

brianquinlan avatar brianquinlan commented on May 30, 2024

It would be difficult to do a version check at the beginning of the code because the code isn't even run because it is not valid Python 2.7 code...

It looks like the bug is that pybadges is pip installable in Python 2. I'll fix that.

from pybadges.

Related Issues (14)

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.