python - Troubleshoot reportlab heisenbug -


using django 1.4 / python 2.7 / reportlab (open source version) generate pdf.

things have worked great until now. pdf generation (as in http requested returned/downloaded generated pdf file) on django 1.3 , not open public. have upgraded , made feature free on many pages , starting have problems.

i 'random' problems (as in see there exceptions once in while in logs) have never been able reproduce problems myself (things works of time).

what following type of errors happens in pairs

    exception value: paraparser instance has no attribute '_seq'     exception location: /home/tss/lib/python2.7/reportlab-2.5-py2.7-linux-i686.egg/reportlab/platypus/paraparser.py in _complete_parse, line 1061 

and

    exception value: 'nonetype' object has no attribute 'close'     exception location: /home/tss/lib/python2.7/reportlab-2.5-py2.7-linux-i686.egg/reportlab/lib/xmllib.py in close, line 521 

given having hard time reproducing , not sure if problem on side or reportlab - open suggestions on how troubleshoot (could sync issue in many generating conccurently or plain bug or...)???

posted question on reportlab mailing list , reportlab not thread-safe.

so usage of reportlab end getting intermittent problems , running in multithread / web app environment really strange problems due this.

now need work out replace reportlab with, hmm....

/ jens


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -