<div>your suggestion worked.Thanks Robin.</div>
<div> </div>
<div>-Sankar<br><br></div>
<div class="gmail_quote">On Mon, Jul 25, 2011 at 8:28 PM, Robin Becker <span dir="ltr"><<a href="mailto:robin@reportlab.com">robin@reportlab.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On 22/07/2011 03:55, SANKAR . wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi all,<br><br></blockquote>........ 
<div class="im"><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>C:\Python26\dist>DELchek.exe<br>Traceback (most recent call last):<br>File "DELchek.py", line 12, in<module><br>
File "reportlab\pdfgen\canvas.pyc", line 25, in<<br>File "reportlab\pdfbase\pdfdoc.pyc"<u></u>, line 22, in<br>File "reportlab\pdfbase\pdfmetrics.<u></u>pyc", line 23,<br>File "reportlab\pdfbase\_fontdata.<u></u>pyc", line 158,<br>
ImportError: No module named _fontdata_enc_winansi<br><br>But I could see the '_fontdata_enc_winansi' module in reportlab folder.<br>Could someone help me to fix this.<br><br></blockquote></div>.........<br>You can try asking this in the reportlab list<br>
<br><a href="mailto:reportlab-users@lists2.reportlab.com" target="_blank">reportlab-users@lists2.<u></u>reportlab.com</a><br><br>but perhaps this is more about py2exe than reportlab. The modules _fontdata_enc_* & _fontdata_widths_* are imported dynamically in _fontdata.py rather than explicitly. I suspect that py2exe needs to be given a hint that this is going on. However, I'm uncertain as to why this should be required since even if the imports are being dynamically imported that is done as soon as _fontdata is imported (ie it's part of the module code) so those modules should be seen by the setup.py.<br>
<br>If you don't have reportlab explicitly imported as part of the packages try adding this to the packages list<br><br>                       packages=[<br><br>..............................<u></u>..........<br><br><br>
                                       'reportlab',<br>                                       'reportlab.graphics.charts',<br>                                       'reportlab.graphics.samples',<br>
                                       'reportlab.graphics.widgets',<br>                                       'reportlab.graphics.barcode',<br>                                       'reportlab.graphics',<br>
                                       'reportlab.lib',<br>                                       'reportlab.pdfbase',<br>                                       'reportlab.pdfgen',<br>                                       'reportlab.platypus',<br>
                                       ],<br><br><br>that's what we use to make the distributions and seems to work.<br>-- <br>Robin Becker<br><font color="#888888"><br>-- <br><a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>