[decause@chapeauxrouge gsoc-stats [git:master:0]]$ python main.py --user=skamath --mode=png --output=foo_stats [*] Generating user URL.. [*] Grabbing datagrepper values.. [*] Identifying Categories.. [*] Readying Output.. Traceback (most recent call last): File "main.py", line 56, in <module> main() File "main.py", line 52, in main output.show_output(out_obj, title) File "/home/decause/code/pagure/gsoc-stats/output.py", line 49, in show_output self.draw_png(temp_obj) File "/home/decause/code/pagure/gsoc-stats/output.py", line 20, in draw_png graph_obj.render_to_png(filename=fname) File "/usr/lib/python2.7/site-packages/pygal/ghost.py", line 158, in render_to_png import cairosvg File "/usr/lib/python2.7/site-packages/cairosvg/__init__.py", line 27, in <module> from . import surface File "/usr/lib/python2.7/site-packages/cairosvg/surface/__init__.py", line 47, in <module> "optimizeSpeed": cairo.ANTIALIAS_FAST, AttributeError: 'module' object has no attribute 'ANTIALIAS_FAST'
fix: sudo dnf install python-cairocffi
sudo dnf install python-cairocffi
Thanks @decause. I will add this to my blogpost as well as in the documentation once I am done fixing the minor bugs. :thumbsup:
Edit : Added cairocffi to requirements.pip
requirements.pip
Login to comment on this ticket.