You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jon Meredith (Jira)" <ji...@apache.org> on 2021/03/24 17:50:00 UTC

[jira] [Updated] (CASSANDRA-16534) bin/cqlsh writes unwanted output to stderr while validating python version if python 2.6 is installed as system python

     [ https://issues.apache.org/jira/browse/CASSANDRA-16534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jon Meredith updated CASSANDRA-16534:
-------------------------------------
    Change Category: Operability
         Complexity: Low Hanging Fruit
      Fix Version/s: 4.0-rc
             Status: Open  (was: Triage Needed)

>  bin/cqlsh writes unwanted output to stderr while validating python version if python 2.6 is installed as system python
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-16534
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16534
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tool/cqlsh
>            Reporter: Jon Meredith
>            Assignee: Jon Meredith
>            Priority: Normal
>             Fix For: 4.0-rc
>
>
> The cqlsh.py script requires Python >= 2.7 on Cassandra 4.0 and checks to make sure it’s a supported version, looking for alternate python versions if the default is 2.6.  Unfortunately the check writes output to stderr that may confuse some users/tools consuming it.
> {code}
> python -c 'import os; print('\''{}.{}'\''.format(os.sys.version_info.major, os.sys.version_info.minor))'
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> AttributeError: 'tuple' object has no attribute 'major'
> {code}
> The output adds no value and can be suppressed  by redirecting to /dev/null



--
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