[reportlab-users] Error: test_pdfgen_general.py
Tobin Cataldo
tcataldo at bham.lib.al.us
Tue May 23 17:24:24 EDT 2006
I would try changing the (w and h) to actual lengths like 2*inch...
Python doesn't allow initiated, undefined variables - that's Perl.
Tobin
Michael Hipp wrote:
> 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':
>
> C:\Python24\reportlab\test>test_pdfgen_general.py
> E
> ======================================================================
> 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
> run(outputfile('test_pdfgen_general.pdf'))
> 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?
>
> Thanks,
> Michael
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
>
>
More information about the reportlab-users
mailing list