Fixing Cqlsh Import Error

Problem:

Running Cqlsh exits with the error :

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

Fix:

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/
Kj
Kj [/.] Sreekumar programs computers as a hobby and profession. Into programming from his school days, Sree uses Codemarvels to key in facts and fixes he finds interesting while working on different projects. Some of the articles here give away a few shades of his philosophical leanings too.

Leave a Comment

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