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

Error : Failed building wheel for cyhunspell , when using pip install cyhunspell #45

Open
ghost opened this issue Jun 29, 2023 · 9 comments

Comments

@ghost
Copy link

ghost commented Jun 29, 2023

I'am currently using windows 10 with python version Python 3.11.3.

When-ever I'am trying to pip install cyhunspell , it's giving the following errors.

image

image

I have tried using choco to install the same but it won't, the error persists with pip install cyhunspell or pip install hunspell

@omerayvaz
Copy link

omerayvaz commented Jul 5, 2023

hello i have the same issue did you solve it

@h3ma209
Copy link

h3ma209 commented Jul 18, 2023

same issue

@bt2901
Copy link

bt2901 commented Jul 22, 2023

Based on #44 and some experimenting, here's my recipe for installing cyhunspell on a Google Colab:

!apt-get  install libtool
!pip install https://github.com/MSeal/cython_hunspell/archive/refs/tags/2.0.3.tar.gz

@MSeal
Copy link
Owner

MSeal commented Jul 24, 2023

I'll need to debug this to figure out what's different in the windows + python 3.11 causing the issue. Likely a package needs upgraded or a deprecated feature is no longer supported. It may take me a little bit to get to testing this as I have a newborn in the house

@jeanmonet
Copy link

Similar problem on Ubuntu 20.04 LTS + Python 3.11:

Failed to build cyhunspell

:stderr:   error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [60 lines of output]
      /opt/miniconda_py39/envs/py11/lib/python3.11/site-packages/setuptools/dist.py:745: SetuptoolsDeprecationWarning: Invalid dash-separated options
      !!
      
              ********************************************************************************
              Usage of dash-separated 'description-file' will not be supported in future
              versions. Please use the underscore name 'description_file' instead.
      
              By 2023-Sep-26, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
      
              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************
      
      !!
        opt = self.warn_dash_deprecation(opt, section)
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-311
      creating build/lib.linux-x86_64-cpython-311/hunspell
      copying hunspell/platform.py -> build/lib.linux-x86_64-cpython-311/hunspell
      copying hunspell/__init__.py -> build/lib.linux-x86_64-cpython-311/hunspell
      copying hunspell/thread.pxd -> build/lib.linux-x86_64-cpython-311/hunspell
      copying hunspell/hunspell.pxd -> build/lib.linux-x86_64-cpython-311/hunspell
      copying hunspell/hunspell.pyx -> build/lib.linux-x86_64-cpython-311/hunspell
      copying hunspell/hunspell.cpython-36m-x86_64-linux-gnu.so -> build/lib.linux-x86_64-cpython-311/hunspell
      copying hunspell/thread.hpp -> build/lib.linux-x86_64-cpython-311/hunspell
      copying hunspell/hunspell.cpp -> build/lib.linux-x86_64-cpython-311/hunspell
      creating build/lib.linux-x86_64-cpython-311/dictionaries
      copying dictionaries/en_US.aff -> build/lib.linux-x86_64-cpython-311/dictionaries
      copying dictionaries/en_GB.aff -> build/lib.linux-x86_64-cpython-311/dictionaries
      copying dictionaries/en_AU.aff -> build/lib.linux-x86_64-cpython-311/dictionaries
      copying dictionaries/en_CA.aff -> build/lib.linux-x86_64-cpython-311/dictionaries
      copying dictionaries/en_ZA.aff -> build/lib.linux-x86_64-cpython-311/dictionaries
      copying dictionaries/test.aff -> build/lib.linux-x86_64-cpython-311/dictionaries
      copying dictionaries/en_NZ.aff -> build/lib.linux-x86_64-cpython-311/dictionaries
      copying dictionaries/test.dic -> build/lib.linux-x86_64-cpython-311/dictionaries
      copying dictionaries/en_ZA.dic -> build/lib.linux-x86_64-cpython-311/dictionaries
      copying dictionaries/en_GB.dic -> build/lib.linux-x86_64-cpython-311/dictionaries
      copying dictionaries/en_AU.dic -> build/lib.linux-x86_64-cpython-311/dictionaries
      copying dictionaries/en_US.dic -> build/lib.linux-x86_64-cpython-311/dictionaries
      copying dictionaries/en_NZ.dic -> build/lib.linux-x86_64-cpython-311/dictionaries
      copying dictionaries/en_CA.dic -> build/lib.linux-x86_64-cpython-311/dictionaries
      creating build/lib.linux-x86_64-cpython-311/libs
      creating build/lib.linux-x86_64-cpython-311/libs/msvc
      copying libs/msvc/libhunspell-msvc14-x86.lib -> build/lib.linux-x86_64-cpython-311/libs/msvc
      copying libs/msvc/libhunspell-msvc11-x64.lib -> build/lib.linux-x86_64-cpython-311/libs/msvc
      copying libs/msvc/libhunspell-msvc11-x86.lib -> build/lib.linux-x86_64-cpython-311/libs/msvc
      copying libs/msvc/libhunspell-msvc14-x64.lib -> build/lib.linux-x86_64-cpython-311/libs/msvc
      running build_ext
      building 'hunspell.hunspell' extension
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/hunspell
      gcc -pthread -B /opt/miniconda_py39/envs/py11/compiler_compat -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/miniconda_py39/envs/py11/include -fPIC -O2 -isystem /opt/miniconda_py39/envs/py11/include -fPIC -I/tmp/pip-install-4ag35hos/cyhunspell_777f09f7bb5e4e6f9e7e62cea7e20cf9/hunspell -I/tmp/pip-install-4ag35hos/cyhunspell_777f09f7bb5e4e6f9e7e62cea7e20cf9/external/hunspell-1.6.2/src -I/usr/local/include -I/usr/include -I/opt/miniconda_py39/envs/py11/include/python3.11 -c hunspell/hunspell.cpp -o build/temp.linux-x86_64-cpython-311/hunspell/hunspell.o -O3 -g0
      hunspell/hunspell.cpp:219:12: fatal error: longintrepr.h: No such file or directory
        219 |   #include "longintrepr.h"
            |            ^~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cyhunspell
ERROR: Could not build wheels for cyhunspell, which is required to install pyproject.toml-based projects

@Crissium
Copy link

Crissium commented Sep 21, 2023

I think it's simply because the latest version (2.0.2) is not on PyPI yet.

pip3.11 install cyhunspell==2.0.2
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://opentuna.cn/pypi/web/simple
ERROR: Could not find a version that satisfies the requirement cyhunspell==2.0.2 (from versions: 1.0.1, 1.1.0, 1.1.3, 1.1.3.post1, 1.1.4, 1.2.0, 1.2.1, 1.3.0, 1.3.2, 1.3.3, 1.3.4)
ERROR: No matching distribution found for cyhunspell==2.0.2

@kno10
Copy link

kno10 commented Oct 7, 2023

@MSeal cyhunspell 2.0.2 cannot be installed from pypi for Python > 3.9 - no source, and no binaries for recent python.

https://pypi.org/project/cyhunspell/2.0.2/

Workaround:

sudo apt install automake pkg-config libtool libhunspell-dev
pip install https://github.com/MSeal/cython_hunspell/archive/refs/tags/2.0.3.tar.gz

@redstoneleo
Copy link

I found this as an alternative https://github.com/zverok/spylls

@ggeorgop99
Copy link

@MSeal cyhunspell 2.0.2 cannot be installed from pypi for Python > 3.9 - no source, and no binaries for recent python.

https://pypi.org/project/cyhunspell/2.0.2/

Workaround:

sudo apt install automake pkg-config libtool libhunspell-dev
pip install https://github.com/MSeal/cython_hunspell/archive/refs/tags/2.0.3.tar.gz

I get a error: metadata-generation-failed error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants