<type 'exceptions.IOError'> | Python 2.6.9: /usr/alwaysdata/python/2.6/bin/python Wed Apr 30 09:18:37 2025 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/home/jeanmichel/.local/lib/python2.6/site-packages/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>) |
556 """Runs the handler, flushes the streams, and ends the request.""" |
557 try: |
558 protocolStatus, appStatus = self.server.handler(self) |
559 except: |
560 traceback.print_exc(file=self.stderr) |
protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object>, self.server = <flup.server.fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object>> |
/home/jeanmichel/.local/lib/python2.6/site-packages/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>) |
1114 try: |
1115 try: |
1116 result = self.application(environ, start_response) |
1117 try: |
1118 for data in result: |
result = None, self = <flup.server.fcgi.WSGIServer object>, self.application = <function application>, environ = {'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/home/jeanmichel/www/', 'CONTEXT_PREFIX': '', 'DOCUMENT_ROOT': '/home/jeanmichel/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HOME': '/home/jeanmichel', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'br,gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'close', ...}, start_response = <function start_response> |
/home/jeanmichel/www/jmi/server.py in application(environ={'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/home/jeanmichel/www/', 'CONTEXT_PREFIX': '', 'DOCUMENT_ROOT': '/home/jeanmichel/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HOME': '/home/jeanmichel', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'br,gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'close', ...}, start_response=<function start_response>) |
118 status = '200 OK' |
119 headers = [('Content-Type', 'image/jpg')] |
120 texte = file(pathImg, "rb").read() |
121 start_response(status, headers) |
122 return texte |
texte undefined, builtin file = <type 'file'>, pathImg = '/home/jeanmichel/www/jmi/images/dressing/dressing_0.jpg/', ).read undefined |
<type 'exceptions.IOError'>: [Errno 20] Not a directory: '/home/jeanmichel/www/jmi/images/dressing/dressing_0.jpg/'
args =
(20, 'Not a directory')
errno =
20
filename =
'/home/jeanmichel/www/jmi/images/dressing/dressing_0.jpg/'
message =
''
strerror =
'Not a directory'