Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning on starting cqlsh

The following warning appears every time I start cqlsh:

WARNING: pyreadline dependency missing. Install to enable tab completion.

How do I fix this?

like image 338
bunny Avatar asked Jan 17 '17 17:01

bunny


2 Answers

Install pyreadline for DataStax Cassandra

Set PATH variable for Python to
C:\Program Files\DataStax Community\python


1.     Download pyreadline: https://github.com/pyreadline/pyreadline
2.     Click on "ZIP" to download a zip file of PyReadline repository
3.     Extract to C:\pyreadline
4.     At the command prompt: navigate to C:\pyreadline
5.     Run this: C:\pyreadline\python setup.py install

This will update the Python distribution bundled with Datastax Community Edition.

like image 127
java_maestros Avatar answered Nov 24 '22 00:11

java_maestros


What version are you running, it looks like this has been fixed in a fairly low version.

https://issues.apache.org/jira/browse/CASSANDRA-7749

I would guess that most likely you are running on windows in which case just follow this here: ipython on Windows 7 can't find pyreadline

If this is not the case simply go to https://pypi.python.org/pypi/pyreadline/ and follow install instructions.

like image 32
Marko Švaljek Avatar answered Nov 24 '22 00:11

Marko Švaljek