Thanks Jonathan, that worked great.  I also had to build the source so I
added both of these steps to the Wiki (hopefully that is ok was not sure
the etiquette)

On Mon, Jun 27, 2011 at 3:47 PM, Jonathan Ellis <jbel...@gmail.com> wrote:

> install cql first.  check out from
> https://svn.apache.org/repos/asf/cassandra/drivers; cd drivers/py;
> python setup.py build; sudo python setup.py install
>
> On Mon, Jun 27, 2011 at 2:40 PM, Joseph Stein <crypt...@gmail.com> wrote:
> > So this is probably the first of a few noob questions and I am happy to
> > update the Wiki or try to help contribute fixes (if it is not something
> > stupid I am doing of course) as I learn the answers :)
> >
> > So by following the http://wiki.apache.org/cassandra/HowToContribute
> >
> > I am getting this error ....
> >
> >
> EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
> > ======================================================================
> > ERROR: Failure: ImportError (No module named cql)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >  File
> > "/Library/Python/2.6/site-packages/nose-0.11.4-py2.6.egg/nose/loader.py",
> > line 382, in loadTestsFromName
> >    addr.filename, addr.module)
> >  File
> >
> "/Library/Python/2.6/site-packages/nose-0.11.4-py2.6.egg/nose/importer.py",
> > line 39, in importFromPath
> >    return self.importFromDir(dir_path, fqname)
> >  File
> >
> "/Library/Python/2.6/site-packages/nose-0.11.4-py2.6.egg/nose/importer.py",
> > line 86, in importFromDir
> >    mod = load_module(part_fqname, fh, filename, desc)
> >  File
> >
> "/Users/joestein/source-apache-cassandra/cassandra-trunk/test/system/test_cql.py",
> > line 26, in <module>
> >    import cql
> > ImportError: No module named cql
> >
> > I followed the steps
> >
> > new-host-3:source-apache-cassandra joestein$ sudo easy_install nose
> > Password:
> > Searching for nose
> > Best match: nose 0.11.4
> > Processing nose-0.11.4-py2.6.egg
> > nose 0.11.4 is already the active version in easy-install.pth
> > Installing nosetests-2.6 script to /usr/local/bin
> > Installing nosetests script to /usr/local/bin
> >
> > Using /Library/Python/2.6/site-packages/nose-0.11.4-py2.6.egg
> > Processing dependencies for nose
> > Finished processing dependencies for nose
> >
> > new-host-3:cassandra-trunk joestein$ ant gen-thrift-py
> > Buildfile:
> /Users/joestein/source-apache-cassandra/cassandra-trunk/build.xml
> >
> > gen-thrift-py:
> >     [echo] Generating Thrift Python code from
> >
> /Users/joestein/source-apache-cassandra/cassandra-trunk/interface/cassandra.thrift
> > ....
> >
> > BUILD SUCCESSFUL
> > Total time: 2 seconds
> >
> > I have not done anything yet with the CQL but will try to figure out
> later
> > what I am doing wrong unless someone knows that would be great.
> >
> > Thanks!!!
> >
> > /*
> > Joe Stein
> > http://www.linkedin.com/in/charmalloc
> > Twitter: @allthingshadoop <http://www.twitter.com/allthingshadoop>
> > */
> >
>
>
>
> --
> Jonathan Ellis
> Project Chair, Apache Cassandra
> co-founder of DataStax, the source for professional Cassandra support
> http://www.datastax.com
>



-- 

/*
Joe Stein
http://www.linkedin.com/in/charmalloc
Twitter: @allthingshadoop <http://www.twitter.com/allthingshadoop>
*/

Reply via email to