List Info

Thread: problem




problem
user name
2007-09-17 21:20:20
HI,
  I got a code which does the task of lightning compiler from the net and just copied it and ran it in my machine after changing some indentations. But is giving the following error:

The path '/'; was not found.

Traceback (most recent call last):
File "/usr/lib/python2.5/site
-packages/cherrypy/_cprequest.py", line 342, in respond
cherrypy.response.body = self.handler()
File "/usr/lib/python2.5/site-packages/cherrypy/_cperror.py", line 199, in __call__
raise self
NotFound: (404, "The path '/'; was not found.") 

I got the code from this link: http://aroberge.blogspot.com/2006/04/cherrypy-is-great.html

Kindly suggest me what might be the problem.
-Sukadeb

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: problem
user name
2007-09-18 12:02:16
On 9/17/07, sukadeb acharya <sukadebgmail.com> wrote:
> I got the code from this link:
> http://aroberge.blogspot.com/2006/04/cherrypy-is-grea
t.html

The code at that blog looks like it was written for CherryPy
2.x.

For 3.0.x, replace:

cherrypy.root = PythonRunner()
cherrypy.config.update({'session_filter.on': True})

if __name__ == '__main__':
cherrypy.config.update(file = 'tutorial.conf')
cherrypy.server.start()

with:
if __name__ == '__main__':
    # add the session tool to your config
    # [/]
    # tools.sessions.on = True
    cherrypy.tree.mount(PythonRunner(), '/',
'your_conf_file.conf')
    cherrypy.server.quickstart()
    cherrypy.engine.start()


Good luck,

Christian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )