Can't get cqlsh to run

Viewed 1356

I've installed DSE 5.1.10 + the DSE demos as per these instructions on ubuntu. Apparently it doesn't come with cqlsh so I went about installing it myself. I've tried various methods the latest of which being

pip3 install cqlsh

this completed successfully and I can now run

cqlsh -version

and get

cqlsh 5.0.1

when running

cqlsh

I get the following error

Traceback (most recent call last):
  File "/usr/bin/dsecqlsh.py", line 510, in <module>
    cqlsh.main(*cqlsh.read_options(sys.argv[1:], os.environ))
  File "/usr/bin/cqlsh.py", line 2447, in main
    encoding=options.encoding)
  File "/usr/bin/dsecqlsh.py", line 383, in __init__
    connect_timeout=connect_timeout)
  File "/usr/bin/cqlsh.py", line 528, in __init__
    self.get_connection_versions()
  File "/usr/bin/cqlsh.py", line 645, in get_connection_versions
    if result['dse_version']:
KeyError: 'dse_version'

Any ideas what I'm doing wrong?

Thanks

2 Answers

I'm curious as to your source of information that says DSE does not include the cqlsh command line. As far as I am aware all versions of DSE will install this.

To me it looks like you have clobbered your cqlsh install with the pip3 install command. You've likely installed the OSS version of cqlsh, hence the error complaining about the dse_version above.

I would say at first try uninstalling the pip3 version and see if that helps and then uninstall DSE and reinstall.

Related