[Tutor] ImportError: No module named...
Marco Soldavini
magyar1886 at gmail.com
Sun Apr 17 17:41:04 EDT 2016
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
More information about the Tutor
mailing list