reportlab import error after dundled using py2exe

SANKAR . shankarphy at gmail.com
Thu Jul 21 22:55:51 EDT 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:

C:\Python26\dist>DELchek.exe
Traceback (most recent call last):
File "DELchek.py", 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.

Thanks
Sankar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110722/2604288b/attachment.html>


More information about the Python-list mailing list