Note that there are some explanatory texts on larger screens.

plurals
  1. POLazyboy AttributeError while saving to cassandra
    primarykey
    data
    text
    <p>Hey Stackoverflow comm,</p> <p>I'm trying to write to my cassandra database but something is going wrong.. Some datas: I'm using Python 2.7 on Ubuntu (11.04), cassandra 0.8.4 and lazyboy 0.7.5. While I want to write to cassandra I get</p> <pre><code>Traceback (most recent call last): File "/home/kq/protoWorkspace/indexer/src/database.py", line 40, in &lt;module&gt; w.save() File "/usr/local/lib/python2.7/dist-packages/Lazyboy-0.7.5-py2.7.egg/lazyboy/record.py", line 202, in save self._save_internal(self.key, changes, consistency) File "/usr/local/lib/python2.7/dist-packages/Lazyboy-0.7.5-py2.7.egg/lazyboy/record.py", line 236, in _save_internal key, changes['changed'], consistency)) File "/usr/local/lib/python2.7/dist-packages/Lazyboy-0.7.5-py2.7.egg/lazyboy/connection.py", line 53, in __inner__ raise ex AttributeError: 'Client' object has no attribute 'batch_insert' </code></pre> <p>This is my actual source:</p> <pre><code>from lazyboy import * from lazyboy.key import Key connection.add_pool('indexer', ['localhost:9160']) class Indexx(Key): def __init__(self, *args, **kwargs): Key.__init__(self, "indexer", "indexx", key) class Word(record.Record): _required = ('word', 'docID', 'count',) def __init__(self, *args, **kwargs): record.Record.__init__(self, *args, **kwargs) self.key = Indexx() w = Word() print w.key data = {'word' : 'test', 'docID' : 'docId-TEST', 'count' : 42} w.update(data) w.update(data.items()) w.update(**data) for k in data: w[k] = data[k] w_ = Word(data) print w_ print w.is_modified() w.save() </code></pre> <p>Any ideas, what I am doing wrong? :)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload