jamesturk / jellyfish

🪼 a python library for doing approximate and phonetic matching of strings.
https://jamesturk.github.io/jellyfish/
MIT License
2.04k stars 157 forks source link

DeprecationWarning: getargs: The 'u' format is deprecated. Use 'U' instead. #164

Closed juliangilbey closed 2 years ago

juliangilbey commented 2 years ago

The following minimal example gives this warning when run under Python 3.10.6:

import jellyfish
print(jellyfish.damerau_levenshtein_distance("01", "10"))

It doesn't give the warning when jaro_distance is used instead.

NickCrews commented 2 years ago

I believe this was fixed by https://github.com/jamesturk/cjellyfish/pull/12, which was pulled into this repo at https://github.com/jamesturk/jellyfish/commit/0ba387a2b7037bcf4898af75fa3ce27515bd5fc7, and so should be included in releases 0.9.0 and greater? (I might not be interpreting this chain of events correctly)

@juliangilbey do you see this error when running on the latest version?

juliangilbey commented 2 years ago

Ah, oops, I hadn't noticed that the Debian version of jellyfish is behind the upstream version. So I'll close this issue - sorry for the noise.