[ 
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-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to