gpt4 book ai didi

python - 在终端中执行 python 文件 - socket.error : no socket could be created

转载 作者:太空狗 更新时间:2023-10-29 22:05:45 25 4
gpt4 key购买 nike

(webgame)Benjamins-MacBook:webgame test$ python bin/app.py
http://0.0.0.0:8080/
Traceback (most recent call last):
File "bin/app.py", line 21, in <module>
app.run()
File "/Users/test/Pythonprojects/webgame/lib/python2.7/site-packages/web/application.py", line 310, in run
return wsgi.runwsgi(self.wsgifunc(*middleware))
File "/Users/test/Pythonprojects/webgame/lib/python2.7/site-packages/web/wsgi.py", line 54, in runwsgi
return httpserver.runsimple(func, validip(listget(sys.argv, 1, '')))
File "/Users/test/Pythonprojects/webgame/lib/python2.7/site-packages/web/httpserver.py", line 148, in runsimple
server.start()
File "/Users/test/Pythonprojects/webgame/lib/python2.7/site-packages/web/wsgiserver/__init__.py", line 1753, in start
raise socket.error(msg)
socket.error: No socket could be created

这到底是什么意思...另外,我很确定我上次运行 python bin/app.py 时成功了。

最佳答案

尝试

python bin/app.py 3030

可能有另一台服务器在 8080 上运行。

关于python - 在终端中执行 python 文件 - socket.error : no socket could be created,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18607780/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com