我想运行此处列出的 Autobahn Python 扭曲示例https://github.com/tavendo/AutobahnPython/tree/master/examples/twisted/wamp/basic。但是,运行 client.py 总是给我 TypeError:
$ python client.py -c pubsub.basic.frontend.Component
Traceback (most recent call last):
File "client.py", line 88, in <module>
client = clientFromString(reactor, args.websocket)
File "/usr/lib/python2.7/dist-packages/twisted/internet/endpoints.py", line 1029, in clientFromString
kwargs = _clientParsers[name](*args, **kwargs)
TypeError: _parseClientTCP() takes exactly 0 arguments (2 given)
环境详细信息:Ubuntu 12.04.2 LTS 64 位、Python 2.7.3、Autobahn 0.8.6
安装步骤:
aptitude install python-twisted python-dev
aptitude install python-pip
pip install --upgrade twisted
pip install autobahn
pip install --upgrade autobahn
请帮忙!如何让示例运行?server.py 运行良好。