reportlab import error after dundled using py2exe

SANKAR . shankarphy at
Fri Jul 22 04:55:51 CEST 2011

Hi all,

I bundled a small script written in python using py2exe. The script uses
many packages and one of them is  reportlab.
After bundling using py2exe  I tried to run the exe file and it is
returning following error:

Traceback (most recent call last):
File "", line 12, in <module>
File "reportlab\pdfgen\canvas.pyc", line 25, in <
File "reportlab\pdfbase\pdfdoc.pyc", line 22, in
File "reportlab\pdfbase\pdfmetrics.pyc", line 23,
File "reportlab\pdfbase\_fontdata.pyc", line 158,
ImportError: No module named _fontdata_enc_winansi

But I could see the '_fontdata_enc_winansi' module in reportlab folder.
Could someone help me to fix this.

Your help is much appreciated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list