[reportlab-users] pyRXP - strange non-deterministic errors on python 2.7 and 64-bit Linux

Robin Becker robin at reportlab.com
Mon May 16 05:01:26 EDT 2011


On 15/05/2011 20:31, Roger Whittaker wrote:
..........

>

> It does seem to happen only on 64-bit systems, and it does seem to

> happen only with recent Linux versions. So I'm guessing that the

> most likely reason might be something in recent versions of glibc

......
Another approach might be to try passing an entity opening callback into the
parser that could be used to try and see what information is being parsed to
obtain the entity.


eg

#! /usr/bin/env python
from sys import argv
from pyRXP import Parser
infile = open(argv[1], 'r').read()
p = Parser()
def eoCB(entity):
print 'eoCB(%r)' % entity
return entity
parsed = p.parse(infile,eoCB=eoCB)


--
Robin Becker


More information about the reportlab-users mailing list