AttributeError: 'module' object has no attribute 'enableTrace'

Traceback (most recent call last):
File "Long-lived-connection.py", line 29, in <module>
websocket.enableTrace(True)
AttributeError: 'module' object has no attribute 'enableTrace'

python 出现如上错误是 安装的模块不整错 需要重新安装正确的模块

pip uninstall websocket-client
pip uninstall websocket
pip install websocket-client

  

上一篇:Sharepoint2010突然之间不能打开页面,报503错误The service is unavailable


下一篇:advanced dom scripting dynamic web design techniques Chapter 2 CREATING YOUR OWN REUSABLE OBJECTS