[csw-maintainers] how to make mod_wsgi, mod_python dual ?

Nicolai Schwindt schwindt at dfki.uni-kl.de
Fri Sep 27 15:32:21 CEST 2013

On Thu, 26 Sep 2013 17:23:12 +0200
Peter FELECAN <pfelecan at opencsw.org> wrote:

> I'm encountering an issue with web enabled Python application which use
> mod_wsgi and, indirectly, mod_python.
> The application in question supports only Python interpreters >= 2.7.
> Our current and related Apache modules are built with Python 2.6.
> Reading the documentation, there is no way to change the interpreter
> used by those Apache modules by configuration.

As I had the problem that python was no longer found after I did a full
upgrade yesterday , I endet up adding this
to /etc/opt/csw/init.d/cswapache2 :


The errors which showed up : 

[Thu Sep 26 00:00:04 2013] [error] make_obcallback: could not import
mod_python.apache.\n ImportError: No module named mod_python.apache
[Thu Sep 26 00:00:04 2013] [error] make_obcallback: Python path being used
"['/usr/lib/python26.zi p', '/usr/lib/python2.6',
'/usr/lib/python2.6/plat-sunos5', '/usr/lib/python2.6/lib-tk',
'/usr/lib /python2.6/lib-old', '/usr/lib/python2.6/lib-dynload',
'/usr/lib/python2.6/site-packages', '/usr/l ib/python2.6/vendor-packages']".
[Thu Sep 26 00:00:04 2013] [error] get_interpreter: no interpreter callback
found. [Thu Sep 26 00:00:04 2013] [error] [client]
python_handler: Can't get/create interpr eter.

I am still looking into it, I do not have any clue what has happened.

> Consequently, I'm looking in a correct way to build dual Apache modules,
> i.e. which support 2.6 and 2.7 Python interpreters.
> Any thoughts, suggestions, ideas, &c?

May be this can help choose the interpreter ?

BTW: mod_python is again under active development

MfG, Nicolai Schwindt

More information about the maintainers mailing list