Package: python-pygal
Version: 1.7.0-0-g41186be+1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

there is a bug in pygal that makes it crash even when running the first example 
in its documentation, a bug which seems to have been fixed about a month ago in 
version 2.0.11 of pygal; here is the relevant issue 
https://github.com/Kozea/pygal/issues/282

This bugs makes it impossible to generate any SVG (BTW, in this package's 
description, "Python svg graph plotting library", "svg" would be better written 
in uppercase).

This is the example from 
http://www.pygal.org/en/latest/documentation/types/line.html
import pygal

line_chart = pygal.Line()
line_chart.title = 'Browser usage evolution (in %)'
line_chart.x_labels = map(str, range(2002, 2013))
line_chart.add('Firefox', [None, None,    0, 16.6,   25,   31, 36.4, 45.5, 
46.3, 42.8, 37.1])
line_chart.add('Chrome',  [None, None, None, None, None, None,    0,  3.9, 
10.8, 23.8, 35.3])
line_chart.add('IE',      [85.8, 84.6, 84.7, 74.5,   66, 58.6, 54.7, 44.8, 
36.2, 26.6, 20.1])
line_chart.add('Others',  [14.2, 15.4, 15.3,  8.9,    9, 10.4,  8.9,  5.8,  
6.7,  6.8,  7.5])
line_chart.render()

and this is the traceback when running it interactively:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/pygal/ghost.py", line 122, in render
    .make_instance(overrides=kwargs)
  File "/usr/lib/python2.7/dist-packages/pygal/ghost.py", line 116, in 
make_instance
    self.xml_filters)
  File "/usr/lib/python2.7/dist-packages/pygal/graph/line.py", line 33, in 
__init__
    super(Line, self).__init__(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pygal/graph/base.py", line 47, in 
__init__
    self.svg = Svg(self)
  File "/usr/lib/python2.7/dist-packages/pygal/svg.py", line 50, in __init__
    u('xml'), u("version='1.0' encoding='utf-8'"))]
  File "src/lxml/lxml.etree.pyx", line 3039, in 
lxml.etree.ProcessingInstruction (src/lxml/lxml.etree.c:81073)
ValueError: Invalid PI name 'xml'

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 4.2.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-pygal depends on:
pn  python:any  <none>

python-pygal recommends no packages.

python-pygal suggests no packages.

-- no debconf information

Reply via email to