Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-2501

Error running cqlsh from .tar file -- global name 'SchemaDisagreementException' is not defined

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 0.8 beta 1
    • Component/s: None
    • Labels:
    • 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.

    • Severity:
      Normal

      Description

      Error when running cqlsh

      [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
      

      Build

      CQL Install Output

      [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
      
      

        Attachments

        1. 2501.txt
          0.6 kB
          Jonathan Ellis

          Activity

            People

            • Assignee:
              jbellis Jonathan Ellis
              Reporter:
              cdaw Cathy Daw
              Authors:
              Jonathan Ellis
              Reviewers:
              Cathy Daw
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: