Re: [TurboGears] Problem in deploy project

45 views
Skip to first unread message

Michael Pedersen

unread,
Oct 14, 2012, 10:32:26 PM10/14/12
to turbo...@googlegroups.com
I suspect this is a problem with the version of Python on the system,
personally. What version of Python is being used in this virtualenv?

On Thu, Oct 11, 2012 at 11:39 PM, zhan zou <zouz...@gmail.com> wrote:
> I got tgext.admin-0.5.3-py2.6.egg in both
> '/usr/lib/python2.6/site-packages' and
> '/usr/local/pythonenv/BASELINE/lib/python2.6/site-packages'
> but the "/var/log/httpd/error_log" show belog :
> [Fri Oct 12 11:10:03 2012] [error] [client 192.168.0.105] File
> "/usr/local/pythonenv/BASELINE/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py",
> line 565, in resolve
> [Fri Oct 12 11:10:03 2012] [error] [client 192.168.0.105] raise
> DistributionNotFound(req) # XXX put more info here
> [Fri Oct 12 11:10:03 2012] [error] [client 192.168.0.105]
> DistributionNotFound: tgext.admin>=0.5.1
> and i set wiki_20.wsgi(generated by modwsgi_deploy):
> import site
> site.addsitedir('/usr/local/pythonenv/BASELINE/lib/python2.6/site-packages')
> site.addsitedir('/usr/lib/python2.6/site-packages')
>
> I waste a few day on this problem,I think the problem is in dependencies
> relationship , can anybody help me?
> environment: apache2.2 centos5.8
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/turbogears/-/6-7hkLrncUAJ.
> To post to this group, send email to turbo...@googlegroups.com.
> To unsubscribe from this group, send email to
> turbogears+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/turbogears?hl=en.



--
Michael J. Pedersen
My Online Resume: http://www.icelus.org/ -- Google+ http://plus.ly/pedersen
Google Talk: m.ped...@icelus.org -- Twitter: pedersentg

zhan zou

unread,
Oct 30, 2012, 4:34:27 AM10/30/12
to turbo...@googlegroups.com

python2.6.8
has a step cp ./apache/wk /etc/apache2/sites-available/
but there is no  directory /etc/apache2/sites-available/  in my machine.
so I do  cp ./apache/wk  /var/www/html/ instead

and I've added two line in /etc/httpd/conf/httpd.conf
LoadModule wsgi_module modules/python26-mod_wsgi.so
WSGIScriptAlias /wk /usr/local/turbogears/wk/apache/wk.wsgi

I could'nt figure out the question till now!

在 2012年10月15日星期一UTC+8上午10时32分57秒,Michael Pedersen写道:
Reply all
Reply to author
Forward
0 new messages