-
Notifications
You must be signed in to change notification settings - Fork 19
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
Comments
hello i have the same issue did you solve it |
same issue |
Based on #44 and some experimenting, here's my recipe for installing
|
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 |
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 |
I think it's simply because the latest version (2.0.2) is not on PyPI yet.
|
@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:
|
I found this as an alternative https://github.com/zverok/spylls |
I get a |
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.
I have tried using choco to install the same but it won't, the error persists with pip install cyhunspell or pip install hunspell
The text was updated successfully, but these errors were encountered: