From cassandra-user-return-616-apmail-incubator-cassandra-user-archive=incubator.apache.org@incubator.apache.org Fri Sep 18 14:01:36 2009 Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 91208 invoked from network); 18 Sep 2009 14:01:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Sep 2009 14:01:34 -0000 Received: (qmail 2022 invoked by uid 500); 18 Sep 2009 14:01:34 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 1982 invoked by uid 500); 18 Sep 2009 14:01:34 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 1973 invoked by uid 99); 18 Sep 2009 14:01:34 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Sep 2009 14:01:34 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of asenchi@gmail.com designates 209.85.220.222 as permitted sender) Received: from [209.85.220.222] (HELO mail-fx0-f222.google.com) (209.85.220.222) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Sep 2009 14:01:11 +0000 Received: by fxm22 with SMTP id 22so703456fxm.12 for ; Fri, 18 Sep 2009 07:00:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=9y0MhV/RqfXxcT/TFF1iPJ/w7t9rt41m0iTbgNDAXM8=; b=pFQkHE9/2MHg3nklW4i6Oj//K4QUkxusXSEaT/c/kmpDyU6sOYYgrNGsxUppJRJ21s HrMYxmwMj07RAz8EvJixVh32PI6tHCJX6nXzWaED19yB6LwM+25a1RC9iit6+qNqTdDU 8pPxW8/SyLGz3C6nUG8dQvR6pkLoZmTPRBxgA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; b=tsHUjecagGBPmVz1LckAzINmhvou9VFqSOcyiKr+jPKXeO1ynv8bMP1QTlOc/hJH/X IrngbnkeGknC+NzGGdm6PjfEFKnccKkuXuCaNP0ozNjebr520JAebrtzlbWN98hdSy4h 3QGb23FF0I/ryaVb5ywWFnLAvFM42nvLJ62X0= MIME-Version: 1.0 Received: by 10.239.143.219 with SMTP id l27mr91967hba.162.1253282449700; Fri, 18 Sep 2009 07:00:49 -0700 (PDT) Reply-To: asenchi@asenchi.com In-Reply-To: References: Date: Fri, 18 Sep 2009 10:00:49 -0400 Message-ID: <8d9c091a0909180700q392bedd8i921e720fbb4b53a6@mail.gmail.com> Subject: Re: newbie trying to work lazyboy lib From: Curt Micol To: cassandra-user@incubator.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Sep 18, 2009 at 8:07 AM, Ben Eliott wrote: > Hi, > I'm still in the WTF stage of cassandra, trying out the lazyboy python li= b. > I'm getting back this error when i try and run the record.py example > >>>> from test1 import record > {'column_family': 'Users', 'keyspace': 'UserData', 'super_column': None, > 'key': 'd074db72b7a045978e8f0ba048907767'} > User: {'username': 'ieure', 'email': 'ian@digg.com'} > True > Traceback (most recent call last): > =C2=A0File "", line 1, in > =C2=A0File "/Users/beneliott/Projects/TornadoSites/test/test1/record.py",= line > 77, in > =C2=A0 =C2=A0u.save() =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 # -> {'username'= : 'ieure', 'email': 'ian@digg.com'} > =C2=A0File > "/Users/beneliott/Code/py-packages/tornado-dev/lib/python2.5/site-package= s/lazyboy/record.py", > line 164, in save > =C2=A0 =C2=A0client.batch_insert(*self._get_batch_args(self.key, changed)= ) > =C2=A0File > "/Users/beneliott/Code/py-packages/tornado-dev/lib/python2.5/site-package= s/lazyboy/connection.py", > line 106, in func > =C2=A0 =C2=A0raise ErrorThriftMessage(message) > lazyboy.exceptions.ErrorThriftMessage: Invalid method name: 'batch_insert= ' I've seen this issue a couple times now on IRC, and I believe that you are using 0.3 when you should be using Cassandra 0.4. Make sure you regen your thrift bindings also. --=20 # Curt Micol