File "/Library/Python/2.7/site-packages/web/wsgiserver/__init__.py", line 1753, in start
raise socket.error(msg)
socket.error: No socket could be created
raise socket.error(msg)
socket.error: No socket could be created
2016-12-26
File "/Library/Python/2.7/site-packages/web/wsgi.py", line 59, in runwsgi
return httpserver.runsimple(func, server_addr)
File "/Library/Python/2.7/site-packages/web/httpserver.py", line 157, in runsimple
server.start()
return httpserver.runsimple(func, server_addr)
File "/Library/Python/2.7/site-packages/web/httpserver.py", line 157, in runsimple
server.start()
2016-12-26
File "/Library/Python/2.7/site-packages/web/application.py", line 313, in run
return wsgi.runwsgi(self.wsgifunc(*middleware))
return wsgi.runwsgi(self.wsgifunc(*middleware))
2016-12-26
最新回答 / 君往何方
可能是端口占用可能是你复制黏贴代码的时候缩进有所变动可能是你把hello world改成汉字的话 import web上面还要加上 #-*- coding:utf-8 -*- 我是新手 只能想到这些了 这是我自己遇到的一些问题 希望对你有所帮助
2016-12-21
如果地址填写localhost:8080就报下面的错误:
Error: Parse error on line 1:
{'HTTP_COOKIE': 'Pych
-^
Expecting 'STRING', '}'
如果地址填写127.0.0.1:8080就报下面的错误:
Error: Parse error on line 1:
{'SERVER_SOFTWARE': '
-^
Expecting 'STRING', '}'
为什么啊?
Error: Parse error on line 1:
{'HTTP_COOKIE': 'Pych
-^
Expecting 'STRING', '}'
如果地址填写127.0.0.1:8080就报下面的错误:
Error: Parse error on line 1:
{'SERVER_SOFTWARE': '
-^
Expecting 'STRING', '}'
为什么啊?