【问题标题】:Python error when import Twisted导入 Twisted 时出现 Python 错误
【发布时间】:2014-07-16 20:10:28
【问题描述】:

我在 Windows 8.1 上运行。我已经安装了 Python 2.7.2、Zope interface 4.1.1 和 Twisted 64bits。

当我使用twisted 时,我遇到了一个非常尴尬的错误。 我一直用twisted,从来没有出现过这个错误。

写完from twisted.internet import reactor, protocol后我明白了

socket.error: [Errno 10060] A connection attempt failed because the connected pa
rty did not properly respond after a period of time, or established connection f
ailed because connected host has failed to respond

【问题讨论】:

  • 请将错误文本复制并粘贴到您的问题中......以及相关的代码部分
  • @mhlester 帖子已编辑
  • 可能端口关闭了?
  • 它看起来像 @keiv.fly 可能在这里有所作为.. Related post.

标签: python twisted


【解决方案1】:

错误是说您尝试连接的服务器没有响应。您要么没有更正到正确的服务器,要么服务器未设置为按您希望的方式回复。另一种可能性是您没有打开适当的端口来建立连接。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-07-11
    • 2021-06-25
    • 1970-01-01
    • 2013-01-16
    • 2021-10-24
    • 2022-08-16
    • 2018-11-02
    • 1970-01-01
    相关资源
    最近更新 更多