mod_python "version mismatch"

Miroslav Lachman 000.fbsd at
Sun Apr 5 14:08:32 PDT 2009

Steve Williams wrote:
> On Apache start/restart, this always appears in httpd-error.log:
> python_init: Python version mismatch, expected '2.5.2', found '2.5.4'.
> As far as I know, it doesn't hurt anything, but is this something that 
> should be resolved?
> I did some googling.  I didn't understand everything I read, but I 
> believe the error is because I'm using:
> apache-2.2.11_3
> Together with:
> mod_python-3.3.1_2
> python25-2.5.4_1
> The dependencies for mod_python-3.3.1_2 include apache-2.0.63_2.  I 
> assume that means mod_python-3.3.1_2 is set up for Apache 2.0, not 2.2, 
> which appears to be the cause of the version mismatch in other *nix 
> environments.

I see it few days ago. I think you installed (compiled) mod_python in 
time when you have python 2.5.2 installed and later you upgraded python 
to 2.5.4. If you want to fix it, just recompile (reinstall) mod_python 
and restart Apache.

Miroslav Lachman

More information about the freebsd-apache mailing list