Problems launching cherrypy from source
Posted: May 19th, 2011, 10:17 pm
Problems launching cherrypy from source
I've seen some forum posts that say you can launch cherrypy from the source tarball. None of them however, say how to do this. If you try and import cherrypy while sitting in the source directory python will complain that there is no module named cherrypy. However, even the cherrypy documentation says that you should be able to run the tutorials straight from their folder inside the source tarball. When running ./tutorial/tut01_helloworld.py it produces the same error that it can't find a module named cherrpy. Each directory in the source directory has an __init__.py file so they should all be viewed as modules.
The end result would be to have a portable cherrypy webserver where the cherrypy module can be called from /foo/index.py and find cherrypy in /foo/cherrypy.
I've seen some forum posts that say you can launch cherrypy from the source tarball. None of them however, say how to do this. If you try and import cherrypy while sitting in the source directory python will complain that there is no module named cherrypy. However, even the cherrypy documentation says that you should be able to run the tutorials straight from their folder inside the source tarball. When running ./tutorial/tut01_helloworld.py it produces the same error that it can't find a module named cherrpy. Each directory in the source directory has an __init__.py file so they should all be viewed as modules.
The end result would be to have a portable cherrypy webserver where the cherrypy module can be called from /foo/index.py and find cherrypy in /foo/cherrypy.