Error in libpython, installing Trac, running with apache 2.4

0

I'm installing Trac with Apche2.4 mod_python, but when I start the service the following error appears:

[:error] [pid 7937:tid 140094741256064] python_init: Python version mismatch, expected '2.7.5+', found '2.7.9'.
[:error] [pid 7937:tid 140094741256064] python_init: Python executable found '/usr/bin/python'.
[:error] [pid 7937:tid 140094741256064] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'.

Does anyone know how to solve this?

    
asked by anonymous 22.03.2016 / 19:22

1 answer

1

Yes - the solution is not to use mod_python -

According to the Trac documentation - link - mod_python would be one of the options - however the mod_python development stopped for more than 5 years, and there's even more than one open letter from your main maintainer and developer asking you to be no most used //blog.dscpl.com.au/2010/06/modpython-project-is-now-officially.html "> link ) - it is complicated, no longer maintained, and had to create multiple versions of the "wheel" at a time when there was no standard for connecting Python applications to WEB servers.

After the Mod Python WSGI specification was created that standardizes this interaction - and the TRAC, although old and evolving only slowly, supports WSGI - according to the above documentation. So if you're really going to use Apache, use it with mod_wsgi, not with mod_python

    
23.03.2016 / 07:24