Re: DistributionNotFound problem

2009-08-27 Thread Graham Dumpleton



On Aug 28, 1:33 pm, "anuraguni...@yahoo.com" 
wrote:
> Thanks for the answers, i have found the problem
> Problem was with mod_wsgi, somehow it is using old python installation
> (python 2.4) and i have installed packages on python2.5, which is in
> system path too.

Apache/mod_wsgi is compiled against a specific version of Python. If
you need to use a different version of Python, you will need to either
install binary version of mod_wsgi compiled against desired version,
or build it from source code yourself.

Graham
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: DistributionNotFound problem

2009-08-27 Thread anuraguni...@yahoo.com

Thanks for the answers, i have found the problem
Problem was with mod_wsgi, somehow it is using old python installation
(python 2.4) and i have installed packages on python2.5, which is in
system path too.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: DistributionNotFound problem

2009-08-27 Thread Gael Pasgrimaud

On Thu, Aug 27, 2009 at 1:23 PM,
anuraguni...@yahoo.com 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 pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: DistributionNotFound problem

2009-08-27 Thread Arun Tomar
hi!


On Thu, Aug 27, 2009 at 4:53 PM, anuraguni...@yahoo.com <
anuraguni...@yahoo.com> 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'
> >
>

from the lines below it seems that your web server is trying to run the
stuff from your virtualenvironment i guess.

>
> 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?
>
> --
Regards,
Arun Tomar
blog: http://linuxguy.in
website: http://www.solutionenterprises.co.in

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



DistributionNotFound problem

2009-08-27 Thread anuraguni...@yahoo.com

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?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---