Fixing Cqlsh Import Error


Running Cqlsh exits with the error :

from cqlshlib import cql3handling, cqlhandling, pylexotron,sslhandling, copy
ImportError: No module named cqlshlib


Set right python path

find /usr/lib/ -name cqlshlib
#assume you got the result as /usr/lib/python2.7/dist-packages/
export PYTHONPATH=/usr/lib/python2.7/dist-packages/

Leave a Reply

Your email address will not be published. Required fields are marked *


* Copy This Password *

* Type Or Paste Password Here *

68,488 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>