python2.6.8 In the standard installation http://pypi.python.org/pypi/modwsgideploy/0.4.20dev 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写道: > > 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 <[email protected]<javascript:>> > 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 > > [email protected]<javascript:>. > > > To unsubscribe from this group, send email to > > [email protected] <javascript:>. > > 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: [email protected] <javascript:> -- Twitter: pedersentg > -- 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/-/AwjoBHwVRuQJ. 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/turbogears?hl=en.

