繁体   English   中英

web.py有什么问题? SystemError:错误返回,没有设置异常

[英]what's wrong with web.py? SystemError: error return without exception set

使用web.py上传文件时,出现异常" SystemError: error return without exception set"

这里的追溯

...
      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()

不能确定,但​​是无论如何,我还是会改用WSGI,因为它更快且易于使用。 运行内置的网络服务器时,您会收到该错误吗?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM