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

Brandon Williams commented on CASSANDRA-17417:
----------------------------------------------

Adding it to requirements.txt and building didn't work for me either on a focal 
machine with six removed from the system, but present in the lib dir from ant:

{noformat}
drift@finf:~/cassandra$ bin/cqlsh
Traceback (most recent call last):
  File "/home/drift/cassandra/bin/cqlsh.py", line 126, in <module>
    from cassandra.auth import PlainTextAuthProvider
  File "<frozen zipimport>", line 259, in load_module
  File 
"/home/drift/cassandra/bin/../lib/cassandra-driver-internal-only-3.25.0.zip/cassandra-driver-3.25.0/cassandra/auth.py",
 line 35, in <module>
ModuleNotFoundError: No module named 'six'
drift@finf:~/cassandra$ git diff
diff --git a/pylib/requirements.txt b/pylib/requirements.txt
index 4d66ef2a3f..5af9818418 100644
--- a/pylib/requirements.txt
+++ b/pylib/requirements.txt
@@ -4,3 +4,4 @@
 coverage
 parse
 pytest
+six
drift@finf:~/cassandra$ ls lib/six-1.12.0-py2.py3-none-any.zip 
lib/six-1.12.0-py2.py3-none-any.zip
drift@finf:~/cassandra$
{noformat}

> Replace use of 'six' compatibility library with python 3 equivalents
> --------------------------------------------------------------------
>
>                 Key: CASSANDRA-17417
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17417
>             Project: Cassandra
>          Issue Type: Task
>          Components: CQL/Interpreter
>            Reporter: Brad Schoening
>            Assignee: Brad Schoening
>            Priority: Normal
>             Fix For: 4.x
>
>         Attachments: six.pdf
>
>          Time Spent: 5h 50m
>  Remaining Estimate: 0h
>
> _Six_ is a _Python_ 2 and 3 compatibility library.  It provides simple 
> utilities for wrapping the differences between Python 2 and Python 3. It is 
> intended to support codebases that work on both Python 2 and 3.
> Since CQLSH requires python version >= 3.6, its use can be replaced with 
> native python 3 constructs.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to