Autobahn python twisted wamp客户端示例给出了_parseClientTCP()的TypeError

Autobahn python twisted wamp客户端示例给出了_parseClientTCP()的TypeError,python,autobahn,twisted.internet,wamp-protocol,Python,Autobahn,Twisted.internet,Wamp Protocol,我想运行这里列出的高速公路Python扭曲示例。但是,运行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) Fil

我想运行这里列出的高速公路Python扭曲示例。但是,运行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)

请帮忙!如何让示例运行?server.py运行正常。

什么版本?是否可以运行:
python-c“导入扭曲;打印(扭曲.\uuuuu版本)”
?这给了我们什么?试试看:它是11.1.0。这是Python 2.7的兼容版本吗?这对于Twisted客户端端点支持来说太旧了。所以不是,请升级你的Twisted。目前的版本一般是13.2,我建议不要使用Python或Twisted的发行包。发行版软件包是不必要的,通常是过时的,有时甚至是破损的。
aptitude install python-twisted python-dev
aptitude install python-pip
pip install --upgrade twisted
pip install autobahn
pip install --upgrade autobahn