【问题标题】:ConnectionRefusedError exception when running Autobahn rpc example运行 Autobahn rpc 示例时出现 ConnectionRefusedError 异常
【发布时间】:2015-03-20 16:29:31
【问题描述】:

我正在尝试在 python 中运行AutobahnPython slowsquare rpc example,但运气不佳。

当运行上面的脚本时,我得到了

Traceback (most recent call last):
  File "C:\src\twisted-test\rpc_server.py", line 39, in <module>
    runner.run(Component)
  File "C:\Python27\lib\site-packages\autobahn\twisted\wamp.py", line 245, in run
    raise connect_error.exception
twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 10061: No connection could be made because the target machine actively refused it..

一般来说,我对扭曲/高速公路和 websockets 没有太多经验,我有点卡住了。我尝试使用 web socket 的其他示例运行良好。

我在 Windows 7 上使用 python 2.7。谢谢。

【问题讨论】:

    标签: python twisted autobahn


    【解决方案1】:

    我看到 Autobahn 框架的开发者推荐了以下内容:

    pip install crossbar
    cd $HOME/mynode
    crossbar init
    crossbar start
    

    这是关于您的问题的帖子:autobahn google groups

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-09-08
      • 1970-01-01
      • 2017-09-25
      • 1970-01-01
      • 2023-03-06
      • 2019-09-16
      • 2014-10-27
      相关资源
      最近更新 更多