Hi, I'm trying to deploy a Pylons app via mod_wsgi (Apache). That works so far. But I want to use a virtualenv directory and can't find any documentation on it. I found something for workingenv but don't know how to "translate" that to virtualenv.
http://code.google.com/p/modwsgi/wiki/VirtualEnvironments said something about WSGIPythonHome but that can't be defined per virtual host. So I would have to use the very same virtualenv directory for all deployed applications (which is pretty absurd). I also found http://pypi.python.org/pypi/virtualenv#using-virtualenv-without-bin-python but that just prints these lines into Apache's error.log: ============================================================ [Mon Nov 10 13:12:23 2008] [error] [client 80.85.196.21] mod_wsgi (pid=26216): Target WSGI script '/etc/apache2/screenshots.debian.net.wsgi' cannot be loaded as Python module. [Mon Nov 10 13:12:23 2008] [error] [client 80.85.196.21] mod_wsgi (pid=26216): Exception occurred processing WSGI script '/etc/apache2/screenshots.debian.net.wsgi'. [Mon Nov 10 13:12:23 2008] [error] [client 80.85.196.21] Traceback (most recent call last): [Mon Nov 10 13:12:23 2008] [error] [client 80.85.196.21] File "/etc/apache2/screenshots.debian.net.wsgi", line 8, in <module> [Mon Nov 10 13:12:23 2008] [error] [client 80.85.196.21] execfile(activate_this, dict(__file__=activate_this)) [Mon Nov 10 13:12:23 2008] [error] [client 80.85.196.21] File "/home/debshots/bin/activate", line 4 [Mon Nov 10 13:12:23 2008] [error] [client 80.85.196.21] deactivate () { [Mon Nov 10 13:12:23 2008] [error] [client 80.85.196.21] ^ [Mon Nov 10 13:12:23 2008] [error] [client 80.85.196.21] SyntaxError: invalid syntax ============================================================ Seems like it can't run virtualenv's 'activate' script like that. :( Any ideas? Kindly Christoph
signature.asc
Description: This is a digitally signed message part.
