gpt4 book ai didi

python - 如何修复 GAE 中的 socket.gaierror : (11004, 'getaddrinfo failed' ) 错误?

转载 作者:太空狗 更新时间:2023-10-30 00:23:44 24 4
gpt4 key购买 nike

我正在使用 Aptana 和 GAE。当我在 Aptana 3 中运行 GAE 启动器或运行服务器时,出现此错误...我已经下载了最新版本的 GAE,但仍然无法运行...

Traceback (most recent call last):
File "C:\google_appengine\dev_appserver.py", line 76, in <module>
run_file(__file__, globals())
File "C:\google_appengine\dev_appserver.py", line 72, in run_file
execfile(script_path, globals_)
File "C:\google_appengine\google\appengine\tools\dev_appserver_main.py", line 665, in <module>
sys.exit(main(sys.argv))
File "C:\google_appengine\google\appengine\tools\dev_appserver_main.py", line 629, in main
static_caching=static_caching)
File "C:\google_appengine\google\appengine\tools\dev_appserver.py", line 4818, in CreateServer
server = HTTPServerWithScheduler((serve_address, port), handler_class)
File "C:\google_appengine\google\appengine\tools\dev_appserver.py", line 4844, in __init__
request_handler_class)
File "C:\Python25\lib\SocketServer.py", line 330, in __init__
self.server_bind()
File "C:\Python25\lib\BaseHTTPServer.py", line 101, in server_bind
SocketServer.TCPServer.server_bind(self)
File "C:\Python25\lib\SocketServer.py", line 341, in server_bind
self.socket.bind(self.server_address)
File "<string>", line 1, in bind
socket.gaierror: (11004, 'getaddrinfo failed')
Exception exceptions.AttributeError: '_shutdown' in <module 'threading' from 'C:\Python25\lib\threading.pyc'> ignored
2011-05-30 21:57:24 (Process exited with code 1)

最佳答案

已修复!经过几天寻找这个问题:我刚刚从位于“C:\Windows\System32\drivers\etc”的主机文件中删除了这一行“0.0.0.0 localhost”无论如何谢谢!

关于python - 如何修复 GAE 中的 socket.gaierror : (11004, 'getaddrinfo failed' ) 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6180720/

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