List Info

Thread: Errno 9 when moving from web page to web page




Errno 9 when moving from web page to web page
user name
2006-05-14 08:42:48
I've come across this error when evaluating using cherrypy
to create a
simple
web site. The error appears consistently after moving from
page to page
(approx 18 clicks). It only appears when it is run in the
development
environment. In the production environment, no problems. The
following
code recreates this problem:
===================
import cherrypy

class simpleweb:
    def index(self):
        return """
            <html><body>
            This is the index page. <a
href="pagetwo">Click here to go
to page two</a>
            </body></html>
            """
    index.exposed = True
    def pagetwo(self):
        return """
            <html><body>
            This is page two. <a
href="index">Click here to go to the
index page</a>
            </body></html>
            """
    pagetwo.exposed = True

cherrypy.root = simpleweb()

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

===========================

The error message given is:

Unrecoverable error in the server.
Page handler: 'Bad file descriptor'
Traceback (most recent call last):
  File
"e:\python\lib\site-packages\CherryPy-2.2.1-py2.4.
egg\cherrypy\_cpwsgi.py",
line 75, in wsgiApp
    environ['wsgi.input'])
  File
"e:\python\lib\site-packages\CherryPy-2.2.1-py2.4.
egg\cherrypy\_cphttptools.py",
line 78, in run
   
_cputil.get_special_attribute("_cp_log_access",
"_cpLogAccess")()
  File
"e:\python\lib\site-packages\CherryPy-2.2.1-py2.4.
egg\cherrypy\_cputil.py",
line 124, in _cp_log_access
    print s
IOError: [Errno 9] Bad file descriptor


I'm using python 2.4.3, cherrypy 2.2.1, on a Windows XP pro
SE. The
error appears with both Firefox and IE.

Has any one come across this problem before?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

[1]

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