You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Patrick Bannister (JIRA)" <ji...@apache.org> on 2019/05/05 03:11:00 UTC

[jira] [Commented] (CASSANDRA-10190) Python 3 support for cqlsh

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

Patrick Bannister commented on CASSANDRA-10190:
-----------------------------------------------

In the cqlshlib tests, in test_cqlsh_output.py, test_user_types_output is failing on Python 3. This is because of an unhandled exception in the cassandra Python driver. This is happening because of the Python 3 behavior of throwing an exception when a str type object is compared to a NoneType object (which was not a problem in Python 2). The test data includes a user defined type that is populated with some null fields, and when the Cassandra driver tries to output this data, it does some comparison, and this causes an exception, which it does not handle.

We will need to accept this as a known failure until we can address the behavior in the driver.

> Python 3 support for cqlsh
> --------------------------
>
>                 Key: CASSANDRA-10190
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10190
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Legacy/Tools
>            Reporter: Andrew Pennebaker
>            Assignee: Patrick Bannister
>            Priority: Normal
>              Labels: cqlsh
>         Attachments: coverage_notes.txt
>
>
> Users who operate in a Python 3 environment may have trouble launching cqlsh. Could we please update cqlsh's syntax to run in Python 3?
> As a workaround, users can setup pyenv, and cd to a directory with a .python-version containing "2.7". But it would be nice if cqlsh supported modern Python versions out of the box.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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