cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Semb Wever (Jira)" <j...@apache.org>
Subject [jira] [Comment Edited] (CASSANDRA-16822) Wrong cqlsh python library location in cassandra-3.11.11-1 rhel packages
Date Tue, 03 Aug 2021 17:25:00 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-16822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17391591#comment-17391591
] 

Michael Semb Wever edited comment on CASSANDRA-16822 at 8/3/21, 5:24 PM:
-------------------------------------------------------------------------

Patches
- [2.2|https://github.com/apache/cassandra/compare/cassandra-2.2...thelastpickle:mck/16822/2.2]
[!https://ci-cassandra.apache.org/job/Cassandra-devbranch/991/badge/icon!|https://ci-cassandra.apache.org/job/Cassandra-devbranch/991/]
- [3.0|https://github.com/apache/cassandra/compare/cassandra-3.0...thelastpickle:mck/16822/3.0]
[!https://ci-cassandra.apache.org/job/Cassandra-devbranch/985/badge/icon!|https://ci-cassandra.apache.org/job/Cassandra-devbranch/985/]
- [3.11|https://github.com/apache/cassandra/compare/cassandra-3.11...thelastpickle:mck/16822/3.11]
[!https://ci-cassandra.apache.org/job/Cassandra-devbranch/986/badge/icon!|https://ci-cassandra.apache.org/job/Cassandra-devbranch/986/]

I am not sure if this is the way we want to go though. That is, building on python3, and installing
that cqlshlib into site-packages for both python2 and python3. (This approach leaves arm64
as-is, and keeps the door open for cqlsh working on python3.)

RPMs built with these patches, for testing, can be found in https://nightlies.apache.org/cassandra/devbranch/misc/CASSANDRA-16822/



was (Author: michaelsembwever):
Patches
- [2.2|https://github.com/apache/cassandra/compare/cassandra-2.2...thelastpickle:mck/16822/2.2]
[!https://ci-cassandra.apache.org/job/Cassandra-devbranch/984/badge/icon!|https://ci-cassandra.apache.org/job/Cassandra-devbranch/984/]
- [3.0|https://github.com/apache/cassandra/compare/cassandra-3.0...thelastpickle:mck/16822/3.0]
[!https://ci-cassandra.apache.org/job/Cassandra-devbranch/985/badge/icon!|https://ci-cassandra.apache.org/job/Cassandra-devbranch/985/]
- [3.11|https://github.com/apache/cassandra/compare/cassandra-3.11...thelastpickle:mck/16822/3.11]
[!https://ci-cassandra.apache.org/job/Cassandra-devbranch/986/badge/icon!|https://ci-cassandra.apache.org/job/Cassandra-devbranch/986/]

I am not sure if this is the way we want to go though. That is, building on python3, and installing
that cqlshlib into site-packages for both python2 and python3. (This approach leaves arm64
as-is, and keeps the door open for cqlsh working on python3.)

RPMs built with these patches, for testing, can be found in https://nightlies.apache.org/cassandra/devbranch/misc/CASSANDRA-16822/


> Wrong cqlsh python library location in cassandra-3.11.11-1 rhel packages 
> -------------------------------------------------------------------------
>
>                 Key: CASSANDRA-16822
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16822
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Ville Savolainen
>            Assignee: Brandon Williams
>            Priority: Normal
>             Fix For: 2.2.x, 3.0.x, 3.11.x
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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
> {noformat}
> $ 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
> {noformat}
>  
> Pull request to cassandra-3.11: https://github.com/apache/cassandra/pull/1124



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message