See http://trac.edgewall.org/ticket/3984

Try to upgrade to the latest Trac release (0.10.3)

HTH,
Manu

On 1/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Hi

I'm running Trac 0.10 on a Windows XP box with Apache 2.0.59, Python
2.4.4, and mod_python 3.2.10. When I try to attach a file to either a
ticket or a wiki page I get the following output in the error log:

[Thu Jan 04 18:37:21 2007] [error] [client 172.16.0.89] PythonHandler
trac.web.modpython_frontend: Traceback (most recent call last):,
referer: http://bpdk141/trac_test/attachment/ticket/2?action=new
[Thu Jan 04 18:37:21 2007] [error] [client 172.16.0.89] PythonHandler
trac.web.modpython_frontend:   File
"C:\\Python24\\lib\\site-packages\\mod_python\\apache.py", line 299, in
HandlerDispatch\n    result = object(req), referer:
http://hostbox/trac_test/attachment/ticket/2?action=new
[Thu Jan 04 18:37:21 2007] [error] [client 172.16.0.89] PythonHandler
trac.web.modpython_frontend:   File
"C:\\Python24\\lib\\site-packages\\trac-0.10-py2.4.egg\\trac\\web\\modpython_frontend.py",
line 87, in handler\n    gateway.run(dispatch_request), referer:
http://hostbox/trac_test/attachment/ticket/2?action=new
[Thu Jan 04 18:37:21 2007] [error] [client 172.16.0.89] PythonHandler
trac.web.modpython_frontend:   File
"C:\\Python24\\lib\\site-packages\\trac-0.10-py2.4.egg\\trac\\web\\wsgi.py",
line 87, in run\n    response = application(self.environ,
self._start_response), referer:
http://hostbox/trac_test/attachment/ticket/2?action=new
[Thu Jan 04 18:37:21 2007] [error] [client 172.16.0.89] PythonHandler
trac.web.modpython_frontend:   File
"C:\\Python24\\lib\\site-packages\\trac-0.10-py2.4.egg\\trac\\web\\main.py",
line 351, in dispatch_request\n    req = Request(environ,
start_response), referer:
http://hostbox/trac_test/attachment/ticket/2?action=new
[Thu Jan 04 18:37:21 2007] [error] [client 172.16.0.89] PythonHandler
trac.web.modpython_frontend:   File
"C:\\Python24\\lib\\site-packages\\trac-0.10-py2.4.egg\\trac\\web\\api.py",
line 166, in __init__\n    self.args = self._parse_args(), referer:
http://hostbox/trac_test/attachment/ticket/2?action=new
[Thu Jan 04 18:37:21 2007] [error] [client 172.16.0.89] PythonHandler
trac.web.modpython_frontend:   File
"C:\\Python24\\lib\\site-packages\\trac-0.10-py2.4.egg\\trac\\web\\api.py",
line 182, in _parse_args\n    fs = cgi.FieldStorage(fp,
environ=self.environ, keep_blank_values=True), referer:
http://hostbox/trac_test/attachment/ticket/2?action=new
[Thu Jan 04 18:37:21 2007] [error] [client 172.16.0.89] PythonHandler
trac.web.modpython_frontend:   File "C:\\Python24\\Lib\\cgi.py", line
530, in __init__\n    self.read_multi(environ, keep_blank_values,
strict_parsing), referer:
http://hostbox/trac_test/attachment/ticket/2?action=new
[Thu Jan 04 18:37:21 2007] [error] [client 172.16.0.89] PythonHandler
trac.web.modpython_frontend:   File "C:\\Python24\\Lib\\cgi.py", line
650, in read_multi\n    environ, keep_blank_values, strict_parsing),
referer: http://hostbox/trac_test/attachment/ticket/2?action=new
[Thu Jan 04 18:37:21 2007] [error] [client 172.16.0.89] PythonHandler
trac.web.modpython_frontend:   File "C:\\Python24\\Lib\\cgi.py", line
532, in __init__\n    self.read_single(), referer:
http://hostbox/trac_test/attachment/ticket/2?action=new
[Thu Jan 04 18:37:21 2007] [error] [client 172.16.0.89] PythonHandler
trac.web.modpython_frontend:   File "C:\\Python24\\Lib\\cgi.py", line
665, in read_single\n    self.read_lines(), referer:
http://hostbox/trac_test/attachment/ticket/2?action=new
[Thu Jan 04 18:37:21 2007] [error] [client 172.16.0.89] PythonHandler
trac.web.modpython_frontend:   File "C:\\Python24\\Lib\\cgi.py", line
687, in read_lines\n    self.read_lines_to_outerboundary(), referer:
http://hostbox/trac_test/attachment/ticket/2?action=new
[Thu Jan 04 18:37:21 2007] [error] [client 172.16.0.89] PythonHandler
trac.web.modpython_frontend:   File "C:\\Python24\\Lib\\cgi.py", line
715, in read_lines_to_outerboundary\n    line =
self.fp.readline(1<<16), referer:
http://hostbox/trac_test/attachment/ticket/2?action=new
[Thu Jan 04 18:37:21 2007] [error] [client 172.16.0.89] PythonHandler
trac.web.modpython_frontend: TypeError: readline() takes exactly 1
argument (2 given), referer:
http://hostbox/trac_test/attachment/ticket/2?action=new


I get the same error with both IE7 and Firefox 2 and regardless of the
attahments type or size. The FAQ mentions that there has been problems
with uploads on XP, but they should have been fixed in mod_python 3.2.
Does anyone have any input?

Regards,

Martin Sk tt


>



--
Manu

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to