Reputation: 43
I am trying to install HspellPy package (using google colab) : pip install HspellPy (https://pypi.org/project/HspellPy/) I get :
Collecting HspellPy
Using cached https://files.pythonhosted.org/packages/94/fb/d56f7809bae4a8376bc79974559a99c7deca3b3fe039acb4a4d67abd7f39/HspellPy-0.1.4.tar.gz
Building wheels for collected packages: HspellPy
Building wheel for HspellPy (setup.py) ... error
ERROR: Failed building wheel for HspellPy
Running setup.py clean for HspellPy
Failed to build HspellPy
Installing collected packages: HspellPy
Running setup.py install for HspellPy ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_msu45vm/HspellPy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_msu45vm/HspellPy/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-lyfnm7ww/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
I looked up some fixes to "ERROR: Failed building wheel for HspellPy" but onthing helped, and since that package is not widely used i can't find anything helpful
Thank you
Upvotes: 1
Views: 209
Reputation: 74
You need to install hspell as it is dependency for HspellPy.
I recommend to compile the source directly and make sure to compile with enable-linginfo, as I wrote in pypy in the package description and in github README file. https://github.com/eranroz/HspellPy
In case you compile directly from sources, in some environments the upstream project (hspell) fail to compile and you need to replace: require "PrefixBits.pl";
to: require "./PrefixBits.pl"; in binarize-desc.pl and genprefixes.pl
Upvotes: 1
Reputation: 95070
For me the main part of the error is "fatal error: hspell.h: No such file or directory" which means that Hspell is not installed (HspellPy is just a Python wrapper for Hspell which is written in C). Install Hspell; on Debian/Ubuntu try
sudo apt install -y hspell
Or compile from sources.
Then retry pip install HspellPy
Upvotes: 0