incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Bailey <n...@datastax.com>
Subject Re: can't get cqlsh running
Date Thu, 11 Oct 2012 15:56:28 GMT
It looks like easy_install is only recognizing python2.4 on your
system. It is installing the cql module for that version. The cqlsh
script explicitly looks for and runs with python2.6 since 2.4 isn't
supported.

I believe you can run 'python2.6 easy_install cql' to force it to use
that python install.

-Nick

On Thu, Oct 11, 2012 at 10:45 AM, Tim Dunphy <bluethundr@gmail.com> wrote:
> Hey guys,
>
>  I'm on cassandra 1.1.5 on a centos 5.8 machine. I have the cassandra bin
> directory on my path so that i can simply type 'cassandra-cli' from anywhere
> on my path to get into the cassandra command line environment. It's great!
>
> But I'd like to start using the cql shell (cqlsh) but apparently I don't
> know enough about python to get this working. This is what happens when I
> try to run cqlsh:
>
> [root@beta:~] #cqlsh
>
> Python CQL driver not installed, or not on PYTHONPATH.
> You might try "easy_install cql".
>
> Python: /usr/bin/python2.6
> Module load path: ['/usr/local/apache-cassandra-1.1.5/bin/../pylib',
> '/usr/local/apache-cassandra-1.1.5/bin',
> '/usr/local/apache-cassandra-1.1.5/bin', '/usr/lib64/python26.zip',
> '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2',
> '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old',
> '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages',
> '/usr/lib/python2.6/site-packages',
> '/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info']
>
> Error: No module named cql
>
> But easy_install claims that it's already installed:
>
> [root@beta:~] #easy_install cql
> Searching for cql
> Best match: cql 1.0.10
> Processing cql-1.0.10-py2.4.egg
> cql 1.0.10 is already the active version in easy-install.pth
>
> Using /usr/lib/python2.4/site-packages/cql-1.0.10-py2.4.egg
> Processing dependencies for cql
>
> I'm thinking that I just don't know how to set the PYTHONPATH variable or
> where to point it to. Can someone give me a pointer here?
>
> Thanks
> Tim
>
> --
> GPG me!!
>
> gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
>
>

Mime
View raw message