On Fri, Sep 18, 2009 at 8:07 AM, Ben Eliott
<[email protected]> wrote:
> Hi,
> I'm still in the WTF stage of cassandra, trying out the lazyboy python lib.
> 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': '[email protected]'}
> True
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "/Users/beneliott/Projects/TornadoSites/test/test1/record.py", line
> 77, in <module>
>    u.save()           # -> {'username': 'ieure', 'email': '[email protected]'}
>  File
> "/Users/beneliott/Code/py-packages/tornado-dev/lib/python2.5/site-packages/lazyboy/record.py",
> line 164, in save
>    client.batch_insert(*self._get_batch_args(self.key, changed))
>  File
> "/Users/beneliott/Code/py-packages/tornado-dev/lib/python2.5/site-packages/lazyboy/connection.py",
> line 106, in func
>    raise 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.

-- 
# Curt Micol

Reply via email to