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 5BEA710E26 for ; Wed, 6 Nov 2013 16:54:23 +0000 (UTC) Received: (qmail 71435 invoked by uid 500); 6 Nov 2013 16:54:19 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 71274 invoked by uid 500); 6 Nov 2013 16:54:12 -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 71266 invoked by uid 99); 6 Nov 2013 16:54:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 16:54:10 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of erwin.karbasi@gmail.com designates 209.85.212.180 as permitted sender) Received: from [209.85.212.180] (HELO mail-wi0-f180.google.com) (209.85.212.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 16:54:06 +0000 Received: by mail-wi0-f180.google.com with SMTP id ey11so4014358wid.1 for ; Wed, 06 Nov 2013 08:53:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=x0DQj6NBriecsbOuGcoeBP/aicDITe72HRFgva2ucbI=; b=j16SRor4ef1vV0/Ij8FIX04wr7iMlAu+0bCYBMKJfDyE35xbsUkciNVhDEpp6YvE9F DZ1s34htKjfB5WphaoN9Shj3C6vEjfWR2KedJLHKt0eKO0T2sZR+6uSc70Ogk3bTTdEc 4CsQROymzQJIAVgHxyUVJPKMqVS6Sj3rafY+tTfHBgBqmRiccBI+ku3vA8hdBZyjhCxk 7AtYcMkT1rkrPCE/MN2F3XqNFPq7brLhpRUL8rkkgUIxWIW5OH8ctNq2xcdyQeD3pdGd 4UJm0loWbtMWcat+Q6Gk6oHyASSEZyK3VietPBnrNJz5if5/G1YkU/DmII/Anv1WoKDl 8t/Q== X-Received: by 10.180.99.3 with SMTP id em3mr22300580wib.4.1383756825293; Wed, 06 Nov 2013 08:53:45 -0800 (PST) MIME-Version: 1.0 Sender: erwin.karbasi@gmail.com Received: by 10.217.11.135 with HTTP; Wed, 6 Nov 2013 08:53:15 -0800 (PST) In-Reply-To: References: From: Erwin Karbasi Date: Wed, 6 Nov 2013 18:53:15 +0200 X-Google-Sender-Auth: -OTaBzTxxxMC9CP4Vyh9WKRNSqg Message-ID: Subject: Re: Running cqlsh throws "No appropriate python interpreter found." To: "user@cassandra.apache.org" Content-Type: multipart/alternative; boundary=f46d043bdaf406fb2b04ea84fea0 X-Virus-Checked: Checked by ClamAV on apache.org --f46d043bdaf406fb2b04ea84fea0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Romin, I've managed. I installed Zlib and then compiled with "--with-zlib=3D/usr/lib". I didn't do this python -c "import zlib". Thanks a lot for fast turnaround response, Erwin Karbasi AT&T, Senior Software Architect On Wed, Nov 6, 2013 at 4:21 PM, Romain HARDOUIN wrote: > Since you're on RHEL 5, you have compiled Python (no package available, > right?). > Have you configured Python to be built with zlib support: > "--with-zlib=3D/usr/lib"? > If not, compiled it with zlib and then 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 > > A : "user@cassandra.apache.org" , > > Date : 06/11/2013 11:43 > > Objet : Re: Running cqlsh throws "No appropriate 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_install 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 > 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 > > 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 > --f46d043bdaf406fb2b04ea84fea0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Romin,

I've managed.
I installed Zlib and then compiled with &q= uot;--with-zlib=3D/usr/lib".
I did= n't do this python -c "import zlib".

Thanks a lot for fast turnaround response,
Erwin Karbasi
AT&T, Senior Software Architect


On Wed, Nov 6, 2013 at 4:21 PM, Romain H= ARDOUIN <romain.hardouin@urssaf.fr> wrote:
Since you're on RHEL 5, you have compiled Python (no package available, right?).
Have you configured Python to be built with zlib support: "--with-zlib=3D/usr/lib"?
If not, compiled it with zlib and then 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" <user@cassandra.apache.org&= gt;,
> Date : 06/11/2013 11:43
> Objet : Re: Running cqlsh throws "No appropriate 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_install 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/i= wuser/dsc-
> cassandra-2.0.2/bin', '/usr/local/bin/python2.6', '/us= r/local/lib/
> python26.zip', '/usr/local/lib/python2.6', '/usr/local= /lib/python2.
> 6/plat-linux2', '/usr/local/lib/python2.6/lib-tk', '/u= sr/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 incompatible Python
> version but I've already installed Python 2.6 and as it seems cqls= h
> 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

--f46d043bdaf406fb2b04ea84fea0--