Alan Harris-Reid
unread,Dec 16, 2009, 5:27:41 PM12/16/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cherrypy-users
Hi there,
I have recently installed CherryPy (3.0.2.0rc1, with Python 3.1.1 on
WinXP) and am working my way through the tutorials.
tut01_HelloWorld.py works fine, but all other tutorials produce the
following error...
--------------------------------------
404 Not Found
The path '/' was not found.
Traceback (most recent call last):
File "C:\PROGRA~1\Python31\lib\site-packages\cherrypy
\_cprequest.py", line 667, in respond
response.body = self.handler()
File "C:\PROGRA~1\Python31\lib\site-packages\cherrypy\lib
\encoding.py", line 185, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "C:\PROGRA~1\Python31\lib\site-packages\cherrypy\_cperror.py",
line 234, in __call__
raise self
cherrypy._cperror.NotFound: (404, "The path '/' was not found.")
--------------------------------------
From other message threads I guess there may be a '/' missing
somewhere, but I'm not sure how to fix it.
I notice that tutorial 1 uses
cherrypy.quickstart(HelloWorld(), config=tutconf)
but tutorials 2-10 use...
cherrypy.tree.mount(HelloWorld())
if __name__ == '__main__':
import os.path
thisdir = os.path.dirname(__file__)
cherrypy.quickstart(config=os.path.join(thisdir,
'tutorial.conf'))
So it appears that using cherrypy.tree.mount(...) is having some
effect on the pathing. Does anyone know how to solve this problem?
Any help would be appreciated.
Alan