Did you setup a virutalenv for your project? If so, did you configure apache for your virtualenv? It may be that pserve and apache are using different python environments.
On Tue, Jul 31, 2012 at 6:46 PM, Aradhya Tulsyan <[email protected]>wrote: > I am using Apache + mod_wsgi to serve the application > I have been getting this error : > > [Tue Jul 31 12:49:46 2012] [error] [client ::1] import MySQLdb as mysql > [Tue Jul 31 12:49:46 2012] [error] [client ::1] File > "/Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg/MySQLdb/__init__.py", > line 19, in <module> > [Tue Jul 31 12:49:46 2012] [error] [client ::1] File > "/Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg/_mysql.py", > line 7, in <module> > [Tue Jul 31 12:49:46 2012] [error] [client ::1] File > "/Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg/_mysql.py", > line 6, in __bootstrap__ > [Tue Jul 31 12:49:46 2012] [error] [client ::1] ImportError: > dlopen(/Users/anupamtulsyan/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg-tmp/_mysql.so, > 2): Library not loaded: libmysqlclient.18.dylib > [Tue Jul 31 12:49:46 2012] [error] [client ::1] Referenced from: > /Users/anupamtulsyan/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg-tmp/_mysql.so > > I have checked and applied all the methods that I could find online and > none of them seem to be working. The application is getting served properly > if I use the 'pserve' command and also 'import MySQLdb' workds fine while > using python interpreter. It is only when I try to load the application > using mod_wsgi is the internal server error ocurring. > I am very new to python and pyramid framework, so please help me out. > Thank you. > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/pylons-discuss/-/Bsw0ua1Ch08J. > 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/pylons-discuss?hl=en. > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
