In [1]: import py_stringmatching as sm
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[1], line 1
----> 1 import py_stringmatching as sm
File ~/.local/share/conda/envs/blocking/lib/python3.10/site-packages/py_stringmatching/__init__.py:21
19 from py_stringmatching.similarity_measure.jaro import Jaro
20 from py_stringmatching.similarity_measure.jaro_winkler import JaroWinkler
---> 21 from py_stringmatching.similarity_measure.levenshtein import Levenshtein
22 from py_stringmatching.similarity_measure.monge_elkan import MongeElkan
23 from py_stringmatching.similarity_measure.needleman_wunsch import NeedlemanWunsch
File ~/.local/share/conda/envs/blocking/lib/python3.10/site-packages/py_stringmatching/similarity_measure/levenshtein.py:4
1 from __future__ import division
3 from py_stringmatching import utils
----> 4 from py_stringmatching.similarity_measure.cython.cython_levenshtein import levenshtein
5 from py_stringmatching.similarity_measure.sequence_similarity_measure import \
6 SequenceSimilarityMeasure
9 class Levenshtein(SequenceSimilarityMeasure):
File py_stringmatching/similarity_measure/cython/cython_levenshtein.pyx:11, in init py_stringmatching.similarity_measure.cython.cython_levenshtein()
File ~/.local/share/conda/envs/blocking/lib/python3.10/site-packages/numpy/__init__.py:284, in __getattr__(attr)
281 from .testing import Tester
282 return Tester
--> 284 raise AttributeError("module {!r} has no attribute "
285 "{!r}".format(__name__, attr))
AttributeError: module 'numpy' has no attribute 'int'
related blog about this.