Could someone tell me how to convert python package (python setup.py<br><br><div class="gmail_quote">On Tue, Mar 2, 2010 at 8:10 PM, Scott Ballard <span dir="ltr"><<a href="mailto:scott@scottballard.net" target="_blank">scott@scottballard.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
<pre>You need to include sip:
<a href="http://www.py2exe.org/index.cgi/Py2exeAndPyQt" target="_blank">http://www.py2exe.org/index.cgi/Py2exeAndPyQt</a>
from distutils.core import setup
import py2exe
setup(windows=[{"script":"main.py"}], options={"py2exe":{"includes":["sip"]}})</pre>
-Scott<div><div></div><div><br>
<br>
On 3/2/2010 8:51 AM, Anshul Jain wrote:
</div></div><blockquote type="cite"><div><div></div><div>I have made a very simple browser using Qwebview in PyQt.
Now i want to package it as an installer to distribute it. I have tried
out py2exe. But after i do the command:
<div><br>
</div>
<div>python setup.py py2exe</div>
<div><br>
</div>
<div>and then try and run the .exe file created, i get an error, "no
module named sip found". please help me where am i going wrong. My
setup.py code is as follows:</div>
<div><br>
</div>
<div>
<div>from distutils.core import setup</div>
<div><br>
</div>
<div>setup(name = "Aura Browser",</div>
<div> version = "0.1",</div>
<div> description = "A tiny Web Browser",</div>
<div> author = "Anshul kumar Jain",</div>
<div> author_email = "<a href="mailto:anshul@seeta.in" target="_blank">anshul@seeta.in</a>",</div>
<div> url = "<a href="http://seeta.in/j/team.html" target="_blank">http://seeta.in/j/team.html</a>",</div>
<div> packages = [""],</div>
<div> data_files = [("browser/images", ["images/back.png",</div>
<div> "images/home.png",</div>
<div> "images/reload.png",</div>
<div> "images/next.png",</div>
<div> "images/stop.png",])]</div>
<div> )</div>
<div><br>
</div>
<div>the code has 'browser.py' as main file and a Qt python class
file 'httpWidget.py'</div>
<div><br>
</div>
<div>Please help me sort out the problem.</div>
<div><br>
</div>
<div>Thanks</div>
</div>
</div></div><pre><fieldset></fieldset>
_______________________________________________
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><div>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></div>
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4909 (20100302) __________
The message was checked by ESET NOD32 Antivirus.
<a href="http://www.eset.com" target="_blank">http://www.eset.com</a>
</pre>
</blockquote>
</div>
<br>_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br><br clear="all"><br>-- <br>Ruslan Popov<br>phone: +7 916 926 1205<br>
<br>