cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mateusz Korniak <mateusz-li...@ant.gliwice.pl>
Subject Re: Doubt regarding CQL
Date Wed, 22 Feb 2012 08:17:29 GMT
On Wednesday 22 of February 2012, Rishabh Agrawal wrote:
> I have installed CQL drivers for python. When I try execute cqlsh I get
> following error
> cql-1.0.3$ cqlsh localhost 9160
> (...)
>   File "/usr/local/lib/python2.7/dist-packages/cql/cassandra/ttypes.py",
> line 7, in <module> from thrift.Thrift import *
> ImportError: No module named thrift.Thrift

Seems you do not have installed python thrift module.

In my distro (PLD) it is:
Package:        python-thrift-0.5.0-4.i686
/usr/lib/python2.7/site-packages:  Thrift-0.1-py2.7.egg-info,
/usr/lib/python2.7/site-packages/thrift:  TSCons.pyc, TSCons.pyo, 
TSerialization.pyc, TSerialization.pyo, Thrift.pyc, Thrift.pyo, __init__.pyc, 
__init__.pyo,
/usr/lib/python2.7/site-packages/thrift/protocol:  TBinaryProtocol.pyc, 
TBinaryProtocol.pyo, TCompactProtocol.pyc, TCompactProtocol.pyo, 
TProtocol.pyc, TProtocol.pyo, __init__.pyc, __init__.pyo, fastbinary.so
/usr/lib/python2.7/site-packages/thrift/server:  THttpServer.pyc, 
THttpServer.pyo, TNonblockingServer.pyc, TNonblockingServer.pyo, TServer.pyc, 
TServer.pyo, __init__.pyc, __init__.pyo
/usr/lib/python2.7/site-packages/thrift/transport:  THttpClient.pyc, 
THttpClient.pyo, TSocket.pyc, TSocket.pyo, TTransport.pyc, TTransport.pyo, 
TTwisted.pyc, TTwisted.pyo, __init__.pyc, __init__.pyo


Regards,

-- 
Mateusz Korniak

Mime
View raw message