[Tutor] ImportError: No module named...

Danny Yoo danny.yoo at gmail.com
Sun Apr 17 19:47:54 EDT 2016


> But I get the following error code on line 1
>
> ImportError: No module named pdfgen
>

Is reportlab.pdfgen a standard part of that package's installation?

You might want to check for possible conflicts with other things called
reportlab.  Do you have any files in the current directory that are called
"reportlab"?

You might also try the following:

###
import reportlab
print(reportlab.__file__)
###

which hopefully should point to the expected path.


More information about the Tutor mailing list