Version of Pycassa that supports 0.7.0-beta1

0 views
Skip to first unread message

Christian Carollo

unread,
Aug 27, 2010, 6:34:40 PM8/27/10
to pycassa-devel
After installing cassandra .7-beta1 and pycassa 0.4.0 I kept running
into the following error:

AssertionError: Thrift API version mismatch. (Client: 12, Server: 10)

After talking with a people in #cassandra, I was told that the pycassa
trunk is probably not synced up yet with beta1 and to
send an email to this group to see if someone can get me the right
pycassa library. Or maybe to post it to github?

Any help would be great. We have beta1 installed and are ready to
move forward as soon as possible.

Thanks
Christian

Eric Evans

unread,
Aug 27, 2010, 6:49:54 PM8/27/10
to pycass...@googlegroups.com
On Fri, Aug 27, 2010 at 5:34 PM, Christian Carollo <ccar...@gmail.com> wrote:
> After installing cassandra .7-beta1 and pycassa 0.4.0 I kept running
> into the following error:
>
> AssertionError: Thrift API version mismatch. (Client: 12, Server: 10)
>
> After talking with a people in #cassandra, I was told that the pycassa
> trunk is probably not synced up yet with beta1 and to
> send an email to this group to see if someone can get me the right
> pycassa library.  Or maybe to post it to github?

Pycassa trunk is, but from your comment above, it sounds like you're
running 0.4.0.

This was fixed in
http://github.com/vomjom/pycassa/commit/95af68496fc017436f93b507f37b962333f532c1,
so clone the repo (git clone git://github.com/vomjom/pycassa.git), and
install from that.

If you still have problems, make sure that you don't have a separate
version of the cassandra module (thrift generated code) installed
somewhere. Pycassa now embeds a copy of that module, but older
versions shipped it separately and encouraged you to install it with a
--cassandra argument.

--
Eric Evans
john.er...@gmail.com

Christian Carollo

unread,
Aug 27, 2010, 7:10:23 PM8/27/10
to pycassa-devel
Eric

I cleaned out my cassandra library that was in /usr/local/lib/
python2.6/dist-packages
and removed my own pycassa install. I then clone git from the git
link that you sent in
the prior email and installed that version of pycassa. Below is the
message that I received.

I had messed around prior to this with different installs of the
thrift. Is it possible that I have a version either 0.3 or 0.4 that
doesnt work with this version of pycassa?

Thanks in advance.
Christian

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pycassa/columnfamily.py", line 102, in __init__
col_fam = client.get_keyspace_description()[self.column_family]
File "pycassa/connection.py", line 226, in get_keyspace_description
ks_def = self.describe_keyspace(keyspace)
File "pycassa/connection.py", line 170, in _client_call
conn = self._ensure_connection()
File "pycassa/connection.py", line 181, in _ensure_connection
conn = self.connect()
File "pycassa/connection.py", line 195, in connect
self._timeout, self._credentials, self._recycle)
File "pycassa/connection.py", line 45, in __init__
"(Client: %s, Server: %s)" % (API_VERSION[0],
server_api_version[0])
AssertionError: Thrift API version mismatch. (Client: 12, Server: 10)


On Aug 27, 3:49 pm, Eric Evans <john.eric.ev...@gmail.com> wrote:
> On Fri, Aug 27, 2010 at 5:34 PM, Christian Carollo <ccaro...@gmail.com> wrote:
> > After installing cassandra .7-beta1 and pycassa 0.4.0 I kept running
> > into the following error:
>
> > AssertionError: Thrift API version mismatch. (Client: 12, Server: 10)
>
> > After talking with a people in #cassandra, I was told that the pycassa
> > trunk is probably not synced up yet with beta1 and to
> > send an email to this group to see if someone can get me the right
> > pycassa library.  Or maybe to post it to github?
>
> Pycassa trunk is, but from your comment above, it sounds like you're
> running 0.4.0.
>
> This was fixed inhttp://github.com/vomjom/pycassa/commit/95af68496fc017436f93b507f37b9...,
> so clone the repo (git clone git://github.com/vomjom/pycassa.git), and
> install from that.
>
> If you still have problems, make sure that you don't have a separate
> version of the cassandra module (thrift generated code) installed
> somewhere.  Pycassa now embeds a copy of that module, but older
> versions shipped it separately and encouraged you to install it with a
> --cassandra argument.
>
> --
> Eric Evans
> john.eric.ev...@gmail.com

Eric Evans

unread,
Aug 27, 2010, 7:34:33 PM8/27/10
to pycass...@googlegroups.com

Crap, my bad, this is saying that the API supported by pycassa is *newer* than what's on the server.

I would recommended upgrading to Cassandra trunk.

Christian Carollo

unread,
Aug 27, 2010, 7:42:16 PM8/27/10
to pycass...@googlegroups.com
Can you send me that link please?

Thanks.

Christian Carollo

unread,
Aug 27, 2010, 7:44:44 PM8/27/10
to pycass...@googlegroups.com
Nevermind, I found it. 

On Fri, Aug 27, 2010 at 4:34 PM, Eric Evans <john.er...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages