On Jun 29, 5:02 pm, cd34 <[email protected]> wrote: > What are the contents of your .wsgi script? > > #!/usr/bin/python > > import os > import sys > import site > sys.path.append('/var/www/pylons/cp') > site.addsitedir('/var/www/pylons/lib/python2.5/site-packages') > os.environ['PYTHON_EGG_CACHE'] = '/var/www/pylons/eggcache' > > from paste.deploy import loadapp > > application = loadapp('config:/var/www/pylons/cp/development.ini') > > And make sure that /var/www/pylons/eggcache is writeable by your > webserver. > > There are probably some issues with the particular script and perhaps > Graham Dumpleton will drop by and correct it, but, this is the bare > minimum wsgi script that worked for me. > > wsgi doesn't use portions of the development.ini that don't apply to > it and you don't need to run your project as an egg. Development > under apache2/mod_wsgi is a little tricky. > > http://code.google.com/p/modwsgi/wiki/IntegrationWithPylons
And also read: http://code.google.com/p/modwsgi/wiki/VirtualEnvironments I believe the DistributionNotFound issue has come up before a couple of times. In one instance the Python that mod_wsgi was using wasn't the same as the virtual environment was using or something similar. I also vaguely recollect there being some issue with a specific version of setuptools, but I could be dreaming about that. The WSGI script file is definitely needed, as well as confirmation as to what version of Python was built for and is using and which Python was used to construct any virtual environment. Graham > There is a page somewhere that details what it takes to allow you to > leave debug=true in your development.ini when running under embedded > mode, but, I don't have it bookmarked and can't find it on the wiki. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. 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/pylons-discuss?hl=en.
