ajeebkp23 / python-relatorio

Automatically exported from code.google.com/p/python-relatorio. Thus it enables to to install this package via pip.
GNU General Public License v3.0
0 stars 0 forks source link

Example fails #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. On python 2.7. relatorio installed with code of today relatorio==0.6.2
2. python demo_odf.py 
~/virtualenvs/relatorio2/local/lib/python2.7/site-packages/relatorio-0.6.2-py2.7
.egg/relatorio/templates/__init__.py:29: UserWarning: Unable to load plugin 
'chart'
  warnings.warn("Unable to load plugin '%s'" % name)
generating output_basic.odt...  done
generating output_template_basic.odt... 
Traceback (most recent call last):
  File "demo_odf.py", line 23, in <module>
    filepath=abspath(join(dirname(__file__), 'basic.odt')))
  File "~/virtualenvs/relatorio2/local/lib/python2.7/site-packages/relatorio-0.6.2-py2.7.egg/relatorio/templates/opendocument.py", line 247, in __init__
    encoding, lookup, allow_exec)
  File "~/virtualenvs/relatorio2/local/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/markup.py", line 67, in __init__
    allow_exec=allow_exec)
  File "~/virtualenvs/relatorio2/local/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/base.py", line 417, in __init__
    source = BytesIO(source)
TypeError: must be string or buffer, not None

What version of the product are you using? On what operating system?

Ubuntu 14.04 python 2.7 relatorio==0.6.2

Please provide any additional information below.

Regards

Original issue reported on code.google.com by florian....@gmail.com on 24 Feb 2015 at 2:33

GoogleCodeExporter commented 9 years ago
It is due to incompatible change in Genshi 0.7
Here is a patch that should fix the issue: 
http://codereview.appspot.com/203320043

Original comment by cedric.krier@b2ck.com on 24 Feb 2015 at 3:32

GoogleCodeExporter commented 9 years ago
thank you!

Original comment by florian....@gmail.com on 25 Feb 2015 at 9:28