简体   繁体   中英

executing python file in terminal - socket.error: no socket could be created

(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

What in gods name does this mean... Also, I'm pretty sure the last time I ran python bin/app.py, it worked.

Try

python bin/app.py 3030

There might be another server running on 8080.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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