Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C28A1070D for ; Wed, 6 Nov 2013 14:22:47 +0000 (UTC) Received: (qmail 47228 invoked by uid 500); 6 Nov 2013 14:22:43 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 45614 invoked by uid 500); 6 Nov 2013 14:22:37 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 45234 invoked by uid 99); 6 Nov 2013 14:22:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 14:22:35 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [91.209.25.138] (HELO cer69mx21.cirtil.fr) (91.209.25.138) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 14:22:28 +0000 X-PJ: In-Reply-To: References: To: user@cassandra.apache.org MIME-Version: 1.0 Subject: Re: Running cqlsh throws "No appropriate python interpreter found." X-KeepSent: 58952E3E:D3EEC125-C1257C1B:004DBE91; type=4; name=$KeepSent From: Romain HARDOUIN Message-ID: Date: Wed, 6 Nov 2013 15:21:59 +0100 Content-Type: multipart/alternative; boundary="=_alternative 004EEEB5C1257C1B_=" X-Virus-Checked: Checked by ClamAV on apache.org Message en plusieurs parties au format MIME --=_alternative 004EEEB5C1257C1B_= Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Since you're on RHEL 5, you have compiled Python (no package available,=20 right?). Have you configured Python to be built with zlib support:=20 "--with-zlib=3D/usr/lib"? If not, compiled it with zlib and then run: python -c "import zlib"=20 No error should appear. Romain erwin.karbasi@gmail.com a =E9crit sur 06/11/2013 11:42:35 : > De : Erwin Karbasi > A : "user@cassandra.apache.org" ,=20 > Date : 06/11/2013 11:43 > Objet : Re: Running cqlsh throws "No appropriate python interpreter=20 found." > Envoy=E9 par : erwin.karbasi@gmail.com >=20 > Now I'm experiencing this: >=20 > [iwuser@erwin-lab2 bin]$ ./cqlsh >=20 > Python CQL driver not installed, or not on PYTHONPATH. > You might try "easy=5Finstall cql". >=20 > Python: /usr/local/bin/python2.6 > Module load path: ['./../lib/thrift-python-internal-only-0.9.1.zip', > './../lib/cql-internal-only-1.4.1.zip/cql-1.4.1', '/home/iwuser/dsc- > cassandra-2.0.2/bin', '/usr/local/bin/python2.6', '/usr/local/lib/ > python26.zip', '/usr/local/lib/python2.6', '/usr/local/lib/python2. > 6/plat-linux2', '/usr/local/lib/python2.6/lib-tk', '/usr/local/lib/ > python2.6/lib-old', '/usr/local/lib/python2.6/lib-dynload', '/usr/ > local/lib/python2.6/site-packages'] >=20 > Error: can't decompress data; zlib not available > Any idea? >=20 > Thanks, > Erwin Karbasi > AT&T, Senior Software Architect >=20 > On Wed, Nov 6, 2013 at 9:27 AM, Erwin Karbasi =20 wrote: > Hello All, > I have installed Cassandra Datastax community edition 2.2 and python > 2.6 but when I run ./cqlsh I faced with the following error: > "No appropriate python interpreter found." > I know that the error indicates that I have incompatible Python=20 > version but I've already installed Python 2.6 and as it seems cqlsh=20 > still uses my old version and not the new 2.6 version. > Any suggestion that shed some light would highly appreciated? > My OS is Linux RHEL 5.=20 >=20 > Thanks in advance, > Erwin Karbasi > AT&T, Senior Software Architect --=_alternative 004EEEB5C1257C1B_= Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Since you're on RHEL 5, you have compiled Python (no package available, right?).
Have you configured Python to be bui= lt with zlib support: "--with-zlib=3D/usr/lib"?
If not, compiled it with zlib and th= en run:
python -c "import zlib"
No error should appear.

Romain

erwin.karbasi@gmail.com a =E9crit sur 06/11/2013 11:= 42:35 :

> De : Erwin Karbasi <erwin@optinity.com>

> A : "user@cassandra.apache.org" <u= ser@cassandra.apache.org>,
> Date : 06/11/2013 11:43
> Objet : Re: Running cqlsh throws "No appro= priate python interpreter found."
> Envoy=E9 par : erwin.karbasi@gmail.com
>
> Now I'm experiencing this:
>
> [iwuser@erwin-lab2 bin]$ ./cqlsh
>
> Python CQL driver not installed, or not on PYTHONPATH.
> You might try "easy=5Finstall cql".
>
> Python: /usr/local/bin/python2.6
> Module load path: ['./../lib/thrift-python-internal-only-0.9.1.zip', > './../lib/cql-internal-only-1.4.1.zip/cql-1.4.1', '/home/iwuser/dsc- > cassandra-2.0.2/bin', '/usr/local/bin/python2.6', '/usr/local/lib/
> python26.zip', '/usr/local/lib/python2.6', '/usr/local/lib/python2.
> 6/plat-linux2', '/usr/local/lib/python2.6/lib-tk', '/usr/local/lib/
> python2.6/lib-old', '/usr/local/lib/python2.6/lib-dynload', '/usr/
> local/lib/python2.6/site-packages']
>
> Error: can't decompress data; zlib not available

> Any idea?
>
> Thanks,

> Erwin Karbasi
> AT&T, Senior Software Architect

>

> On Wed, Nov 6, 2013 at 9:27 AM, Erwin Karbasi <erwin@optinity.com> wrote:
> Hello All,

> I have installed Cassandra Datastax community edition 2.2 and python
> 2.6 but when I run ./cqlsh I faced with the following error:
> "No appropriate python interpreter found."

> I know that the error indicates that I have inc= ompatible Python
> version but I've already installed Python 2.6 and as it seems cqlsh
> still uses my old version and not the new 2.6 version.

> Any suggestion that shed some light would highly appreciated?

> My OS is Linux RHEL 5.
>
> Thanks in advance,

> Erwin Karbasi
> AT&T, Senior Software Architect
--=_alternative 004EEEB5C1257C1B_=--