-
Notifications
You must be signed in to change notification settings - Fork 26
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 via PyPi does not work with Python 3.9 #25
Comments
@MartinNiederl thanks for bringing this up. Right now we only support up to 3.6, but if you can you open a PR for the changes required to get the tests passing on 3.9, we can review to merge and add 3.9 to the CI checks. |
Using Python 3.9.6, I encounter the same error as Martin when running: pip install weighted-levenshtein However, without any need to modify anything, I can install the package, then run all the tests perfectly fine with: git clone https://github.com/infoscout/weighted-levenshtein.git
cd weighted-levenshtein
pip install . followed by: pip install -r requirements.txt
pip install coveralls
coverage run setup.py test which returns:
I think you should be able to support version 3.9 on PyPI without any change, other than building the wheels with CircleCI. |
Hi, is there any news on this? As @woctezuma, I didn't have any issues using |
For reference, you might want to have a look at https://github.com/maxbachmann/RapidFuzz Maybe this library does not support weights, I don't know. |
rapidfuzz does not support OSA and Damerau Levenshtein yet, but support is in works.
Right now I only support fixed weights (e.g. giving all substitutions a weight of 2), but character dependent weights are planned: rapidfuzz/RapidFuzz#241 |
I try to install weighted-weighted-levenshtein on python 3.9 and get. errors below.
|
I think the reason this fails when installing from pypi, but not when installing from the repo, is because the sdist in pypi includes the generated |
Thanks for merging #31 @JimReed! Do you think you'd be able to cut a new release and upload to pypi? At the least, something like this should handle the pypi side: pip3 install twine
python3 setup.py sdist
twine upload dist/weighted_levenshtein-0.2.2.tar.gz # Will need PyPI credentials valid for the package |
Hi, I'm also interested in seeing a new PyPi release that works on 3.9+ - this dependency is the only blocker for updating one of my projects. Is this in the works? |
When trying to install via
pip install weighted-levenshtein
using Python 3.9 the following error occurs multiple times:As I read in this StackOverflow answer,
tp_print
was removed in Python 3.9. (some more details: here)I am absolutely not familiar with Cython because I have never used it before, however I was able to fix the problem by cloning the project, installing a more recent version of Cython (0.29.24) and simply installed weighted-levenshtein locally with
pip install .
.So maybe it is enough to increase the version in requirements.txt.
The text was updated successfully, but these errors were encountered: