Re: Mac OS X compile issue (selecting python2.5)

Patrick May <[email protected]> Sun, 13 Jun 2010 10:50:34 -0400
Newsgroups gmane.comp.python.mod_python
Message-ID <[email protected]>
--===============0364737573==
Content-Type: multipart/alternative; boundary=001636284c72c3cda00488ea7ffe

--001636284c72c3cda00488ea7ffe
Content-Type: text/plain; charset=ISO-8859-1

After posting the bug I discovered your blog post, and have begun the
process of switching to mod_wsgi :-)

Best,

~ patrick


On Sun, Jun 13, 2010 at 9:26 AM, Graham Dumpleton <
[email protected]> wrote:

> On 12 June 2010 09:04, Patrick May <[email protected]> wrote:
> > Hello,
> > I have a python web application which requires python2.5.  I am
> attempting
> > to compile mod_python on Snow Leopard against the OS apache and the OS
> > python2.5.  The steps I have taken are as follows:
> > 1. checked out mod_python from svn
> >   $ svn co
> https://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk
> > mod_python-svn
> > 2. configured mod_python to use the Snow Leopard Apache and the Snow
> Leopard
> > python2.5
> >   $ cd mod_python-svn
> >   $ ./configure --with-apxs=/usr/sbin/apxs
> --with-python=/usr/bin/python2.5
> > 3. built mod_python
> >   $ make
> > The resulting mod_python.so is linked against the 2.6 framework:
> >   $ otool -L src/mod_python.so
> >   src/mod_python.so:
> > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
> > 125.0.1)
> > /System/Library/Frameworks/Python.framework/Versions/2.6/Python
> > (compatibility version 2.6.0, current version 2.6.1)
> > This is essentially broken for my purposes.  If I continue the process
> and
> > install, it becomes apparent that mod_python is indeed running the 2.6
> > interpreter and my application does not run.  I have seen some
> conversation
> > about this issue, but those conversations did not appear productive.
> > Is 2.5 simply not supported?  Is this a known bug on mac os x?  Are there
> > any suggestions for remedying the situation?
>
> This is exactly the outstanding problem I mention in relation to MacOS X
> in:
>
>
> http://blog.dscpl.com.au/2010/05/modpython-project-soon-to-be-officially.html
>
> The question at this point is why must you use mod_python?
>
> Graham
>



-- 
Patrick May
+1 (347) 232-5208

--001636284c72c3cda00488ea7ffe
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

After posting the bug I discovered your blog post, and have begun the proce=
ss of switching to mod_wsgi :-)<div><br></div><div>Best,</div><div><br></di=
v><div>~ patrick</div><div><br><br><div class=3D"gmail_quote">On Sun, Jun 1=
3, 2010 at 9:26 AM, Graham Dumpleton <span dir=3D"ltr">&lt;<a href=3D"mailt=
o:[email protected]" target=3D"_blank">[email protected]<=
/a>&gt;</span> wrote:<br>


<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div><div></div><div>On 12 June 2010 09:04, =
Patrick May &lt;<a href=3D"mailto:[email protected]" target=3D"_blank"=
>[email protected]</a>&gt; wrote:<br>



&gt; Hello,<br>
&gt; I have a python web application which requires python2.5. =A0I am atte=
mpting<br>
&gt; to compile mod_python on Snow Leopard against the OS apache and the OS=
<br>
&gt; python2.5. =A0The steps I have taken are as follows:<br>
&gt; 1. checked out mod_python from svn<br>
&gt; =A0=A0$ svn co <a href=3D"https://svn.apache.org/repos/asf/quetzalcoat=
l/mod_python/trunk" target=3D"_blank">https://svn.apache.org/repos/asf/quet=
zalcoatl/mod_python/trunk</a><br>
&gt; mod_python-svn<br>
&gt; 2. configured mod_python to use the Snow Leopard Apache and the Snow L=
eopard<br>
&gt; python2.5<br>
&gt; =A0=A0$ cd mod_python-svn<br>
&gt; =A0=A0$ ./configure --with-apxs=3D/usr/sbin/apxs --with-python=3D/usr/=
bin/python2.5<br>
&gt; 3. built mod_python<br>
&gt; =A0=A0$ make<br>
&gt; The resulting mod_python.so is linked against the 2.6 framework:<br>
&gt; =A0=A0$ otool -L src/mod_python.so<br>
&gt; =A0=A0src/mod_python.so:<br>
&gt; /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current versi=
on<br>
&gt; 125.0.1)<br>
&gt; /System/Library/Frameworks/Python.framework/Versions/2.6/Python<br>
&gt; (compatibility version 2.6.0, current version 2.6.1)<br>
&gt; This is essentially broken for my purposes. =A0If I continue the proce=
ss and<br>
&gt; install, it becomes apparent that mod_python is indeed running the 2.6=
<br>
&gt; interpreter and my application does not run. =A0I have seen some conve=
rsation<br>
&gt; about this issue, but those conversations did not appear productive.<b=
r>
&gt; Is 2.5 simply not supported? =A0Is this a known bug on mac os x? =A0Ar=
e there<br>
&gt; any suggestions for remedying the situation?<br>
<br>
</div></div>This is exactly the outstanding problem I mention in relation t=
o MacOS X in:<br>
<br>
 =A0<a href=3D"http://blog.dscpl.com.au/2010/05/modpython-project-soon-to-b=
e-officially.html" target=3D"_blank">http://blog.dscpl.com.au/2010/05/modpy=
thon-project-soon-to-be-officially.html</a><br>
<br>
The question at this point is why must you use mod_python?<br>
<font color=3D"#888888"><br>
Graham<br>
</font></blockquote></div><br><br clear=3D"all"><br>-- <br>Patrick May<br>+=
1 (347) 232-5208<br><br>
</div>

--001636284c72c3cda00488ea7ffe--

--===============0364737573==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mod_python mailing list
[email protected]
http://mailman.modpython.org/mailman/listinfo/mod_python

--===============0364737573==--