I am trying to deploy a TG app under Apache, TG 2.3.1 and mod_wsgi 3.2. 
When I try to load it I get:

...
[Sat Mar 29 03:04:41 2014] [error] [client 192.168.2.102]   File 
"/usr/src/svbenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 620, in get_context
[Sat Mar 29 03:04:41 2014] [error] [client 192.168.2.102]     object_type, 
name=name)
[Sat Mar 29 03:04:41 2014] [error] [client 192.168.2.102]   File 
"/usr/src/svbenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 640, in find_egg_entry_point
[Sat Mar 29 03:04:41 2014] [error] [client 192.168.2.102]     
pkg_resources.require(self.spec)
[Sat Mar 29 03:04:41 2014] [error] [client 192.168.2.102]   File 
"/usr/src/svbenv/lib/python2.6/site-packages/pkg_resources.py", line 728, 
in require
[Sat Mar 29 03:04:41 2014] [error] [client 192.168.2.102]     needed = 
self.resolve(parse_requirements(requirements))
[Sat Mar 29 03:04:41 2014] [error] [client 192.168.2.102]   File 
"/usr/src/svbenv/lib/python2.6/site-packages/pkg_resources.py", line 626, 
in resolve
[Sat Mar 29 03:04:41 2014] [error] [client 192.168.2.102]     raise 
DistributionNotFound(req)
[Sat Mar 29 03:04:41 2014] [error] [client 192.168.2.102] 
DistributionNotFound: tgext.admin>=0.6.1

tgext.admin 0.6.3 is installed inside virtualenv

My Apache conf file looks like:

-------------------------
WSGIPythonHome /usr/src/svbenv

Alias /panel/images /usr/src/svbenv/svbpanel/svbpanel/public/images
Alias /panel/css /usr/src/svbenv/svbpanel/svbpanel/public/css
Alias /panel/javascript /usr/src/svbenv/svbpanel/svbpanel/public/javascript

WSGIDaemonProcess panel threads=10 processes=3 
python-path=/usr/src/svbenv/lib/python2.6/site-packages
WSGIScriptAlias /panel 
/usr/src/svbenv/svbpanel/apache/svbpanel_produccion_tg2.3.wsgi
-------------------------

My wsgi configuration file looks like

-------------------------
APP_CONFIG = "/usr/src/svbenv/svbpanel/production_tg2.3.ini"

#Setup logging
import logging.config
logging.config.fileConfig(APP_CONFIG)

#Load the application
from paste.deploy import loadapp
application = loadapp('config:%s' % APP_CONFIG)
-------------------------

Any idea why Apache is not able to find installed packages?

Regards

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to