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

cannot use cql since upgrading python to 2.7.11+

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 2.1.16, 2.2.8, 3.0.9, 3.8
    • Component/s: Tools
    • Labels:
    • Environment:

      Development

      Description

      OS: Debian GNU/Linux stretch/sid
      Kernel: 4.5.0-2-amd64 #1 SMP Debian 4.5.4-1 (2016-05-16) x86_64 GNU/Linux
      Python version: 2.7.11+ (default, May 9 2016, 15:54:33)
      [GCC 5.3.1 20160429]

      cqlsh --version: cqlsh 5.0.1
      cassandra -v: 3.5 (also occurs with 3.0.6)

      Issue:
      when running cqlsh, it returns the following error:

      cqlsh -u dbarpt_usr01
      Password: *****

      Connection error: ('Unable to connect to any servers',

      {'odbasandbox1': TypeError('ref() does not take keyword arguments',)}

      )

      I cleared PYTHONPATH:

      python -c "import json; print dir(json); print json._version_"
      ['JSONDecoder', 'JSONEncoder', '__all__', '__author__', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', '__version__', '_default_decoder', '_default_encoder', 'decoder', 'dump', 'dumps', 'encoder', 'load', 'loads', 'scanner']
      2.0.9

      Java based clients can connect to Cassandra with no issue. Just CQLSH and Python clients cannot.

      nodetool status also works.

      Thank you for your help.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Stefania Stefania
                Reporter:
                uskratos Andrew Madison
                Reviewer:
                Paulo Motta
              • Votes:
                2 Vote for this issue
                Watchers:
                20 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: