2012-06-28 2 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로 전환 할 것입니다. 내장 된 웹 서버를 실행할 때 오류가 발생합니까?

관련 문제