[reportlab-users] Unable to install with python 2.7.3

Robin Becker robin at reportlab.com
Thu Nov 29 07:51:43 EST 2012


Sébastien,

I think you are missing some/all of the C extensions. I'm not exactly sure how
you installed, but presumably at least _renderPM.so is missing which causes most
if not all of the graphics stuff to fail.

If you try to install with the system python you'll normally need to use sudo to
make setup.py install work properly.
--
Robin Becker

On 29/11/2012 12:45, Moretti Sébastien wrote:

> Hi

>

> I am new to reportlab and try to install it from source on python 2.7.3 Linux.

>

> Build and install steps work fine but I experience errors with tests.

> All errors are XML related (I joined part of the output)

>

> All listed requirements are there, so I don't see what is missing.

> Thanks

>

>

> .....................E............E...........................E............................................................E...........Failed

> to import renderPM.

> Traceback (most recent call last):

> File "graphdocpy.py", line 982, in <module>

...........

> "/builddir/build/BUILD/reportlab-2.6/src/reportlab/platypus/paragraph.py", line

> 937, in _setup

> % (_parser.errors[0],text[:min(30,len(text))]))

> ValueError: xml parser error (bogus < or &) in paragraph beginning

> '<b>gridStrokeLineCap</b> Grid '

> .............................................E.................E........

> ======================================================================

> ERROR: test0 (test_platypus_index.IndexTestCase)

> ----------------------------------------------------------------------

> Traceback (most recent call last):

> File "/builddir/build/BUILD/reportlab-2.6/tests/test_platypus_index.py", line

> 108, in test0

> para = Paragraph(txt, makeBodyStyle())

> File

> "/builddir/build/BUILD/reportlab-2.6/src/reportlab/platypus/paragraph.py", line

> 919, in __init__

> self._setup(text, style, bulletText or getattr(style,'bulletText',None),

> frags, cleanBlockQuotedText)

> File

> "/builddir/build/BUILD/reportlab-2.6/src/reportlab/platypus/paragraph.py", line

> 937, in _setup

> % (_parser.errors[0],text[:min(30,len(text))]))

> ValueError: xml parser error (; missing after entity/char reference) in

> paragraph beginning

> 'Marks &amp; Spencer - purveyor'

> ======================================================================

>

>

> --

> Sébastien Moretti

>

> _______________________________________________

> reportlab-users mailing list

> reportlab-users at lists2.reportlab.com

> http://two.pairlist.net/mailman/listinfo/reportlab-users

>





More information about the reportlab-users mailing list