Re: TypeError: batch_insert() takes exactly 4 arguments (5 given)

2009-11-05 Thread Ian Eure

On Nov 3, 2009, at 3:26 PM, mobiledream...@gmail.com wrote:


Latest cassandra causing these problems?

The Thrift code doesn't play nice with Python 2.6. This _may_ be fixed  
in the 2.6.4, but I haven't checked.


I suggest sticking with Python 2.5.x for the time being.

 - Ian


Re: TypeError: batch_insert() takes exactly 4 arguments (5 given)

2009-11-03 Thread mobiledreamers
*Latest cassandra causing these problems*?

/usr/lib/python2.6/site-packages/Thrift-0.1-py2.6-linux-i686.egg/thrift/Thrift.py:58:
DeprecationWarning: BaseException.message has been deprecated as of Python
2.6
/usr/lib/python2.6/site-packages/Thrift-0.1-py2.6-linux-i686.egg/thrift/Thrift.py:99:
DeprecationWarning: BaseException.message has been deprecated as of Python
2.6
/home/mark/work/common/lazyboy/connection.py:101: DeprecationWarning:
BaseException.message has been deprecated as of Python 2.6
  if tx.message:
/home/mark/work/common/lazyboy/connection.py:102: DeprecationWarning:
BaseException.message has been deprecated as of Python 2.6
  message = tx.message
Traceback (most recent call last):
  File simplecass.py, line 8, in module
x.save()
  File /home/mark/work/common/lazyboy/record.py, line 168, in save
client.batch_insert(*self._get_batch_args(self.key, changed))
  File /home/mark/work/common/lazyboy/connection.py, line 106, in func
raise ErrorThriftMessage(message)
lazyboy.exceptions.ErrorThriftMessage: Internal error processing
batch_insert


ERROR - Internal error processing batch_insert
java.lang.NullPointerException
at
org.apache.cassandra.service.CassandraServer.batch_insert(CassandraServer.java:328)
at
org.apache.cassandra.service.Cassandra$Processor$batch_insert.process(Cassandra.java:691)
at
org.apache.cassandra.service.Cassandra$Processor.process(Cassandra.java:560)
at
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:253)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)


On Tue, Nov 3, 2009 at 2:59 PM, mobiledream...@gmail.com wrote:

 in this simple example
 http://pastie.org/682435

 i got this error
  http://pastie.org/682436

 Can you please clarify what is the bug
 this uses latest cassandra from git and latest lazyboy from git

 THanks




-- 
Bidegg worlds best auction site
http://bidegg.com


TypeError: batch_insert() takes exactly 4 arguments (5 given)

2009-11-03 Thread mobiledreamers
in this simple example
http://pastie.org/682435

i got this error
 http://pastie.org/682436

Can you please clarify what is the bug
this uses latest cassandra from git and latest lazyboy from git

THanks