我已经安装了扭曲和Autobahn网络套接字
pip install twisted
pip install autobahn但是,当我从Autobahn导入任何工厂时,我会得到无法导入名称错误。
>>> from twisted.internet import reactor
>>> from autobahn.websocket import WebSocketClientFactory
Traceback (most recent call last):
File "<console>", line 1, in <module>
ImportError: cannot import name WebSocketClientFactory我遗漏了什么吗?这是点冻
Twisted==13.2.0
Twisted-Core==12.3.0
Twisted-Names==12.3.0
Twisted-Web==12.3.0
autobahn==0.7.4
websocket==0.2.1
websocket-client==0.13.0发布于 2014-01-27 12:56:53
它看起来就像WebSocketClientFactory在twisted sub-module
from autobahn.twisted.websocket import WebSocketClientFactory
https://stackoverflow.com/questions/21381454
复制相似问题