sys.version = '2.7.3 (default, Sep 26 2013, 20:13:52) \n[GCC 4.6.3]' sys.prefix = '/usr'
On Wednesday, October 23, 2013 1:14:21 PM UTC-4, Graham Dumpleton wrote: > > The mod_wsgi module will be compiled for a specific Python version. You > should not put it at a different versioned Python installation or even > Python modules installed into the site-packages/dist-packages of a > different versioned Python installation as what is installed can be > incompatible, especially if it contains extension modules. > > What you should do is confirm what version of Python mod_wsgi was compiled > for: > > > http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Python_Installation_In_Use > > If it is not the version of Python you want to be able to use, then you > must installed the mod_wsgi binary version corresponding to the Python > version you do want to use, or uninstall the mod_wsgi binary and recompile > mod_wsgi from source code yourself against the required version of Python > and install it. > > If it is the correct Python version and your module is installed into a > Python virtual environment based off the correct version, then you need to > instruct mod_wsgi to make use of the Python virtual environment. > > So do the version checks and confirm what mod_wsgi is compiled for. > > Graham > > On 23/10/2013, at 10:07 AM, Derek Schwalenberg > <[email protected]<javascript:>> > wrote: > > I used pip to install a .egg-link to > /usr/local/lib/python2.7/dist-packages/ and from the CLi I can type python > script.py (which contains one line import test123) and it will print > 'hello' which is the one line in test123.py but when I connect to mysite > through a web browser and run the same script using mod_wsgi it says cannot > import test123 module.. > > Do I have to just manually add the .egg-link to that script? I can't find > anyway to get mod_wsgi to look at it. I tried WSGIPythonEggs it doesn't > seem to help from either wsgi.conf or putting it in sites-enabled/default > > It could be that I am using python 2.7 and the repository gave me 3.3 > version of mod_wsgi but it runs scripts just fine with the exception of my > .egg-links and I don't really want to have to uninstall apache2 install > apache2-dev and then ./configure with python2.7 but I will if I have to I > guess. I am not even sure that will fix the problem though. > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected] <javascript:> > . > Visit this group at http://groups.google.com/group/modwsgi. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/groups/opt_out.
