Ticket #8 (closed defect: invalid)
demo_chart.py fails
| Reported by: | ged | Owned by: | nicoe |
|---|---|---|---|
| Priority: | major | Component: | ODT Plugin |
| Keywords: | Cc: |
Description
ged@plaf:~/devel/relatorio/examples/ > python demo_chart.py
classes {}
Traceback (most recent call last):
File "demo_chart.py", line 13, in <module>
file('hbar.svg', 'wb').write(hbar_report(o=inv).render().getvalue())
File "/home/ged/devel/relatorio/relatorio/templates/base.py", line 36, in render
return self.serializer(self.events)
File "/home/ged/devel/relatorio/relatorio/templates/chart.py", line 84, in __call__
chart.render()
File "build/bdist.linux-i686/egg/pycha/chart.py", line 89, in render
File "build/bdist.linux-i686/egg/pycha/chart.py", line 135, in _update
File "build/bdist.linux-i686/egg/pycha/bar.py", line 31, in _updateXY
File "build/bdist.linux-i686/egg/pycha/chart.py", line 181, in _updateXY
AttributeError: 'cairo.SVGSurface' object has no attribute 'get_width'
This is with relatorio trunk and pycha-0.4.1-py2.5.egg
It's probably a bug in either Pycha or even Cairo, but there should be at least a note about it in Relatorio.
Change History
Note: See
TracTickets for help on using
tickets.
