pip install web.py==0.40-dev1,安装了web.py, 并命令窗口web.py测试报错
D:\Programs\web.py-project>pip list
Package Version
---------- ---------
pip 10.0.1
setuptools 39.0.1
web.py 0.40.dev1
D:\Programs\web.py-project>python hello.py
Traceback (most recent call last):
File "D:\Programs\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 "hello.py", line 6, in <module>
app = web.application(urls, globals())
File "D:\Programs\Python\Python37\lib\site-packages\web\application.py", line 62, in __init__
self.init_mapping(mapping)
File "D:\Programs\Python\Python37\lib\site-packages\web\application.py", line 130, in init_mapping
self.mapping = list(utils.group(mapping, 2))
File "D:\Programs\Python\Python37\lib\site-packages\web\utils.py", line 531, in group
x = list(take(seq, size))
RuntimeError: generator raised StopIteration