2012-06-28 61 views
0

上傳帶有web.py的文件時,會引發異常" SystemError: error return without exception set"web.py有什麼問題? SystemError:錯誤無異常返回設置

這裏的回溯

 
    ... 
     File "../web/template.py", line 882, in __call__ 
     return BaseTemplate.__call__(self, *a, **kw) 
     File "../web/template.py", line 809, in __call__ 
     return self.t(*a, **kw) 
     File "", line 193, in __template__ 
     File "../web/webapi.py", line 276, in input 
     out = rawinput(_method) 
     File "../web/webapi.py", line 249, in rawinput 
     a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1) 
     File "../python2.7/cgi.py", line 508, in __init__ 
     self.read_multi(environ, keep_blank_values, strict_parsing) 
     File "../python2.7/cgi.py", line 632, in read_multi 
     environ, keep_blank_values, strict_parsing) 
     File "../python2.7/cgi.py", line 510, in __init__ 
     self.read_single() 
     File "../python2.7/cgi.py", line 647, in read_single 
     self.read_lines() 
     File "../python2.7/cgi.py", line 669, in read_lines 
     self.read_lines_to_outerboundary() 
     File "../python2.7/cgi.py", line 697, in read_lines_to_outerboundary 
     line = self.fp.readline(1 
      
     
     
     
     """ 

     def POST(self): 
     x = web.input(myfile= {}) 
     return x.myfile.file.read() 
+2

這不是一個完整的追溯;你能編輯並向我們展示更多嗎? –

回答

0

不知道,但我會切換到反正WSGI,它的速度更快,易於使用。運行內置的網絡服務器時是否出現該錯誤?

相關問題