Pythontr

husonet | Tarih: 13.10.2013

Apache Python version mismatch, expected '2.7.2+', found '2.7.3'. hatası

Hata listesi

[Sun Oct 13 01:35:56 2013] [notice] mod_python: Creating 8 session mutexes based on 70 max processes and 0 max threads.
[Sun Oct 13 01:35:56 2013] [notice] mod_python: using mutex_directory /tmp
[Sun Oct 13 01:35:56 2013] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u5 mod_python/3.3.1 Python/2.7.3 configured -- resuming normal operations
[Sun Oct 13 01:37:58 2013] [notice] caught SIGTERM, shutting down
[Sun Oct 13 01:37:59 2013] [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'.
[Sun Oct 13 01:37:59 2013] [error] python_init: Python executable found '/usr/bin/python'.
[Sun Oct 13 01:37:59 2013] [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'.
[Sun Oct 13 01:37:59 2013] [notice] mod_python: Creating 8 session mutexes based on 70 max processes and 0 max threads.
[Sun Oct 13 01:37:59 2013] [notice] mod_python: using mutex_directory /tmp
[Sun Oct 13 01:37:59 2013] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u5 mod_python/3.3.1 Python/2.7.3 configured -- resuming normal operations

Düzeltme işlemi
# Recompile mod-python ve/yada mod-wsgi.

# apache mod larını silelim
apt-get remove libapache2-mod-python libapache2-mod-wsgi

# Bağımlılıkları alalım
apt-get build-dep libapache2-mod-python libapache2-mod-wsgi

# Build mod-python edelim
mkdir /tmp/python
cd /tmp/python
apt-get source libapache2-mod-python
cd libapache2-mod-python-[x.x.x]
dpkg-buildpackage -rfakeroot -b

#Build mod-wsgi edelim
mkdir /tmp/wsgi
cd /tmp/wsgi
apt-get source libapache2-mod-wsgi
cd mod-wsgi-[x.x.x]
dpkg-buildpackage -rfakeroot -b

# Yeni paketleri compile edelim
dpkg -i /tmp/python/libapache2-mod-python-[x.x].deb /tmp/wsgi/libapache2-mod-wsgi-[x.x].deb