Skip to content

SQLite Linker - OperationalError: no such function: levenshtein #1316

Closed Answered by RobinL
zhyzhkea asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry - this isn't well documented, but sqlite doesn't include the levenstein function so you have to register it:

from rapidfuzz.distance.Levenshtein import distance
conn = sqlite3.connect(":memory:")
conn.create_function("levenshtein", 2, distance)

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@zhyzhkea
Comment options

@ADBond
Comment options

@ADBond
Comment options

@RobinL
Comment options

Answer selected by RobinL
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants