-
Notifications
You must be signed in to change notification settings - Fork 3
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
installation with install.sh - ModuleNotFoundError: No module named 'rapidfuzz.distance.metrics_py' #24
Comments
Can you try to install rapidfuzz again? |
I checked, the metrics_py.py file is there where it should be, and force reinstalling rapidfuzz with pip didn't change the behaviour |
The problem seems to be from the levenshtein package which is calling
this other package rapidfuzz. However could you try to install importlib
again?
pip install importlib
lets see if this can work.
A
…On 31/5/23 12:10, morien wrote:
I checked, the metrics_py.py file is there where it should be, and
force reinstalling rapidfuzz with pip didn't change the behaviour
—
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASBYEQCXN2B6CYGBA32OMTTXI4KKPANCNFSM6AAAAAAYVBWUI4>.
You are receiving this because you commented.Message ID:
***@***.***>
|
looks like importlib was not installed already, but installing it doesn't change the behaviour |
I'm leaving a report of how I worked around this issue: I ended up moving back to a CentOS machine that I had trouble with before trying on macOS. The error was very similar, and still related to Levenshtein:
I'd installed Levenshtein already in my userspace using pip, and my $PATH only pointed to the install of python in my userspace as well.
To resolve the issue, I had to install the Levenshtein package globally, using the operating system package manager (i.e. I tried to use homebrew on macOS to accomplish the same, but unfortunately, I didn't have any luck. |
Hey guys, Having the same issue here with a Ubuntu 22.04.2.
|
I have tried to fix this using the conda installation, which also keeps crashing, but then I ran:
And the help message came out clean. While if I run:
I get the error message about rapidfuzz.distance.metrics_py. The 2 questions now are:
Cheers, |
Thank you all for the comments and reports. I'm these weeks on vacation and I can't work much on that and this summer will be quite difficult to spend much time on that but by now: It all seems to be a problem with the Levenshtein package, I'll try to make a version of DnoisE with the updated code and I'll try to create a distribution binnary to increase the running performance. However DnoisE.py works exactly the same algorithm the only difference would be a small increaase of running time but I don't think it would be that much. I'll keep you updated on the new updates in this issue. This way i guess github will send you an email! Thanks for your patience. Cheers! |
Dear Adrià,
Many thanks for your reply.
Please enjoy your holidays and don't think about Dnoise haha
I will be happy to discuss it further when you are back.
Best wishes,
Daniel
…________________________________
From: Adrià Antich ***@***.***>
Sent: Monday, June 26, 2023 1:58 PM
To: adriantich/DnoisE ***@***.***>
Cc: Daniel Kumazawa Morais ***@***.***>; Comment ***@***.***>
Subject: Re: [adriantich/DnoisE] installation with install.sh - ModuleNotFoundError: No module named 'rapidfuzz.distance.metrics_py' (Issue #24)
Thank you all for the comments and reports. I'm these weeks on vacation and I can't work much on that and this summer will be quite difficult to spend much time on that but by now:
It all seems to be a problem with the Levenshtein package, I'll try to make a version of DnoisE with the updated code and I'll try to create a distribution binnary to increase the running performance. However DnoisE.py works exactly the same algorithm the only difference would be a small increaase of running time but I don't think it would be that much.
I'll keep you updated on the new updates in this issue. This way i guess github will send you an email!
Thanks for your patience.
Cheers!
Adri
—
Reply to this email directly, view it on GitHub<#24 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A6E22KEBYSX3QCE7V3RJMFTXNF2PXANCNFSM6AAAAAAYVBWUI4>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I also ran into the same issue on MacOS:
But again only for the binary executable. |
I'm having some trouble getting DnoisE running on my macOS machine. I have rapidfuzz installed via pip
And the path for rapidfuzz is in sys.path, so it should be detected. I'm not sure what is wrong here. Any help is appreciated, thanks.
Here's the full error that's displayed when invoking DnoisE after compilation:
The text was updated successfully, but these errors were encountered: