taleinat / fuzzysearch

Find parts of long text or data, allowing for some changes/typos.
MIT License
301 stars 26 forks source link

trying to pip install fuzzysearch, and it installed succeed, but cant find the name find_near_matches #12

Closed jarodtang closed 6 years ago

jarodtang commented 6 years ago

Hi ,

I'm trying to pip install fuzzysearch, and it installed succeed, but cant find the name find_near_matches, is it changed or else?

Thanks, Jarod


$ sudo pip install fuzzysearch

Requirement already satisfied: fuzzysearch in /Library/Python/2.7/site-packages
Requirement already satisfied: six in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from fuzzysearch)

>>> from fuzzysearch import find_near_matches
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "fuzzysearch.py", line 4, in <module>
    from fuzzysearch import find_near_matches, Match
ImportError: cannot import name find_near_matches
>>> 
taleinat commented 6 years ago

Seems like this was a user error: fuzzysearch.py doen't exist in this library, so it must have been a file created by @jarodtang, which was being imported instead of the intended fuzzysearch package.