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/
Sreekumar Kj
Sreekumar (KJ) has been a hobby programmer from school days. Codemarvels is his personal blog from the year 2010, where he writes about technology, philosophy, society and a bit about physics. He now runs a conversational AI company - DheeYantra - focusing his efforts to help businesses improve operational efficiency using digital employees powered by AI.