阅读背景:

python3.7.2使用web.py报错:generator raised StopIteration_linxinfa的专栏

来源:互联网 

运行报错

Traceback (most recent call last):
  File "D:\Program Files\Python\Python37\lib\site-packages\web\utils.py", line 526, in take
    yield next(seq)
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:\Python\hello.py", line 6, in <module>
    app = web.application(urls, globals(),True)
  File "D:\Program Files\Python\Python37\lib\site-packages\web\application.py", line 62, in __init__
    self.init_mapping(mapping)
  File "D:\Program Files\Python\Python37\lib\site-packages\web\application.py", line 130, in init_mapping
    self.mapping = list(utils.group(mapping, 2))
  File "D:\Program Files\Python\Python37\lib\site-packages\web\utils.py", line 531, in group
    x = list(take(seq, size))
RuntimeError: generator raised StopIteration
Traceback (most recent call last)



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: