[Tutor] ImportError: No module named...

Marco Soldavini magyar1886 at gmail.com
Mon Apr 18 04:18:24 EDT 2016


Yeah, I spotted the mistake. There was a file left in the folder named
reportlab.pyc which I could not see from the pycharm interface.

Thanks!

On Mon, Apr 18, 2016 at 1:47 AM, Danny Yoo <danny.yoo at gmail.com> wrote:
>
>> 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