I am running this configuration

Win7 64 bit
Python 2.7.9
PyCharm Community Edition 4.5.4
Reportlab-2.8.win32-py2.7

I am try to running this simple example code

from reportlab.pdfgen import canvas
from reportlab.platypus import Image

im = Image ("logo.jpg")
c = canvas.Canvas("hello.pdf")
c.drawString(100,750,"Welcome to Reportlab!")
c.save()

But I get the following error code on line 1

ImportError: No module named pdfgen


I've checked my install and I have reportlab under
C:\Python27\Lib\site-packages\reportlab

I don't understand why this was working last time and now it doesn't anymore.
It could be an install problem?

Thanks
Marco
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to