installing modwsgi to work with specific python version in virtenv

47 views
Skip to first unread message

Alon Nisser

unread,
Mar 20, 2012, 8:59:05 AM3/20/12
to mod...@googlegroups.com
on my linux (ubunto 11) installation I have running both python 2.7 and  2.6
I want to install and configure mod_wsgi for my localhost running apache (to do some debugging.. I can't figure out with a bottle.py deployment to openshift who uses mod_wsgi)
the virtualenv I want to run the application from is using python 2.6
should I install the specifc 2.6 mod_wsgi (which seems from looking in the guide more of a fuss, since it isn't the default python version in my installation)in order with the virtualenv
or would the default installation (probably with python 2.7) would suffice for running the wsgi app in the virtenv?
thanks for the help!



Carl Nobile

unread,
Mar 20, 2012, 11:41:02 AM3/20/12
to mod...@googlegroups.com
Alon,

If you install a mod_wsgi mod that is compiled with Python 2.6 then all your apps need to use Python 2.6 for all the apps that run with it. never use any version of Python that mod_wsgi was not compiled against.

~Carl





--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To view this discussion on the web visit https://groups.google.com/d/msg/modwsgi/-/TFgjcGnZLcQJ.
To post to this group, send email to mod...@googlegroups.com.
To unsubscribe from this group, send email to modwsgi+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.



--
-------------------------------------------------------------------------------
Carl J. Nobile (Software Engineer)
carl....@gmail.com
-------------------------------------------------------------------------------

Alon Nisser

unread,
Mar 20, 2012, 2:43:02 PM3/20/12
to mod...@googlegroups.com
thanks for the answer carl
so if I have two versions of python on my computer can I install 2 versions of mod_wsgi?


On Tuesday, March 20, 2012 5:41:02 PM UTC+2, Carl Nobile wrote:
Alon,

If you install a mod_wsgi mod that is compiled with Python 2.6 then all your apps need to use Python 2.6 for all the apps that run with it. never use any version of Python that mod_wsgi was not compiled against.

~Carl

On Tue, Mar 20, 2012 at 8:59 AM, Alon Nisser wrote:
on my linux (ubunto 11) installation I have running both python 2.7 and  2.6
I want to install and configure mod_wsgi for my localhost running apache (to do some debugging.. I can't figure out with a bottle.py deployment to openshift who uses mod_wsgi)
the virtualenv I want to run the application from is using python 2.6
should I install the specifc 2.6 mod_wsgi (which seems from looking in the guide more of a fuss, since it isn't the default python version in my installation)in order with the virtualenv
or would the default installation (probably with python 2.7) would suffice for running the wsgi app in the virtenv?
thanks for the help!




--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To view this discussion on the web visit https://groups.google.com/d/msg/modwsgi/-/TFgjcGnZLcQJ.
To post to this group, send email to mod...@googlegroups.com.
To unsubscribe from this group, send email to modwsgi+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.



--
-------------------------------------------------------------------------------
Carl J. Nobile (Software Engineer)

-------------------------------------------------------------------------------

Carl Nobile

unread,
Mar 20, 2012, 3:04:36 PM3/20/12
to mod...@googlegroups.com
No you must choose one or the other and develop only for the one you choose.

Graham is the expert on this, but unless he has recently changed the mod_wsgi code to use multiple versions if Python you can only use a single version of Python at a time with mod_wsgi.

If it were me I'd go with version Python version 2.7.2, if that's one of your choices.

~Carl

To view this discussion on the web visit https://groups.google.com/d/msg/modwsgi/-/oIXhVEIrTwgJ.

To post to this group, send email to mod...@googlegroups.com.
To unsubscribe from this group, send email to modwsgi+u...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.



--
-------------------------------------------------------------------------------
Carl J. Nobile (Software Engineer)
carl....@gmail.com
-------------------------------------------------------------------------------

Graham Dumpleton

unread,
Mar 20, 2012, 6:12:25 PM3/20/12
to mod...@googlegroups.com
You would need to have two separate Apache installations each using
mod_wsgi compiled for different Python versions. You cannot load
multiple copies of mod_wsgi into one Apache instance.

Graham

>>>> modwsgi+u...@googlegroups.com.
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/modwsgi?hl=en.
>>>
>>>
>>>
>>>
>>> --
>>>
>>> -------------------------------------------------------------------------------
>>> Carl J. Nobile (Software Engineer)
>>>
>>>
>>> -------------------------------------------------------------------------------
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "modwsgi" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/modwsgi/-/oIXhVEIrTwgJ.
>>
>> To post to this group, send email to mod...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> modwsgi+u...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/modwsgi?hl=en.
>
>
>
>
> --
> -------------------------------------------------------------------------------
> Carl J. Nobile (Software Engineer)
> carl....@gmail.com
> -------------------------------------------------------------------------------
>

> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.

Reply all
Reply to author
Forward
0 new messages