Error in libpython, installing Trac, running apache 2.4

Asked

Viewed 40 times

1

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'.

Someone knows how to fix this?

1 answer

1


Yes -the solution is not to use mod_python -

According to the Trac documentation - https://trac.edgewall.org/wiki/TracInstall - mod_python would be one of the options - however the development of mod_python stopped more than 5 years ago, and there is even more than one open letter from its maintainer and main developer asking for it nay be it most used ( http://blog.dscpl.com.au/2010/06/modpython-project-is-now-officially.html ) - it is complicated, no longer maintained, and had to create several versions of the "wheel" at a time when there was no standard for connecting Python applications to WEB servers.

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

  • Thanks for the answer, clarified several things.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.