1

I'm new to both Cassandra and Python.

I've downloaded and installed Cassandra as described in this article.

So, I have it in my PATH and I have also added it to my PYTHONPATH (not sure if I need this).

When I run test.py which contains:

import sys
print sys.path

from cassandra import cluster

It prints out PATH which contains

/Users/[username]/Downloads/apache-cassandra-1.0.9/bin

which is where my cassandra bin directory is located. Is there something else I'm supposed to do?

Shriroop
  • 1,174
  • 2
  • 16
  • 28
user2989960
  • 11
  • 1
  • 3
  • It's not clear what do you want as a result. Also your version is rather old. – twil Nov 14 '13 at 00:05
  • I clarified that it gives me a "no module named cassandra" error with that test.py file and I'm trying to get rid of it – user2989960 Nov 14 '13 at 00:11

1 Answers1

3

First of all you should remove /Users/[username]/Downloads/apache-cassandra-1.0.9/bin from PYTHONPATH. It's not the place for it.

cassandra package isn't there anymore. You'll have to use other library.

I'd suggest you look at this SO question best Cassandra library/wrapper for Python?

The Cassandra project has been recommending that new projects use CQL for a few versions now

Community
  • 1
  • 1
twil
  • 6,032
  • 1
  • 30
  • 28
  • pip also doesn't seem to be finding cassandra. When I try using pip, I get "Could not find any downloads that satisfy the requirement cassandra" and "No distributions at all found for cassandra". To clarify, did you mean that I could use pip install as long as I have cassandra in my PATH? – user2989960 Nov 14 '13 at 00:27