Closed 15789102 closed 3 years ago
My version is 3.7.3. and I get an error message when I try to install..And i
`Collecting py_stringmatching Using cached https://files.pythonhosted.org/packages/e8/11/a7d8568eaac88e167fedd857640fe04e8950511e5fbe0700a42e12900a48/py_stringmatching-0.4.0.tar.gz Requirement already satisfied: numpy>=1.7.0 in /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages (from py_stringmatching) (1.15.3) Requirement already satisfied: six in /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages (from py_stringmatching) (1.11.0) Building wheels for collected packages: py-stringmatching Running setup.py bdist_wheel for py-stringmatching: started Running setup.py bdist_wheel for py-stringmatching: finished with status 'error' Complete output from command /home/suzil/anaconda3/envs/py3.7/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-r8vqgfyt/py-stringmatching/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/pip-wheel-yg45dyr0 --python-tag cp37: running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/py_stringmatching copying py_stringmatching/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching copying py_stringmatching/utils.py -> build/lib.linux-x86_64-3.7/py_stringmatching creating build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/jaro.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/bag_distance.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/monge_elkan.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/partial_ratio.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/token_similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/partial_token_sort.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/smith_waterman.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/jaccard.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/levenshtein.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/tversky_index.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/dice.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/generalized_jaccard.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/tfidf.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/needleman_wunsch.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/overlap_coefficient.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/ratio.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/hybrid_similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/editex.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/token_sort.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/hamming_distance.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/phonetic_similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/soft_tfidf.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/sequence_similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/soundex.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/affine.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/cosine.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/jaro_winkler.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure creating build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/whitespace_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/delimiter_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/alphanumeric_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/alphabetic_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/qgram_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/definition_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer creating build/lib.linux-x86_64-3.7/py_stringmatching/tests copying py_stringmatching/tests/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tests copying py_stringmatching/tests/test_sim_Soundex.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tests copying py_stringmatching/tests/test_simfunctions.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tests copying py_stringmatching/tests/test_tokenizers.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tests creating build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython running egg_info writing py_stringmatching.egg-info/PKG-INFO writing dependency_links to py_stringmatching.egg-info/dependency_links.txt writing requirements to py_stringmatching.egg-info/requires.txt writing top-level names to py_stringmatching.egg-info/top_level.txt reading manifest file 'py_stringmatching.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'py_stringmatching.egg-info/SOURCES.txt' copying py_stringmatching/similarity_measure/cython/cython_affine.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_jaro.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_jaro_winkler.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_levenshtein.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_needleman_wunsch.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_smith_waterman.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_utils.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython running build_ext building 'py_stringmatching.similarity_measure.cython.cython_levenshtein' extension creating build/temp.linux-x86_64-3.7 creating build/temp.linux-x86_64-3.7/py_stringmatching creating build/temp.linux-x86_64-3.7/py_stringmatching/similarity_measure creating build/temp.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -m64 -fPIC -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -m64 -fPIC -fPIC -I/home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include -I/home/suzil/anaconda3/envs/py3.7/include/python3.7m -c py_stringmatching/similarity_measure/cython/cython_levenshtein.c -o build/temp.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython/cython_levenshtein.o In file included from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821:0, from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from py_stringmatching/similarity_measure/cython/cython_levenshtein.c:242: /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
warning "Using deprecated NumPy API, disable it by "
^
~~ py_stringmatching/similarity_measure/cython/cython_levenshtein.c: In function ‘Pyx_ExceptionSave’: py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18818:21: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? type = tstate->exc_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18819:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? value = tstate->exc_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18820:19: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? *tb = tstate->exc_traceback; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c: In function ‘Pyx_ExceptionReset’: py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18832:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18833:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18834:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18835:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18836:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18837:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = tb; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c: In function ‘Pyx_GetException’: py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18880:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18881:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18882:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18883:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = local_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18884:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = local_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18885:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = local_tb; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c: In function ‘Pyx_ExceptionSwap’: py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18907:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18908:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18909:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18910:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18911:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18912:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = *tb; ^~~~~ curexc_traceback In file included from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:27:0, from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from py_stringmatching/similarity_measure/cython/cython_levenshtein.c:242: At top level: /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1463:1: warning: ‘_import_array’ defined but not used [-Wunused-function] _import_array(void) ^~~~~ error: command 'gcc' failed with exit status 1Running setup.py clean for py-stringmatching Failed to build py-stringmatching Installing collected packages: py-stringmatching Running setup.py install for py-stringmatching: started Running setup.py install for py-stringmatching: finished with status 'error' Complete output from command /home/suzil/anaconda3/envs/py3.7/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-r8vqgfyt/py-stringmatching/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-d_vgnbcd/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/py_stringmatching copying py_stringmatching/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching copying py_stringmatching/utils.py -> build/lib.linux-x86_64-3.7/py_stringmatching creating build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/jaro.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/bag_distance.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/monge_elkan.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/partial_ratio.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/token_similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/partial_token_sort.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/smith_waterman.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/jaccard.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/levenshtein.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/tversky_index.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/dice.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/generalized_jaccard.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/tfidf.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/needleman_wunsch.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/overlap_coefficient.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/ratio.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/hybrid_similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/editex.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/token_sort.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/hamming_distance.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/phonetic_similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/soft_tfidf.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/sequence_similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/soundex.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/affine.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/cosine.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/jaro_winkler.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure creating build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/whitespace_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/delimiter_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/alphanumeric_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/alphabetic_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/qgram_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/definition_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer creating build/lib.linux-x86_64-3.7/py_stringmatching/tests copying py_stringmatching/tests/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tests copying py_stringmatching/tests/test_sim_Soundex.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tests copying py_stringmatching/tests/test_simfunctions.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tests copying py_stringmatching/tests/test_tokenizers.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tests creating build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython running egg_info writing py_stringmatching.egg-info/PKG-INFO writing dependency_links to py_stringmatching.egg-info/dependency_links.txt writing requirements to py_stringmatching.egg-info/requires.txt writing top-level names to py_stringmatching.egg-info/top_level.txt reading manifest file 'py_stringmatching.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'py_stringmatching.egg-info/SOURCES.txt' copying py_stringmatching/similarity_measure/cython/cython_affine.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_jaro.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_jaro_winkler.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_levenshtein.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_needleman_wunsch.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_smith_waterman.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_utils.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython running build_ext building 'py_stringmatching.similarity_measure.cython.cython_levenshtein' extension creating build/temp.linux-x86_64-3.7 creating build/temp.linux-x86_64-3.7/py_stringmatching creating build/temp.linux-x86_64-3.7/py_stringmatching/similarity_measure creating build/temp.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -m64 -fPIC -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -m64 -fPIC -fPIC -I/home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include -I/home/suzil/anaconda3/envs/py3.7/include/python3.7m -c py_stringmatching/similarity_measure/cython/cython_levenshtein.c -o build/temp.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython/cython_levenshtein.o In file included from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821:0, from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from py_stringmatching/similarity_measure/cython/cython_levenshtein.c:242: /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
warning "Using deprecated NumPy API, disable it by "
^
~~ py_stringmatching/similarity_measure/cython/cython_levenshtein.c: In function ‘Pyx_ExceptionSave’: py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18818:21: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? type = tstate->exc_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18819:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? value = tstate->exc_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18820:19: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? *tb = tstate->exc_traceback; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c: In function ‘Pyx_ExceptionReset’: py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18832:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18833:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18834:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18835:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18836:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18837:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = tb; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c: In function ‘Pyx_GetException’: py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18880:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18881:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18882:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18883:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = local_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18884:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = local_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18885:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = local_tb; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c: In function ‘Pyx_ExceptionSwap’: py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18907:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18908:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18909:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18910:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18911:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18912:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = *tb; ^~~~~ curexc_traceback In file included from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:27:0, from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from py_stringmatching/similarity_measure/cython/cython_levenshtein.c:242: At top level: /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1463:1: warning: ‘_import_array’ defined but not used [-Wunused-function] _import_array(void) ^~~~~ error: command 'gcc' failed with exit status 1`
Hey @15789102! Looks like you already closed this issue, though doing some googling the error message
error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
yields this issue, among others. It looks like the error is caused by trying to build the package from source with an old version of Cython installed; try updating Cython to version >= 0.27.3 if using Python 3.7.
My version is 3.7.3. and I get an error message when I try to install..And i
`Collecting py_stringmatching Using cached https://files.pythonhosted.org/packages/e8/11/a7d8568eaac88e167fedd857640fe04e8950511e5fbe0700a42e12900a48/py_stringmatching-0.4.0.tar.gz Requirement already satisfied: numpy>=1.7.0 in /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages (from py_stringmatching) (1.15.3) Requirement already satisfied: six in /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages (from py_stringmatching) (1.11.0) Building wheels for collected packages: py-stringmatching Running setup.py bdist_wheel for py-stringmatching: started Running setup.py bdist_wheel for py-stringmatching: finished with status 'error' Complete output from command /home/suzil/anaconda3/envs/py3.7/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-r8vqgfyt/py-stringmatching/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/pip-wheel-yg45dyr0 --python-tag cp37: running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/py_stringmatching copying py_stringmatching/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching copying py_stringmatching/utils.py -> build/lib.linux-x86_64-3.7/py_stringmatching creating build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/jaro.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/bag_distance.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/monge_elkan.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/partial_ratio.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/token_similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/partial_token_sort.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/smith_waterman.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/jaccard.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/levenshtein.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/tversky_index.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/dice.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/generalized_jaccard.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/tfidf.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/needleman_wunsch.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/overlap_coefficient.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/ratio.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/hybrid_similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/editex.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/token_sort.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/hamming_distance.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/phonetic_similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/soft_tfidf.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/sequence_similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/soundex.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/affine.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/cosine.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/jaro_winkler.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure creating build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/whitespace_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/delimiter_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/alphanumeric_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/alphabetic_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/qgram_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/definition_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer creating build/lib.linux-x86_64-3.7/py_stringmatching/tests copying py_stringmatching/tests/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tests copying py_stringmatching/tests/test_sim_Soundex.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tests copying py_stringmatching/tests/test_simfunctions.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tests copying py_stringmatching/tests/test_tokenizers.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tests creating build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython running egg_info writing py_stringmatching.egg-info/PKG-INFO writing dependency_links to py_stringmatching.egg-info/dependency_links.txt writing requirements to py_stringmatching.egg-info/requires.txt writing top-level names to py_stringmatching.egg-info/top_level.txt reading manifest file 'py_stringmatching.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'py_stringmatching.egg-info/SOURCES.txt' copying py_stringmatching/similarity_measure/cython/cython_affine.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_jaro.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_jaro_winkler.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_levenshtein.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_needleman_wunsch.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_smith_waterman.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_utils.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython running build_ext building 'py_stringmatching.similarity_measure.cython.cython_levenshtein' extension creating build/temp.linux-x86_64-3.7 creating build/temp.linux-x86_64-3.7/py_stringmatching creating build/temp.linux-x86_64-3.7/py_stringmatching/similarity_measure creating build/temp.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -m64 -fPIC -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -m64 -fPIC -fPIC -I/home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include -I/home/suzil/anaconda3/envs/py3.7/include/python3.7m -c py_stringmatching/similarity_measure/cython/cython_levenshtein.c -o build/temp.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython/cython_levenshtein.o In file included from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821:0, from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from py_stringmatching/similarity_measure/cython/cython_levenshtein.c:242: /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
warning "Using deprecated NumPy API, disable it by "
^
~~ py_stringmatching/similarity_measure/cython/cython_levenshtein.c: In function ‘Pyx_ExceptionSave’: py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18818:21: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? type = tstate->exc_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18819:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? value = tstate->exc_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18820:19: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? *tb = tstate->exc_traceback; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c: In function ‘Pyx_ExceptionReset’: py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18832:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18833:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18834:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18835:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18836:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18837:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = tb; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c: In function ‘Pyx_GetException’: py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18880:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18881:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18882:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18883:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = local_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18884:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = local_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18885:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = local_tb; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c: In function ‘Pyx_ExceptionSwap’: py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18907:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18908:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18909:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18910:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18911:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18912:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = *tb; ^~~~~ curexc_traceback In file included from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:27:0, from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from py_stringmatching/similarity_measure/cython/cython_levenshtein.c:242: At top level: /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1463:1: warning: ‘_import_array’ defined but not used [-Wunused-function] _import_array(void) ^~~~~ error: command 'gcc' failed with exit status 1Running setup.py clean for py-stringmatching Failed to build py-stringmatching Installing collected packages: py-stringmatching Running setup.py install for py-stringmatching: started Running setup.py install for py-stringmatching: finished with status 'error' Complete output from command /home/suzil/anaconda3/envs/py3.7/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-r8vqgfyt/py-stringmatching/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-d_vgnbcd/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/py_stringmatching copying py_stringmatching/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching copying py_stringmatching/utils.py -> build/lib.linux-x86_64-3.7/py_stringmatching creating build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/jaro.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/bag_distance.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/monge_elkan.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/partial_ratio.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/token_similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/partial_token_sort.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/smith_waterman.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/jaccard.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/levenshtein.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/tversky_index.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/dice.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/generalized_jaccard.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/tfidf.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/needleman_wunsch.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/overlap_coefficient.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/ratio.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/hybrid_similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/editex.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/token_sort.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/hamming_distance.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/phonetic_similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/soft_tfidf.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/sequence_similarity_measure.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/soundex.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/affine.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/cosine.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure copying py_stringmatching/similarity_measure/jaro_winkler.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure creating build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/whitespace_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/delimiter_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/alphanumeric_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/alphabetic_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/qgram_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer copying py_stringmatching/tokenizer/definition_tokenizer.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tokenizer creating build/lib.linux-x86_64-3.7/py_stringmatching/tests copying py_stringmatching/tests/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tests copying py_stringmatching/tests/test_sim_Soundex.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tests copying py_stringmatching/tests/test_simfunctions.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tests copying py_stringmatching/tests/test_tokenizers.py -> build/lib.linux-x86_64-3.7/py_stringmatching/tests creating build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/init.py -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython running egg_info writing py_stringmatching.egg-info/PKG-INFO writing dependency_links to py_stringmatching.egg-info/dependency_links.txt writing requirements to py_stringmatching.egg-info/requires.txt writing top-level names to py_stringmatching.egg-info/top_level.txt reading manifest file 'py_stringmatching.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'py_stringmatching.egg-info/SOURCES.txt' copying py_stringmatching/similarity_measure/cython/cython_affine.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_jaro.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_jaro_winkler.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_levenshtein.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_needleman_wunsch.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_smith_waterman.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython copying py_stringmatching/similarity_measure/cython/cython_utils.c -> build/lib.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython running build_ext building 'py_stringmatching.similarity_measure.cython.cython_levenshtein' extension creating build/temp.linux-x86_64-3.7 creating build/temp.linux-x86_64-3.7/py_stringmatching creating build/temp.linux-x86_64-3.7/py_stringmatching/similarity_measure creating build/temp.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -m64 -fPIC -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -m64 -fPIC -fPIC -I/home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include -I/home/suzil/anaconda3/envs/py3.7/include/python3.7m -c py_stringmatching/similarity_measure/cython/cython_levenshtein.c -o build/temp.linux-x86_64-3.7/py_stringmatching/similarity_measure/cython/cython_levenshtein.o In file included from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821:0, from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from py_stringmatching/similarity_measure/cython/cython_levenshtein.c:242: /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
warning "Using deprecated NumPy API, disable it by "
^
~~ py_stringmatching/similarity_measure/cython/cython_levenshtein.c: In function ‘Pyx_ExceptionSave’: py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18818:21: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? type = tstate->exc_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18819:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? value = tstate->exc_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18820:19: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? *tb = tstate->exc_traceback; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c: In function ‘Pyx_ExceptionReset’: py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18832:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18833:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18834:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18835:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18836:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18837:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = tb; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c: In function ‘Pyx_GetException’: py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18880:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18881:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18882:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18883:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = local_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18884:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = local_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18885:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = local_tb; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c: In function ‘Pyx_ExceptionSwap’: py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18907:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18908:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18909:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~ curexc_traceback py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18910:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = type; ^~~~ curexc_type py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18911:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = value; ^~~~~ curexc_value py_stringmatching/similarity_measure/cython/cython_levenshtein.c:18912:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = *tb; ^~~~~ curexc_traceback In file included from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:27:0, from /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from py_stringmatching/similarity_measure/cython/cython_levenshtein.c:242: At top level: /home/suzil/anaconda3/envs/py3.7/lib/python3.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1463:1: warning: ‘_import_array’ defined but not used [-Wunused-function] _import_array(void) ^~~~~ error: command 'gcc' failed with exit status 1`