-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: end_index must be non-negative (again) #32
Comments
Thanks for the kind words, I'm happy you're finding it useful! It would be great to hear what you're using it for. |
@jtlz2, which platform are you running this on? Windows / Linux / macOS, which exact version, 32 or 64 bit? |
@jtlz2, could you try running the same code, with bytes objects rather than strings? I.e.: fuzzysearch.find_near_matches(b'ABC 0123456', b'ABC', max_l_dist=1).next() |
@taleinat Apologies - macOS 10.13.6.. We are trialling it for OCR post-processing. The error comes out the same when using bytes as you suggest (ValueError at L71). Thanks again! |
@jtlz2, I've started working on this. It seems like a problem with the native (C) extensions. In the meantime, you may install fuzzysearch without the native extensions by fetching a source archive, unpacking it running |
@jtlz2, I've fixed what appears to be the source of this issue. The fix is available in version 0.7.3 which I've just released. Please let me know if it resolves this issue for you! |
@taleinat Still get the same problem in 0.7.3 :\ |
This seems to be related to the Anaconda distribution somehow, as it only appears to happen with it, but not with Python from python.org or built from the main git repo. I'll have to investigate further when I have more time. |
This presents just as in #13. See below to reproduce. Awesome module, thanks!
Version info:
Traceback:
The text was updated successfully, but these errors were encountered: