<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 22/02/11 8:57 PM, Ronald Oussoren wrote:
<blockquote cite="mid:714A4776-E0B0-458E-A519-F4A1E96766B5@mac.com"
type="cite">
<div>
<div>On 21 Feb, 2011, at 12:33, Brendan Simon (eTRIX) wrote:</div>
<br class="Apple-interchange-newline">
<blockquote qctoggled="true" type="cite">
<div bgcolor="#ffffff" text="#000000"> On 21/02/11 10:00 PM, <a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:pythonmac-sig-request@python.org">pythonmac-sig-request@python.org</a>
wrote:
<blockquote
cite="mid:mailman.40.1298286003.8191.pythonmac-sig@python.org"
type="cite">
<table class="header-part1" border="0" cellpadding="0"
cellspacing="0" width="100%">
<tbody>
<tr>
<td>
<div class="headerdisplayname" style="display:
inline;">Subject: </div>
Re: [Pythonmac-SIG] py2app with wxpython</td>
</tr>
<tr>
<td>
<div class="headerdisplayname" style="display:
inline;">From: </div>
Ned Deily <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:nad@acm.org"><nad@acm.org></a></td>
</tr>
<tr>
<td>
<div class="headerdisplayname" style="display:
inline;">Date: </div>
Sun, 20 Feb 2011 15:46:05 -0800</td>
</tr>
</tbody>
</table>
<table class="header-part2" border="0" cellpadding="0"
cellspacing="0" width="100%">
<tbody>
<tr>
<td>
<div class="headerdisplayname" style="display:
inline;">To: </div>
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:pythonmac-sig@python.org">pythonmac-sig@python.org</a></td>
</tr>
</tbody>
</table>
<br>
<div class="moz-text-plain" wrap="true"
graphical-quote="true" style="font-family: -moz-fixed;
font-size: 12px;" lang="x-western">
<pre wrap="">In article <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:4D61918E.1010308@etrix.com.au"><4D61918E.1010308@etrix.com.au></a>,
"Brendan Simon (eTRIX)" <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:brendan.simon@etrix.com.au"><brendan.simon@etrix.com.au></a> wrote:
</pre>
<blockquote type="cite" style="color: rgb(0, 0, 0);">
<pre wrap=""><span class="moz-txt-citetags">> </span>Do you need to specify 'pythonw' as the interpreter ??
<span class="moz-txt-citetags">> </span>It may depend on python version. I found (on OS X) that Python 2.7
<span class="moz-txt-citetags">> </span>requires pythonw rather than python to run my wxPython apps.
</pre>
</blockquote>
<pre wrap="">That sounds very suspicious. On OS X installs, bin/python and
bin/pythonw are supposed to be identical.
</pre>
</div>
</blockquote>
Indeed you are right. The python and pythonw varieties are
identical for Python 2.7 and my wxPython application works
fine with either.<br>
<br>
I tried again with my Python 2.5.4 install and that does
have the problem.<br>
</div>
</blockquote>
<div><br>
</div>
Which python 2.5.4 is that (that is, how did you install it)?
Are you sure that 'python' and 'pythonw' refer to the same
python installation (what is sys.prefix for these two commands)?</div>
</blockquote>
I'm using standard python.org builds.<br>
<br>
<br>
brendan$ python<br>
Python 2.5.4 (r254:67917, Dec 23 2008, 14:57:27) <br>
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin<br>
Type "help", "copyright", "credits" or "license" for more
information.<br>
>>> import sys<br>
>>> print sys.prefix<br>
/Users/brendan/virtualenv/xxx-py25/bin/..<br>
<br>
<br>
brendan$ pythonw<br>
Python 2.5.4 (r254:67917, Dec 23 2008, 14:57:27) <br>
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin<br>
Type "help", "copyright", "credits" or "license" for more
information.<br>
>>> import sys<br>
>>> print sys.prefix<br>
/Library/Frameworks/Python.framework/Versions/2.5<br>
<br>
<br>
Hmmm, it might be something to do with my virtualenv setup (I've
only just started using virtualenv).<br>
<br>
brendan$ ls -l ~/virtualenv/xxx-py25/bin/python*<br>
-rwxrwxr-x 1 brendan staff 30028 27 Jan 22:11
/Users/brendan/virtualenv/xxx-py25/bin/python<br>
lrwxr-xr-x 1 brendan staff 6 27 Jan 22:11
/Users/brendan/virtualenv/xxx-py25/bin/python2.5 -> python<br>
lrwxr-xr-x 1 brendan staff 61 27 Jan 22:20
/Users/brendan/virtualenv/xxx-py25/bin/pythonw ->
/Library/Frameworks/Python.framework/Versions/2.5/bin/pythonw<br>
<br>
<br>
</body>
</html>