[mod_python] MODPYTHON-225

Graham Dumpleton graham.dumpleton at gmail.com
Fri Sep 14 02:49:01 EDT 2007


What do you get when run:

  otool -L mod_python.so

In the 'envvars' script file in the same directory as your httpd binary, add:

  PYTHONEXECUTABLE=/some/path/python
  export PYTHONEXECUTABLE

where the path is to the Python 2.5 executable.

Stop and then start (not restart) your Apache.

Does that help?

Graham

On 14/09/2007, Porcari Giovanni <giovanni.porcari at gmail.com> wrote:
> Hi All
>
> I am in the situation described here:
> https://issues.apache.org/jira/browse/MODPYTHON-225
>
> OSX 10.4.10 - apache 2.2.6 - modpython 3.3.1
> I installed python 2.5.1 using binary from python.org.
>
> the log file says:
>
> [Fri Sep 14 08:24:35 2007] [error] python_init: Python version
> mismatch, expected '2.5.1', found '2.3.5'.
> [Fri Sep 14 08:24:35 2007] [error] python_init: Python executable
> found '/usr/local/apache2/bin/httpd'.
> [Fri Sep 14 08:24:35 2007] [error] python_init: Python path being
> used '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python23.zip:/System/Library/Frameworks/Python.framework/Versions/2.3/
> lib/python2.3/:/System/Library/Frameworks/Python.framework/Versions/
> 2.3/lib/python2.3/plat-darwin:/System/Library/Frameworks/
> Python.framework/Versions/2.3/lib/python2.3/plat-mac:/System/Library/
> Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-
> scriptpackages:/System/Library/Frameworks/Python.framework/Versions/
> 2.3/lib/python2.3/lib-tk:/System/Library/Frameworks/Python.framework/
> Versions/2.3/lib/python2.3/lib-dynload'.
> [Fri Sep 14 08:24:35 2007] [notice] mod_python: Creating 8 session
> mutexes based on 256 max processes and 0 max threads.
> [Fri Sep 14 08:24:35 2007] [notice] mod_python: using
> mutex_directory /tmp
> [Fri Sep 14 08:24:35 2007] [notice] Apache/2.2.6 (Unix) mod_python/
> 3.3.1 Python/2.3.5 configured -- resuming normal operations
>
> So it seems that modpython find python 2.3.5 instead of 2.5.1.
>
> After a lot of attempts and google search i'm giving up :(
>
> Can you help me ?
>
>
> Thank you
>
> G.Porcari
>
> _______________________________________________
> 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