Comments (4)
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.
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.
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.
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)
- Add a server example to README.md HOT 2
- Add tests to server example HOT 2
- Fix README.md examples that use colors
- reOPEN: Support a title element HOT 1
- Custom Styles HOT 1
- Is this project still being maintained? HOT 1
- ModuleNotFoundError: No module named '_lzma' HOT 5
- Upgrade to Flask 2.0? HOT 2
- Remove support for Python 3.5 and support current Jinja versions HOT 1
- colorscheme.json superceded by color.js HOT 2
- Add User-Agent option for Logo Lookup
- Logo Disappears HOT 10
- Support a title element
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pybadges.