[reportlab-users] Error: test_pdfgen_general.py

Michael Hipp michael at hipp.com
Tue May 23 17:11:07 EDT 2006

This is my first attempt at reportlab and I just installed it. Also appears to be a new release. I'm getting errors when running 'test_pdfgen_general.py':

ERROR: Make a PDFgen document with most graphics features
Traceback (most recent call last):
  File "C:\Python24\reportlab\test\test_pdfgen_general.py", line 832, in test0
  File "C:\Python24\reportlab\test\test_pdfgen_general.py", line 795, in run
    c = makeDocument(filename)
  File "C:\Python24\reportlab\test\test_pdfgen_general.py", line 708, in makeDocument
    c.rect(1*inch, 1.2*inch, w, h)
UnboundLocalError: local variable 'w' referenced before assignment

Ran 1 test in 0.172s

FAILED (errors=1)

I'm on W2k SP4 and Python 2.4.2. I don't have PIL installed.

Any help?


More information about the reportlab-users mailing list