<div>Hi all...</div>
<div>&nbsp;</div>
<div>I created an exe for my application. While generating the exe, py2exe reports that win32com.shell module is not found and continues generating exe.</div>
<div>When I try to run the exe, I get an import error that &quot;No module named shell&quot;.......</div>
<div>&nbsp;</div>
<div>I opened pythonwin and tried importing wincom.shell. Its working fine.....!!!!! Then where am I doing wrong....</div>
<div>&nbsp;</div>
<div>My setup file looks like:</div>
<div>&nbsp;</div>
<div>
<p>#Start here <br>from distutils.core import setup <br>import py2exe </p>
<p>setup(options = {&quot;py2exe&quot;: {&quot;compressed&quot;: 1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;optimize&quot;: 2,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;ascii&quot;: 1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;bundle_files&quot;: 1}},<br>
&nbsp;&nbsp;&nbsp; zipfile = None,<br>&nbsp;&nbsp;&nbsp; console = [&quot;Sample.py&quot;],<br>&nbsp;&nbsp;&nbsp; name = &#39;test&#39;) <br>#End here<br></p>
<p>Thanks..</p>
<p>Tejovathi</p>
<p>&nbsp;</p></div>