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