Skip to content

Import-time crash on Python 3.12 due to cassandra-driver (asyncore removal) #288

@dipeshbabu

Description

@dipeshbabu

from datasketch.lsh import MinHashLSH
File "datasketch\lsh.py", line 11, in
from datasketch.storage import _random_name, ordered_storage, unordered_storage
File "datasketch\storage.py", line 19, in
from cassandra import cluster as c_cluster
cassandra.DependencyException: Unable to load a default connection class
The following exceptions were observed:

  • 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.
  • (libev C extension message may also appear)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions