<div dir="ltr">mod_wsgi is compiled to a specific python for Apache. It's a single process (with multiple forks). It looks like the upstream solution to running different pythons with mod_wsgi is to either use mod_wsgi-express to launch a new apache+mod_wsgi per-application, or to modify wsgi script ( <a href="https://github.com/openstack/keystone/blob/master/keystone/server/wsgi.py">https://github.com/openstack/keystone/blob/master/keystone/server/wsgi.py</a> ) to load a virtualenv at the top with execfile()<div><br></div><div>Neither of these are very good options.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br></div><div dir="ltr">- jlk</div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Nov 30, 2015 at 12:41 PM, Robert Collins <span dir="ltr"><<a href="mailto:robertc@robertcollins.net" target="_blank">robertc@robertcollins.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 1 December 2015 at 09:36, Jesse Keating <<a href="mailto:jlk@bluebox.net">jlk@bluebox.net</a>> wrote:<br>
> I have an objection to eventlet going away. We have problems with running<br>
> Apache and mod_wsgi with multiple python virtual environments. In some of<br>
> our stacks we're running both Horizon and Keystone. Each get their own<br>
> virtual environment. Apache mod_wsgi doesn't really work that way, so we'd<br>
> have to do some ugly hacks to expose the python environments of both to<br>
> Apache at the same time.<br>
><br>
> I believe we spoke about this at Summit. Have you had time to look into this<br>
> scenario and have suggestions?<br>
<br>
</span>mod_wsgi with separate process definitions should work - Graham<br>
Dumpleton, the mod_wsgi maintainer, works for Red Hat - I'm fairly<br>
sure they'd be amenable to us roping him in to help you sort things<br>
out :)<br>
<br>
-Rob<br>
</blockquote></div><br></div>