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

发布于 2024-11-10 12:58:05 字数 1488 浏览 0 评论 0原文

我正在使用 Aptana 和 GAE。当我运行 GAE 启动器或在 Aptana 3 中运行服务器时,出现此错误...我已经下载了最新版本的 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)

I'm using Aptana and GAE. When I run GAE launcher or run a server in Aptana 3, I get this error... I've downloaded the lastest version of GAE and still doesnt work...

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)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

聚集的泪 2024-11-17 12:58:05

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

FIXED! after days looking for this problem: I just deleted this line "0.0.0.0 localhost " from my hosts file located in "C:\Windows\System32\drivers\etc" thanks anyway!!

摇划花蜜的午后 2024-11-17 12:58:05

这里有同样的问题,我必须将

127.0.0.1 myhostname

::1 myhostname

添加到 /etc/hosts

Had same problem here, I had to add

127.0.0.1 myhostname

and

::1 myhostname

to /etc/hosts

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文