You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by "K Natarajan, Karthik (Nokia - IN/Bangalore)" <ka...@nokia.com> on 2017/08/01 06:05:31 UTC

Issue with cassandra 3.1X and Python 2.7.13 in Debian 8.8

Hi,
When I Install Cassandra 3.11X and Python 2.7.X in Debian 8.8, the Cqlsh does not start. I get the following error.

debian@vm-184:/opt/apache-cassandra-3.10/bin$ ./cqlsh
Python Cassandra driver not installed, or not on PYTHONPATH. You might try "pip install cassandra-driver".
Python: /usr/local/bin/python Module load path: ['/opt/apache-cassandra-3.10/bin/../lib/six-1.7.3-py2.py3-none-any.zip', '/opt/apache-cassandra-3.10/bin/../lib/futures-2.1.6-py2.py3-none-any.zip', '/opt/apache-cassandra-3.10/bin/../lib/cassandra-driver-internal-only-3.7.0.post0-2481531.zip/cassandra-driver-3.7.0.post0-2481531', '/opt/apache-cassandra-3.10/bin', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages']
Error: can't decompress data; zlib not available

Have to do some workaround like this to get it working.

./configure --with-zlib --with-ssl
sudo apt-get install libssl-dev
sudo apt-get install zlib1g-dev

I feel there is an issue with default installation of Cassandra integration with python.

Regards
Karthik




Re: Issue with cassandra 3.1X and Python 2.7.13 in Debian 8.8

Posted by Michael Shuler <mi...@pbandjelly.org>.
/usr/local/bin/python is your own source install of python. Using the
system python with cqlsh should "just work" on Jessie with `apt-get
install python'

-- 
Michael

On 08/01/2017 01:05 AM, K Natarajan, Karthik (Nokia - IN/Bangalore) wrote:
> Hi,
> When I Install Cassandra 3.11X and Python 2.7.X in Debian 8.8, the Cqlsh
> does not start. I get the following error.
>  
> debian@vm-184:/opt/apache-cassandra-3.10/bin$ ./cqlsh
> Python Cassandra driver not installed, or not on PYTHONPATH. You might
> try "pip install cassandra-driver".
> Python: /usr/local/bin/python Module load path:
> ['/opt/apache-cassandra-3.10/bin/../lib/six-1.7.3-py2.py3-none-any.zip',
> '/opt/apache-cassandra-3.10/bin/../lib/futures-2.1.6-py2.py3-none-any.zip',
> '/opt/apache-cassandra-3.10/bin/../lib/cassandra-driver-internal-only-3.7.0.post0-2481531.zip/cassandra-driver-3.7.0.post0-2481531',
> '/opt/apache-cassandra-3.10/bin', '/usr/local/lib/python27.zip',
> '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2',
> '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old',
> '/usr/local/lib/python2.7/lib-dynload',
> '/usr/local/lib/python2.7/site-packages']
> Error: can't decompress data; zlib not available
>  
> Have to do some workaround like this to get it working.
> ./configure --with-zlib --with-ssl
> sudo apt-get install libssl-dev
> sudo apt-get install zlib1g-dev
>  
> I feel there is an issue with default installation of Cassandra
> integration with python.
>  
> Regards
> Karthik
>  
>  
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@cassandra.apache.org
For additional commands, e-mail: user-help@cassandra.apache.org