Python 运行高速公路rpc示例时出现ConnectionRefusedError异常

Python 运行高速公路rpc示例时出现ConnectionRefusedError异常,python,twisted,autobahn,Python,Twisted,Autobahn,我正在尝试用python运行,但运气不好 当运行上面的脚本时,我得到 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

我正在尝试用python运行,但运气不好

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

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..
回溯(最近一次呼叫最后一次):
文件“C:\src\twisted test\rpc\u server.py”,第39行,在
runner.run(组件)
文件“C:\Python27\lib\site packages\autobahn\twisted\wamp.py”,第245行,正在运行
引发连接错误。异常
twisted.internet.error.ConnectionRefusedError:连接被另一方拒绝:10061:无法建立连接,因为目标计算机主动拒绝了它。。
一般来说,我对twisted/Autobahn和websockets没有太多经验,我有点卡住了。我尝试使用WebSocket的其他示例工作得非常好


我正在Windows7上使用Python2.7。谢谢。

我看到高速公路框架的开发者推荐了以下内容:

pip install crossbar
cd $HOME/mynode
crossbar init
crossbar start
以下是关于您的问题的线索: