I'm trying to set up pylons on a shared server. I cannot get this to
work though. I get a nice page full of errors though.
[code helloworld.fcgi]
#!/usr/local/bin/python
import sys
# Add a custom Python path (where pylons and everything else is
installed)
sys.path.insert(0, "/home/<myuser>/lib/python2.4/site-package")
# Load the WSGI application from the config file
from paste.deploy import loadapp
wsgi_app = loadapp('config:/home/<myuser>/pylons_projects/helloworld/
development.ini')
# Deploy it using FastCGI
if __name__ == '__main__':
from flup.server.fcgi import WSGIServer
WSGIServer(wsgi_app).run()
[/code]
and then...
~/www/pylons> python helloworld.fcgi
Traceback (most recent call last):
File "helloworld.fcgi", line 9, in ?
wsgi_app = loadapp('config:/home/<myuser>/pylons_projects/
helloworld/development.ini')
File "/home/<myuser>/lib/python2.4/site-packages/PasteDeploy-1.3-
py2.4.egg/paste/deploy/loadwsgi.py", line 193, in loadapp
return loadobj(APP, uri, name=name, **kw)
File "/home/<myuser>/lib/python2.4/site-packages/PasteDeploy-1.3-
py2.4.egg/paste/deploy/loadwsgi.py", line 213, in loadobj
global_conf=global_conf)
File "/home/<myuser>/lib/python2.4/site-packages/PasteDeploy-1.3-
py2.4.egg/paste/deploy/loadwsgi.py", line ...(more errors)...
562, in find_egg_entry_point
pkg_resources.require(self.spec)
File "/home/<myuser>/lib/python2.4/site-packages/setuptools-0.6c6-
py2.4.egg/pkg_resources.py", line 626, in require
needed = self.resolve(parse_requirements(requirements))
File "/home/<myuser>/lib/python2.4/site-packages/setuptools-0.6c6-
py2.4.egg/pkg_resources.py", line 524, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: helloworld
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---