<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<pre>You need to include sip:
<a class="moz-txt-link-freetext" href="http://www.py2exe.org/index.cgi/Py2exeAndPyQt">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<br>
<br>
On 3/2/2010 8:51 AM, Anshul Jain wrote:
<blockquote
cite="mid:d1177c481003020851i3a163d02y4c698f0143397316@mail.gmail.com"
type="cite">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 moz-do-not-send="true"
href="mailto:anshul@seeta.in">anshul@seeta.in</a>",</div>
<div> url = "<a moz-do-not-send="true"
href="http://seeta.in/j/team.html">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>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
PyQt mailing list <a class="moz-txt-link-abbreviated" href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>
<a class="moz-txt-link-freetext" href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a>
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4909 (20100302) __________
The message was checked by ESET NOD32 Antivirus.
<a class="moz-txt-link-freetext" href="http://www.eset.com">http://www.eset.com</a>
</pre>
</blockquote>
</body>
</html>