On Thu, Aug 27, 2009 at 1:23 PM, [email protected]<[email protected]> wrote: > > I have installed sqlalchemy and can import it from python prompt e.g. > > Python 2.5.4 (r254:67916, Mar 6 2009, 12:13:15) > [GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> import sqlalchemy >>>> sqlalchemy.__file__ > '/usr/local/lib/python2.5/site-packages/SQLAlchemy-0.4.8-py2.5.egg/ > sqlalchemy/__init__.pyc' >> > > but when I run pylons apps using apache/mod_wsgi it says > > """ > ... > [Thu Aug 27 04:19:33 2009] [error] [client 123.236.186.183] File "/ > home/expert/mydevenv/lib/python2.5/site-packages/setuptools-0.6c9- > py2.5.egg/pkg_resources.py", line 626, in require > [Thu Aug 27 04:19:33 2009] [error] [client 123.236.186.183] File "/ > home/expert/mydevenv/lib/python2.5/site-packages/setuptools-0.6c9- > py2.5.egg/pkg_resources.py", line 524, in resolve > [Thu Aug 27 04:19:33 2009] [error] [client 123.236.186.183] > DistributionNotFound: SQLAlchemy>=0.4.8 > """ > > what could be the reason behind that?
Have you tried to install SA in your virtualenv ? Seems that mod_wsgi don't look in your /usr/local/ source bin/activate easy_install "SQLAlchemy==0.4.8" -- Gael > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
