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

Wrong cqlsh python library location in cassandra-3.11.11-1 rhel packages

    XMLWordPrintableJSON

Details

    Description

      cqlsh does not work because cqlshlib is in wrong location while I think it should be in python2.7 for cassandra-3.11

      cassandra.spec seems to define python interpreter to /usr/bin/python so I think build environment has been changed after 3.11.10 so /usr/bin/python points to python3 instead of python2.

      cassandra-3.11.10 did have chqlshlib in python2.7 site-packages

      $ rpm -qpl cassandra-3.11.11-1.noarch.rpm |grep cql
      warning: cassandra-3.11.11-1.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 0b84c041: NOKEY
      /etc/cassandra/default.conf/cqlshrc.sample
      /usr/bin/cqlsh
      /usr/bin/cqlsh.py
      /usr/bin/debug-cql
      /usr/lib/python3.6/site-packages/cqlshlib
      /usr/lib/python3.6/site-packages/cqlshlib/__init__.py
      /usr/lib/python3.6/site-packages/cqlshlib/copyutil.py
      /usr/lib/python3.6/site-packages/cqlshlib/cql3handling.py
      /usr/lib/python3.6/site-packages/cqlshlib/cqlhandling.py
      /usr/lib/python3.6/site-packages/cqlshlib/cqlshhandling.py
      /usr/lib/python3.6/site-packages/cqlshlib/displaying.py
      /usr/lib/python3.6/site-packages/cqlshlib/formatting.py
      /usr/lib/python3.6/site-packages/cqlshlib/helptopics.py
      /usr/lib/python3.6/site-packages/cqlshlib/pylexotron.py
      /usr/lib/python3.6/site-packages/cqlshlib/saferscanner.py
      /usr/lib/python3.6/site-packages/cqlshlib/sslhandling.py
      /usr/lib/python3.6/site-packages/cqlshlib/tracing.py
      /usr/lib/python3.6/site-packages/cqlshlib/util.py
      /usr/lib/python3.6/site-packages/cqlshlib/wcwidth.py
      

       

      Pull request to cassandra-3.11: https://github.com/apache/cassandra/pull/1124

      Attachments

        Issue Links

          Activity

            People

              brandon.williams Brandon Williams
              villesox Ville Savolainen
              Brandon Williams
              Brandon Williams
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h