[
https://issues.apache.org/jira/browse/CASSANDRA-2501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Ellis updated CASSANDRA-2501:
--------------------------------------
Attachment: 2501.txt
i think the SDE error is masking another problem -- try with this patch ("ant
release" to build the same artifacts hudson does) and see if that exposes
something else.
> Error running cqlsh from .tar file -- global name
> 'SchemaDisagreementException' is not defined
> ----------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-2501
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2501
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 0.8
> Environment: Running on 3-node Centos 5.5. The cql package was
> installed with Python 2.6 and prior to installation, I downloaded and
> installed thrift05-0.5.0.
> Reporter: Cathy Daw
> Assignee: Jonathan Ellis
> Attachments: 2501.txt
>
>
> *Error when running cqlsh*
> {code}
> [cassandra@cdaw-qa1 cql-1.0.0]$ cqlsh cdaw-qa1
> Traceback (most recent call last):
> File "/usr/bin/cqlsh", line 212, in <module>
> password=options.password)
> File "/usr/bin/cqlsh", line 55, in __init__
> self.conn = cql.connect(hostname, port, user=username, password=password)
> File "/usr/lib/python2.6/site-packages/cql/__init__.py", line 51, in connect
> return connection.Connection(host, port, keyspace, user, password)
> File "/usr/lib/python2.6/site-packages/cql/connection.py", line 53, in
> __init__
> c.execute('USE %s;' % keyspace)
> File "/usr/lib/python2.6/site-packages/cql/cursor.py", line 126, in execute
> except SchemaDisagreementException, sde:
> NameError: global name 'SchemaDisagreementException' is not defined
> {code}
> *Build*
> * Install the cassandra binary from the nightly build
> wget
> https://builds.apache.org/hudson/job/Cassandra/lastSuccessfulBuild/artifact/cassandra/build/apache-cassandra-2011-04-18_11-02-29-bin.tar.gz
> * Install cql from .tar file on nightly build
> wget
> https://builds.apache.org/hudson/job/Cassandra/lastSuccessfulBuild/artifact/cassandra/build/cql-1.0.0.tar.gz
> *CQL Install Output*
> {code}
> [cassandra@cdaw-qa1 cql-1.0.0]$ sudo python2.6 ./setup.py install
> [sudo] password for cassandra:
> running install
> running build
> running build_py
> running build_scripts
> creating build/scripts-2.6
> copying and adjusting cqlsh -> build/scripts-2.6
> changing mode of build/scripts-2.6/cqlsh from 644 to 755
> running install_lib
> creating /usr/lib/python2.6/site-packages/cql
> copying build/lib/cql/results.py -> /usr/lib/python2.6/site-packages/cql
> copying build/lib/cql/marshal.py -> /usr/lib/python2.6/site-packages/cql
> copying build/lib/cql/connection.py -> /usr/lib/python2.6/site-packages/cql
> copying build/lib/cql/cursor.py -> /usr/lib/python2.6/site-packages/cql
> creating /usr/lib/python2.6/site-packages/cql/cassandra
> copying build/lib/cql/cassandra/__init__.py ->
> /usr/lib/python2.6/site-packages/cql/cassandra
> copying build/lib/cql/cassandra/Cassandra.py ->
> /usr/lib/python2.6/site-packages/cql/cassandra
> copying build/lib/cql/cassandra/constants.py ->
> /usr/lib/python2.6/site-packages/cql/cassandra
> copying build/lib/cql/cassandra/ttypes.py ->
> /usr/lib/python2.6/site-packages/cql/cassandra
> copying build/lib/cql/decoders.py -> /usr/lib/python2.6/site-packages/cql
> copying build/lib/cql/__init__.py -> /usr/lib/python2.6/site-packages/cql
> copying build/lib/cql/errors.py -> /usr/lib/python2.6/site-packages/cql
> copying build/lib/cql/connection_pool.py ->
> /usr/lib/python2.6/site-packages/cql
> byte-compiling /usr/lib/python2.6/site-packages/cql/results.py to results.pyc
> byte-compiling /usr/lib/python2.6/site-packages/cql/marshal.py to marshal.pyc
> byte-compiling /usr/lib/python2.6/site-packages/cql/connection.py to
> connection.pyc
> byte-compiling /usr/lib/python2.6/site-packages/cql/cursor.py to cursor.pyc
> byte-compiling /usr/lib/python2.6/site-packages/cql/cassandra/__init__.py to
> __init__.pyc
> byte-compiling /usr/lib/python2.6/site-packages/cql/cassandra/Cassandra.py to
> Cassandra.pyc
> byte-compiling /usr/lib/python2.6/site-packages/cql/cassandra/constants.py to
> constants.pyc
> byte-compiling /usr/lib/python2.6/site-packages/cql/cassandra/ttypes.py to
> ttypes.pyc
> byte-compiling /usr/lib/python2.6/site-packages/cql/decoders.py to
> decoders.pyc
> byte-compiling /usr/lib/python2.6/site-packages/cql/__init__.py to
> __init__.pyc
> byte-compiling /usr/lib/python2.6/site-packages/cql/errors.py to errors.pyc
> byte-compiling /usr/lib/python2.6/site-packages/cql/connection_pool.py to
> connection_pool.pyc
> running install_scripts
> copying build/scripts-2.6/cqlsh -> /usr/bin
> changing mode of /usr/bin/cqlsh to 755
> running install_egg_info
> Writing /usr/lib/python2.6/site-packages/cql-1.0.0-py2.6.egg-info
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira