DataStax Help Center

"No appropriate python interpreter found" when running cqlsh

Summary

From DSE5.0 the required version of python for cqlsh is 2.7. Prior versions will produce an error if attempts to run cqlsh are made before upgrading. This note applies to RHEL / Centos type platforms.

Symptoms

The following generic error is observed:

$ ./bin/cqlsh
No appropriate python interpreter found.

Cause

Python 2.7 is required to run cqlsh

Solution

The solution is covered in the documentation here:

http://docs.datastax.com/en/latest-dse/datastax_enterprise/install/installPython27RHEL.html

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

  • Avatar
    Richard Jones

    If you use the SCL solution provided to install python27 on RHEL/CentOS 6.x. Adding the following profile script makes it easier to run cqlsh by always running it in a python27 environment. This doesn't break yum or modify the system python version.

    /etc/profile.d/cqlsh.sh

    # Run cqlsh with python2.7
    if [ -f /usr/bin/scl ]; then
    if scl -l | grep -q python27 ; then
    alias cqlsh='scl enable python27 -- cqlsh'
    fi
    fi

Powered by Zendesk