Skip to content
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

Problem with install of python-Levenshtein #1

Closed
AliceAML opened this issue Apr 12, 2022 · 1 comment
Closed

Problem with install of python-Levenshtein #1

AliceAML opened this issue Apr 12, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@AliceAML
Copy link

Right now there's a problem with the installation of python-Levenshtein with can be fixed by installing levenshtein instead (see this issue).

Thank you for making this!

The error message:

Building wheels for collected packages: python-levenshtein
  Building wheel for python-levenshtein (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [31 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-39
      creating build/lib.linux-x86_64-cpython-39/Levenshtein
      copying Levenshtein/StringMatcher.py -> build/lib.linux-x86_64-cpython-39/Levenshtein
      copying Levenshtein/__init__.py -> build/lib.linux-x86_64-cpython-39/Levenshtein
      running egg_info
      writing python_Levenshtein.egg-info/PKG-INFO
      writing dependency_links to python_Levenshtein.egg-info/dependency_links.txt
      deleting python_Levenshtein.egg-info/entry_points.txt
      writing namespace_packages to python_Levenshtein.egg-info/namespace_packages.txt
      writing requirements to python_Levenshtein.egg-info/requires.txt
      writing top-level names to python_Levenshtein.egg-info/top_level.txt
      reading manifest file 'python_Levenshtein.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files matching '*pyc' found anywhere in distribution
      warning: no previously-included files matching '*so' found anywhere in distribution
      warning: no previously-included files matching '.project' found anywhere in distribution
      warning: no previously-included files matching '.pydevproject' found anywhere in distribution
      adding license file 'COPYING'
      writing manifest file 'python_Levenshtein.egg-info/SOURCES.txt'
      copying Levenshtein/_levenshtein.c -> build/lib.linux-x86_64-cpython-39/Levenshtein
      copying Levenshtein/_levenshtein.h -> build/lib.linux-x86_64-cpython-39/Levenshtein
      running build_ext
      building 'Levenshtein._levenshtein' extension
      creating build/temp.linux-x86_64-cpython-39
      creating build/temp.linux-x86_64-cpython-39/Levenshtein
      gcc-5 -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/aliceh/Documents/Seedlang/virtual_tutor/3_gec/ERRANT-fr/errant_env/include -I/home/linuxbrew/.linuxbrew/opt/python@3.9/include/python3.9 -c Levenshtein/_levenshtein.c -o build/temp.linux-x86_64-cpython-39/Levenshtein/_levenshtein.o
      error: command 'gcc-5' failed: No such file or directory
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for python-levenshtein
  Running setup.py clean for python-levenshtein
Failed to build python-levenshtein
Installing collected packages: python-levenshtein, preshed, numpy, idna, charset-normalizer, catalogue, requests, blis, thinc, spacy, errant-fr
  Running setup.py install for python-levenshtein ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for python-levenshtein did not run successfully.
  │ exit code: 1
  ╰─> [32 lines of output]
      running install
      /home/aliceh/Documents/Seedlang/virtual_tutor/3_gec/ERRANT-fr/errant_env/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-39
      creating build/lib.linux-x86_64-cpython-39/Levenshtein
      copying Levenshtein/StringMatcher.py -> build/lib.linux-x86_64-cpython-39/Levenshtein
      copying Levenshtein/__init__.py -> build/lib.linux-x86_64-cpython-39/Levenshtein
      running egg_info
      writing python_Levenshtein.egg-info/PKG-INFO
      writing dependency_links to python_Levenshtein.egg-info/dependency_links.txt
      writing namespace_packages to python_Levenshtein.egg-info/namespace_packages.txt
      writing requirements to python_Levenshtein.egg-info/requires.txt
      writing top-level names to python_Levenshtein.egg-info/top_level.txt
      reading manifest file 'python_Levenshtein.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files matching '*pyc' found anywhere in distribution
      warning: no previously-included files matching '*so' found anywhere in distribution
      warning: no previously-included files matching '.project' found anywhere in distribution
      warning: no previously-included files matching '.pydevproject' found anywhere in distribution
      adding license file 'COPYING'
      writing manifest file 'python_Levenshtein.egg-info/SOURCES.txt'
      copying Levenshtein/_levenshtein.c -> build/lib.linux-x86_64-cpython-39/Levenshtein
      copying Levenshtein/_levenshtein.h -> build/lib.linux-x86_64-cpython-39/Levenshtein
      running build_ext
      building 'Levenshtein._levenshtein' extension
      creating build/temp.linux-x86_64-cpython-39
      creating build/temp.linux-x86_64-cpython-39/Levenshtein
      gcc-5 -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/aliceh/Documents/Seedlang/virtual_tutor/3_gec/ERRANT-fr/errant_env/include -I/home/linuxbrew/.linuxbrew/opt/python@3.9/include/python3.9 -c Levenshtein/_levenshtein.c -o build/temp.linux-x86_64-cpython-39/Levenshtein/_levenshtein.o
      error: command 'gcc-5' failed: No such file or directory
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> python-levenshtein

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
(errant_env) aliceh@pop-os:~/Documents/Seedlang/virtual_tutor/3_gec/ERRANT-fr$ pip install python-Levenshtein
Collecting python-Levenshtein
  Using cached python-Levenshtein-0.12.2.tar.gz (50 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: setuptools in ./errant_env/lib/python3.9/site-packages (from python-Levenshtein) (62.1.0)
Building wheels for collected packages: python-Levenshtein
  Building wheel for python-Levenshtein (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [31 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-39
      creating build/lib.linux-x86_64-cpython-39/Levenshtein
      copying Levenshtein/StringMatcher.py -> build/lib.linux-x86_64-cpython-39/Levenshtein
      copying Levenshtein/__init__.py -> build/lib.linux-x86_64-cpython-39/Levenshtein
      running egg_info
      writing python_Levenshtein.egg-info/PKG-INFO
      writing dependency_links to python_Levenshtein.egg-info/dependency_links.txt
      deleting python_Levenshtein.egg-info/entry_points.txt
      writing namespace_packages to python_Levenshtein.egg-info/namespace_packages.txt
      writing requirements to python_Levenshtein.egg-info/requires.txt
      writing top-level names to python_Levenshtein.egg-info/top_level.txt
      reading manifest file 'python_Levenshtein.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files matching '*pyc' found anywhere in distribution
      warning: no previously-included files matching '*so' found anywhere in distribution
      warning: no previously-included files matching '.project' found anywhere in distribution
      warning: no previously-included files matching '.pydevproject' found anywhere in distribution
      adding license file 'COPYING'
      writing manifest file 'python_Levenshtein.egg-info/SOURCES.txt'
      copying Levenshtein/_levenshtein.c -> build/lib.linux-x86_64-cpython-39/Levenshtein
      copying Levenshtein/_levenshtein.h -> build/lib.linux-x86_64-cpython-39/Levenshtein
      running build_ext
      building 'Levenshtein._levenshtein' extension
      creating build/temp.linux-x86_64-cpython-39
      creating build/temp.linux-x86_64-cpython-39/Levenshtein
      gcc-5 -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/aliceh/Documents/Seedlang/virtual_tutor/3_gec/ERRANT-fr/errant_env/include -I/home/linuxbrew/.linuxbrew/opt/python@3.9/include/python3.9 -c Levenshtein/_levenshtein.c -o build/temp.linux-x86_64-cpython-39/Levenshtein/_levenshtein.o
      error: command 'gcc-5' failed: No such file or directory
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for python-Levenshtein
  Running setup.py clean for python-Levenshtein
Failed to build python-Levenshtein
Installing collected packages: python-Levenshtein
  Running setup.py install for python-Levenshtein ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for python-Levenshtein did not run successfully.
  │ exit code: 1
  ╰─> [32 lines of output]
      running install
      /home/aliceh/Documents/Seedlang/virtual_tutor/3_gec/ERRANT-fr/errant_env/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-39
      creating build/lib.linux-x86_64-cpython-39/Levenshtein
      copying Levenshtein/StringMatcher.py -> build/lib.linux-x86_64-cpython-39/Levenshtein
      copying Levenshtein/__init__.py -> build/lib.linux-x86_64-cpython-39/Levenshtein
      running egg_info
      writing python_Levenshtein.egg-info/PKG-INFO
      writing dependency_links to python_Levenshtein.egg-info/dependency_links.txt
      writing namespace_packages to python_Levenshtein.egg-info/namespace_packages.txt
      writing requirements to python_Levenshtein.egg-info/requires.txt
      writing top-level names to python_Levenshtein.egg-info/top_level.txt
      reading manifest file 'python_Levenshtein.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files matching '*pyc' found anywhere in distribution
      warning: no previously-included files matching '*so' found anywhere in distribution
      warning: no previously-included files matching '.project' found anywhere in distribution
      warning: no previously-included files matching '.pydevproject' found anywhere in distribution
      adding license file 'COPYING'
      writing manifest file 'python_Levenshtein.egg-info/SOURCES.txt'
      copying Levenshtein/_levenshtein.c -> build/lib.linux-x86_64-cpython-39/Levenshtein
      copying Levenshtein/_levenshtein.h -> build/lib.linux-x86_64-cpython-39/Levenshtein
      running build_ext
      building 'Levenshtein._levenshtein' extension
      creating build/temp.linux-x86_64-cpython-39
      creating build/temp.linux-x86_64-cpython-39/Levenshtein
      gcc-5 -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/aliceh/Documents/Seedlang/virtual_tutor/3_gec/ERRANT-fr/errant_env/include -I/home/linuxbrew/.linuxbrew/opt/python@3.9/include/python3.9 -c Levenshtein/_levenshtein.c -o build/temp.linux-x86_64-cpython-39/Levenshtein/_levenshtein.o
      error: command 'gcc-5' failed: No such file or directory
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> python-Levenshtein

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
@Maxwell1447 Maxwell1447 added the bug Something isn't working label Apr 12, 2022
@Maxwell1447
Copy link
Owner

Hi Alice!

I was not able to reproduce your issue. This is probably due to your python version, or the version of conda/wheel you use. Anyways, since this problem can occur, I changed python-Levenshtein to Levenshtein successfully. This should work flawlessly.

Also, don't use python 3.10 or greater: it generates compilation errors with C++ and SpaCy (see here).

If it turns out you encounter another issue, do not hesitate!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants