Menu

#36 Bug in test_gen_general.py

closed
nobody
None
5
2002-02-21
2002-01-23
Anonymous
No

I'm a new user of ReportLab and I tried to run the very
first test, i.e. test_gen_general.py

I didn't yet installed the PIL library and I got the
following error:
Traceback (most recent call last):
File "test_pdfgen_general.py", line 743, in test1
run('test_pdfgen_general.pdf')
File "test_pdfgen_general.py", line 718, in run
c.save()
AttributeError: 'None' object has no attribute
'save'

After reading the code, I found that the lines 626 and
following of test_gen_general.py should better be:
if PIL_Image is None:
t.textOut("Python Imaging Library not found!
You need it to see images.")
##c.save()
return c

Hoping this will help,

O. CAYROL.

--
Olivier CAYROL LOGILAB - Paris
(France)

http://www.logilab.com/
Change your millenium, try NARVAL the Intelligent
Personal Assistant.

Discussion

  • Robin Becker

    Robin Becker - 2002-02-21

    Logged In: YES
    user_id=6946

    Seems to have been done already

     
  • Robin Becker

    Robin Becker - 2002-02-21
    • status: open --> closed
     

Log in to post a comment.