Re: mod_wsgi cannot load MySQLdb

2011-08-24 Thread Jianbao Tao
BTW, the virtualenv uses python2.7 On Wed, Aug 24, 2011 at 6:54 PM, Jianbao Tao wrote: > Thanks, Tom, Reinout. > > I think I forgot to mention the configuration of my machine. Here it is. > >- Mac OS Snow Leopard 10.6.8 >- mysql-5.5.14-osx10.6-x86_64 >- Apache2 (shipped with OSX) >

Re: mod_wsgi cannot load MySQLdb

2011-08-24 Thread Jianbao Tao
Thanks, Tom, Reinout. I think I forgot to mention the configuration of my machine. Here it is. - Mac OS Snow Leopard 10.6.8 - mysql-5.5.14-osx10.6-x86_64 - Apache2 (shipped with OSX) - mod_wsgi 3.3 And here is some additional information that may help. >$ file /usr/libexec/apache2/m

Re: mod_wsgi cannot load MySQLdb

2011-08-24 Thread Tom Evans
On Mon, Aug 22, 2011 at 11:37 PM, Jim wrote: > Hello folks, > This probably has been discussed many times, but I still can't find any > solution yet. Basically, it turns out that python can load MySQLdb just > fine, but Apache can't load MySQLdb from the wsgi script. > I am using python2.7 in a vi

Re: mod_wsgi cannot load MySQLdb

2011-08-24 Thread Reinout van Rees
On 24-08-11 17:12, Jianbao Tao wrote: Thank you, Reinout. I don't know which version of python mod_wsgi uses. Look in /etc/apache2/mods-enabled/wsgi.load (that's on ubuntu, your mod_wsgi config file might be somewhere else. On one of my older servers it contains: LoadModule wsgi_module /us

Re: mod_wsgi cannot load MySQLdb

2011-08-24 Thread Jianbao Tao
Sorry, I pasted the 'python django.wsgi' output in a wrong place. On Wed, Aug 24, 2011 at 9:12 AM, Jianbao Tao wrote: > Thank you, Reinout. > > I don't know which version of python mod_wsgi uses. Here is a list of > python versions on my machine. > > /Library/Frameworks/Python.framework//Versi

Re: mod_wsgi cannot load MySQLdb

2011-08-24 Thread Jianbao Tao
Thank you, Reinout. I don't know which version of python mod_wsgi uses. Here is a list of python versions on my machine. /Library/Frameworks/Python.framework//Versions/2.7/bin/python /usr/bin/python2.5 /usr/bin/python2.6 /usr/bin/pythonw2.5 /usr/bin/pythonw2.6 /usr/local/bin/python /usr/loc

Re: mod_wsgi cannot load MySQLdb

2011-08-24 Thread Reinout van Rees
On 23-08-11 00:37, Jim wrote: This probably has been discussed many times, but I still can't find any solution yet. Basically, it turns out that python can load MySQLdb just fine, but Apache can't load MySQLdb from the wsgi script. - Does apache use the virtualenv's environment? - Mod_wsgi: d

mod_wsgi cannot load MySQLdb

2011-08-22 Thread Jim
Hello folks, This probably has been discussed many times, but I still can't find any solution yet. Basically, it turns out that python can load MySQLdb just fine, but Apache can't load MySQLdb from the wsgi script. I am using python2.7 in a virtual environment created by virtualenv. Here is th