[mod_python] mod_python still using Python 2.3 after upgrading to 2.5

Graham Dumpleton graham.dumpleton at gmail.com
Sat Oct 6 23:41:15 EDT 2007


If you are using RPMs for Python installation, did you ensure that you
installed the python-dev package for Python 2.5?

Also, are you doing a 'restart' or Apache, or a 'stop' and then
'start'. If you do just a 'restart' it may not unload the old
mod_python properly, you must do a 'stop' and 'start'.

Graham

On 07/10/2007, Aaron Bycoffe <bycoffe at gmail.com> wrote:
> I tried deleting mod_python.so and reinstalling mod_python. It
> re-created mod_python.so in the same place (/usr/lib/apache/) when I
> reinstalled mod_python using --with-python=/usr/bin/python2.5, but
> mod_python.so still appears to be using Python 2.3. When I grep for
> 'python2.3' on mod_python.so, I get "Binary file mod_python.so
> matches."
>
> There's nothing in the Apache error logs about a version mismatch.
>
> On 10/6/07, Graham Dumpleton <graham.dumpleton at gmail.com> wrote:
> > Are you 100 percent confident that your new mod_python.so copied into
> > the location where Apache was loading it and that it replaced the
> > existing version? Check the time stamps of the mod_python.so where
> > Apache is loading it from to see if it changed.
> >
> > Is there anything in the Apache error logs about a version mismatch,
> > ie. compile time Python version does match runtime version of Python
> > library found?
> >
> > Graham
> >
> > On 07/10/2007, Aaron Bycoffe <bycoffe at gmail.com> wrote:
> > > I have upgraded from Python 2.3 to Python 2.5. After the upgrade, I
> > > reinstalled mod_python 3.3.1. I ran the following configure command:
> > > ./configure --with-apxs=/usr/sbin/apxs --with-python=/usr/bin/python2.5
> > >
> > > However, mod_python is still using Python 2.3. How do I get it to use
> > > 2.5 instead? (I have restarted Apache.)
> > >
> > > This is from a mod_python.testhandler info page:
> > >
> > > Apache version: Apache/2.0.61 (Unix) mod_ssl/2.0.61 p¯" @¯" ˆä
> > > PHP/4.4.7 mod_python/3.3.1 Python/2.3.4 mod_perl/2.0.3 Perl/v5.8.5
> > >
> > > Python sys.version: 2.3.4 (#1, Oct 11 2006, 06:18:43)  [GCC 3.4.6
> > > 20060404 (Red Hat 3.4.6-3)]
> > >
> > > Python sys.path:
> > > /usr/lib/python2.3/site-packages/MySQL_python-1.2.2-py2.3-linux-i686.egg
> > > /usr/lib/python2.3/site-packages/setuptools-0.6c6-py2.3.egg
> > > /usr/lib/python2.3/site-packages/flup-1.0-py2.3.egg
> > > /usr/lib/python23.zip
> > > /usr/lib/python2.3
> > > /usr/lib/python2.3/plat-linux2
> > > /usr/lib/python2.3/lib-tk
> > > /usr/lib/python2.3/lib-dynload
> > > /usr/lib/python2.3/site-packages
> > > /usr/lib/python2.3/site-packages/PIL
> > >
> > >
> > > Thanks.
> > >
> > > _______________________________________________
> > > Mod_python mailing list
> > > Mod_python at modpython.org
> > > http://mailman.modpython.org/mailman/listinfo/mod_python
> > >
> >
>



More information about the Mod_python mailing list