[
https://issues.apache.org/jira/browse/CASSANDRA-19206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17803349#comment-17803349
]
Bret McGuire commented on CASSANDRA-19206:
------------------------------------------
In ASF Slack the user indicated that they were able to get past the six issue
by updating six (although a huge +1 to [~bschoeni] 's suggestion above to
upgrade the Python driver version used by cqlsh). They then reported the
following errors:
ModuleNotFoundError: No module named
'[cassandra.io|http://cassandra.io/].libevwrapper'
ModuleNotFoundError: No module named 'asyncore'
I mentioned this on ASF Slack but I'll repeat it here for discoverability.
Python 3.12 completely removed asyncore in favor of asyncio; that's why you see
the second error mentioned above. The asyncore reactor is also the default
reactor for the Python driver so if you're using Python 3.12 you must specify
one of the alternate reactors for your app, and due to some other changes in
Python 3.12 this winds up leading to more verbose errors like the ones cited
above. These were largely addressed in
[PYTHON-1366|https://datastax-oss.atlassian.net/browse/PYTHON-1366] so the new
Python driver should behave better here. You will still need to provide an
alternate reactor, however.
> ./bin/cqlsh breaks with an python version 3.12.1
> ------------------------------------------------
>
> Key: CASSANDRA-19206
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19206
> Project: Cassandra
> Issue Type: Bug
> Reporter: Gautam G
> Priority: Normal
> Attachments: image-2023-12-18-01-38-47-424.png,
> image-2023-12-18-01-39-33-839.png, image-2023-12-18-01-40-38-974.png
>
>
> Inside cassandra directory, on running ./bin/cqlsh gives ModuleNotFoundError
> when run using python 3.12.1.
> ./bin/cqlsh works well for python versions like 3.9.18.
>
> The below image shows the error that occured while using python 3.12.1
> !image-2023-12-18-01-39-33-839.png!
>
> The below image shows how it should normally work, it was ran on python 3.9.18
> !image-2023-12-18-01-40-38-974.png!
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]