On 5 October 2012 16:03, Marc Abramowitz <[email protected]> wrote: > So the docs make it clear that having mod_python and mod_wsgi enabled > together can cause strange problems because they can pull in different > pythons and such. > > I wonder if it's possible for mod_wsgi to emit some loud warnings (presumably > to the Apache error log) if it detects that mod_python is present? Or > alternatively if it could detect that a version of python is loaded that is > different from the one mod_wsgi was compiled against. > > Would've saved me time with a recent issue I had where mod_python was loaded > and I didn't realize it for a while. > > Bonus points if the warning could be printed to the console when the user > does `apachectl configtest`. > > Hopefully this is possible and I didn't overlook such warnings if they are > already present.
It should already complain if there is a Python version mismatch. It doesn't specifically note this as being related to mod_python though as can occur when mod_wsgi itself was compiled against a different patch level revision of Python than system has. If there is a major/minor Python version difference though, and things didn't crash on startup, then that will be due to mod_python being loaded at the same time. What it can't detect though is if mod_python and mod_wsgi aren't both linked to Python using a shared library. For benefit of anyone else reading this, this version mismatches are detailed in: http://code.google.com/p/modwsgi/wiki/InstallationIssues#Python_Version_Mismatch Anyway, in mod_wsgi 4.0, the code in mod_wsgi will complain loudly if mod_python is also loaded and will actually abort Apache startup altogether. That is, from mod_wsgi 4.0, not supporting the use of mod_python at the same time at all as required changes in use of threading API to suit Python 3.2+ meant can't use the existing hacks that allowed mod_python and mod_wsgi to work together, so can't guarantee they will work together. Graham -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
