Issue 841925
Created on 2003-11-14 04:44 by tepperly, last changed 2003-11-14 04:44 by tepperly.
msg1060 |
Author: [hidden] (tepperly) |
Date: 2003-11-14 04:44 |
|
[epperly@somwhere ~/roundup-0.6.3]$ python
Python 2.2.1 (#1, Aug 30 2002, 12:15:30)
[GCC 3.2 20020822 (Red Hat Linux Rawhide 3.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>>
----------------------------------------
128.3.10.85 - - [13/Nov/2003 20:40:02] "GET / HTTP/1.1"
200 -
----------------------------------------
Exception happened during processing of request from
('127.0.0.1', 49508)
Traceback (most recent call last):
File
"/usr/src/build/143041-i386/install/usr/lib/python2.2/SocketServer.py",
line 221, in handle_request
self.process_request(request, client_address)
File
"/usr/src/build/143041-i386/install/usr/lib/python2.2/SocketServer.py",
line 240, in process_request
self.finish_request(request, client_address)
File
"/usr/src/build/143041-i386/install/usr/lib/python2.2/SocketServer.py",
line 253, in finish_request
self.RequestHandlerClass(request, client_address, self)
File
"/usr/src/build/143041-i386/install/usr/lib/python2.2/SocketServer.py",
line 514, in __init__
self.handle()
File
"/usr/src/build/143041-i386/install/usr/lib/python2.2/BaseHTTPServer.py",
line 266, in handle
method()
File
"/usr/local/roundup-0.6.3/lib/python2.2/site-packages/roundup/scripts/roundup_server.py",
line 81, in run_cgi
except socket.timeout:
AttributeError: 'module' object has no attribute 'timeout'
----------------------------------------
|
msg1061 |
Author: [hidden] (richard) |
Date: 2003-11-14 04:58 |
|
Logged In: YES
user_id=6405
Serves me right for not trying the demo under python2.2 :)
|
msg1062 |
Author: [hidden] (tepperly) |
Date: 2003-11-14 05:11 |
|
Logged In: YES
user_id=94539
Here is my work around. In roundup-0.6.3/roundup/scripts/
$ diff roundup_server.py{~,}
81,84c81,84
< except socket.timeout:
< s = StringIO.StringIO()
< traceback.print_exc(None, s)
< self.log_message(str(s.getvalue()))
---
> # except socket.timeout:
> # s = StringIO.StringIO()
> # traceback.print_exc(None, s)
> # self.log_message(str(s.getvalue()))
|
msg1063 |
Author: [hidden] (richard) |
Date: 2003-11-14 05:21 |
|
Logged In: YES
user_id=6405
Yeah, that'll fix it ;)
I've uploaded 0.6.3.1 which performs a check for the "timeout"
exception's existence in the socket module before trying to trap it.
Checked on Pythons 2.1, 2.2 and 2.3. Phew.
|
|
Date |
User |
Action |
Args |
2003-11-14 04:44:30 | tepperly | create | |
|