Python 无法为cassandra启动cqlsh。获取连接错误:AttributeError(“模块”x27;对象没有属性“解压”x27;,),)
我用ubuntu 16.04重新安装了cassandra 3.11.5。安装完成,没有任何错误。我还可以获得nodetool状态,如下所示:Python 无法为cassandra启动cqlsh。获取连接错误:AttributeError(“模块”x27;对象没有属性“解压”x27;,),),python,cassandra,connection,cqlsh,Python,Cassandra,Connection,Cqlsh,我用ubuntu 16.04重新安装了cassandra 3.11.5。安装完成,没有任何错误。我还可以获得nodetool状态,如下所示: pc-2@pc2-VirtualBox:~$ nodetool status Datacenter: datacenter1 ======================= Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Tokens
pc-2@pc2-VirtualBox:~$ nodetool status
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns (effective) Host ID
Rack
UN 127.0.0.1 318.24 KiB 256 100.0% ef702df8-
aaf1-4e98-b771-41d4e9bc1bcf rack1
但当我尝试启动cqlsh时,我得到以下错误:
pc-2@pc2-VirtualBox:~$ cqlsh
Connection error: ('Unable to connect to any servers',
{'127.0.0.1': ProtocolError('Unexpected response during Connection
setup: AttributeError("\'module\' object has no attribute
\'decompress\'",)',)})
已尝试:1.cqlsh 127.0.0.1
2.导出CQLSH\u NO\u BUNDLED=true
3.安装了python snappy,
仍然出现相同的错误。解决了它!我认为问题在于模块冲突。在此之前,我已经为python安装了LZ4库。我卸载了LZ4,它现在可以工作了。解决了!我认为问题在于模块冲突。在此之前,我已经为python安装了LZ4库。我卸载了LZ4,它现在可以工作了。