[mod_python] The Session problem with mod_python3.2.7

Jim Gallacher jpg at jgassociates.ca
Tue Feb 21 15:55:00 EST 2006

Gavin wrote:
> Hello all,
> 1.Redhat AS3.0
> 2.apache 2.0.55
> 3.python2.4.2
> 4.mod_python3.2.7
> compile with:
> ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-python-src=/usr/tools/Python-2.4.2 --with-max-locks=32

I'm not sure if this specifically relates to your problem, but there may
be a problem with the way you've compiled mod_python.

Your other emails indicate you have python 2.3.5 installed as well as
well as python 2.4. You need to use --with-python, not --with-python-src
in your configure. The --with-python-src switch is only required for
building the documentation and does not tell configure which python
binary to use. Make sure you are using the correct by version by
configuring and compiling again:

./configure --with-apxs=/usr/local/apache2/bin/apxs
--with-python=/path/to/python2.4-binary --with-max-locks=32

Without the --with-python option, configure will try to find python on
your path. On AS3.0 this may be python 3.2.5, unless you've changed your
default OS configuration.

When you tried Graham's interpreter test, are you sure you were using
python2.4 and not python2.3? Perhaps you could try again and cut and
paste the output? eg.

jim at carbon:/tmp$ python
Python 2.3.5 (#2, Nov 20 2005, 16:40:39)
[GCC 4.0.3 20051111 (prerelease) (Debian 4.0.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import anydbm
>>> db = anydbm.open('/tmp/mp_sess_test.dbm','c')


More information about the Mod_python mailing list