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

Brad Schoening commented on CASSANDRA-19603:
--------------------------------------------

[~absurdfarce] thanks for the detail here! It looked like there might be a 
workaround with Python 12 by using an environment variable in __init__.py? 

> Upgrade deprecated asyncore to asyncio
> --------------------------------------
>
>                 Key: CASSANDRA-19603
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-19603
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: CQL/Interpreter
>            Reporter: Brad Schoening
>            Priority: Normal
>
> The asyncore module is deprecated and has been removed in Python 3.12. To 
> support 3.12, we need to upgrade to use asyncio.
> DEBUG    test_cqlsh:run_cqlsh.py:194 read '    from cqlshlib.cqlshmain import 
> main\r\n  File "pylib/cqlshlib/cqlshmain.py", line 37, in <module>\r\n    
> from cassandra.cluster import Cluster\r\n  File 
> "lib/cassandra-driver-internal-only-3.29.0.zip/cassandra-driver-3.29.0/cassandra/cluster.py",
>  line 173, in <module>\r\ncassandra.DependencyException: Unable to load a 
> default connection class\r\nThe following exceptions were observed: \r\n - 
> The C extension needed to use libev was not found.  This probably means that 
> you didn\'t have the required build dependencies when installing the driver.  
> See [http://datastax.github.io/python-driver/installation.html#c-extensions] 
> for instructions on installing build dependencies and building the C 
> extension.\r\n - Unable to import asyncore module.  Note that this module has 
> been removed in Python 3.12 so when using the driver with this version (or 
> anything newer) you will need to use one of the other event loop 
> implementations.\r\n' from subproc



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to