tokestermw / spacy_hunspell

:pencil2: Hunspell extension for spaCy 2.0.
MIT License
94 stars 14 forks source link

Hard time to install spacy_hunspell on Windows #3

Open esthercamilo opened 6 years ago

esthercamilo commented 6 years ago

After answering all requests made by the installer (include all *.hxx, etc), I finally got the following error, which I have no idea how to solve.

`Microsoft Windows [versão 10.0.14393] (c) 2016 Microsoft Corporation. Todos os direitos reservados.

C:\Users\esther.reis\PycharmProjects\migracao-sas>C:\Users\esther.reis\AppData\Local\Programs\Python\Python36\python.exe -m pip install spacy_hunspell Collecting spacy_hunspell Using cached https://files.pythonhosted.org/packages/d9/6a/d977f74eff8354a5fdd6b5c0d8b4f8caa8d676970e18ff961694d978e7f7/spacy_hunspell-0.1.0.tar.gz Requirement already satisfied: spacy>=2.0.0 in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from spacy_hunspell) (2.0.11) Collecting hunspell==0.5.0 (from spacy_hunspell) Using cached https://files.pythonhosted.org/packages/2d/77/8c68d28afca3b07d3b89d3c60af56e1a3e5f381ddd1bc01f31e97233a03c/hunspell-0.5.0.tar.gz Requirement already satisfied: numpy>=1.7 in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from spacy>=2.0.0->spacy_hunspell) (1.14.3) Requirement already satisfied: murmurhash<0.29,>=0.28 in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from spacy>=2.0.0->spacy_hunspell) (0.28.0) Requirement already satisfied: cymem<1.32,>=1.30 in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from spacy>=2.0.0->spacy_hunspell) (1.31.2) Requirement already satisfied: preshed<2.0.0,>=1.0.0 in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from spacy>=2.0.0->spacy_hunspell) (1.0.0) Requirement already satisfied: thinc<6.11.0,>=6.10.1 in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from spacy>=2.0.0->spacy_hunspell) (6.10.2) Requirement already satisfied: plac<1.0.0,>=0.9.6 in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from spacy>=2.0.0->spacy_hunspell) (0.9.6) Requirement already satisfied: pathlib in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from spacy>=2.0.0->spacy_hunspell) (1.0.1) Requirement already satisfied: ujson>=1.35 in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from spacy>=2.0.0->spacy_hunspell) (1.35) Requirement already satisfied: dill<0.3,>=0.2 in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from spacy>=2.0.0->spacy_hunspell) (0.2.7.1) Requirement already satisfied: regex==2017.4.5 in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from spacy>=2.0.0->spacy_hunspell) (2017.4.5) Requirement already satisfied: wrapt in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from thinc<6.11.0,>=6.10.1->spacy>=2.0.0->spacy_hunspell) (1.10.11) Requirement already satisfied: tqdm<5.0.0,>=4.10.0 in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from thinc<6.11.0,>=6.10.1->spacy>=2.0.0->spacy_hunspell) (4.23.4) Requirement already satisfied: cytoolz<0.9,>=0.8 in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from thinc<6.11.0,>=6.10.1->spacy>=2.0.0->spacy_hunspell) (0.8.2) Requirement already satisfied: six<2.0.0,>=1.10.0 in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from thinc<6.11.0,>=6.10.1->spacy>=2.0.0->spacy_hunspell) (1.11.0) Requirement already satisfied: termcolor in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from thinc<6.11.0,>=6.10.1->spacy>=2.0.0->spacy_hunspell) (1.1.0) Requirement already satisfied: msgpack-python in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from thinc<6.11.0,>=6.10.1->spacy>=2.0.0->spacy_hunspell) (0.5.6) Requirement already satisfied: msgpack-numpy==0.4.1 in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from thinc<6.11.0,>=6.10.1->spacy>=2.0.0->spacy_hunspell) (0.4.1) Requirement already satisfied: pyreadline>=1.7.1 in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from dill<0.3,>=0.2->spacy>=2.0.0->spacy_hunspell) (2.1) Requirement already satisfied: toolz>=0.8.0 in c:\users\esther.reis\appdata\local\programs\python\python36\lib\site-packages (from cytoolz<0.9,>=0.8->thinc<6.11.0,>=6.10.1->spacy>=2.0.0->spacy_hunspell) (0.9.0) Installing collected packages: hunspell, spacy-hunspell Running setup.py install for hunspell ... error Complete output from command C:\Users\esther.reis\AppData\Local\Programs\Python\Python36\python.exe -u -c "import setuptools, tokenize;file='C:\Users\ESTHER~1.REI\AppData\Local\Temp\pip-install-wwpostjh\hunspell\setup.py';f=getattr(tokenize, 'open' , open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\ESTHER~1.REI\AppData\Local\Temp\pip-record-qzjz10kn\install-record.txt --single-version-externally-managed --compile: C:\Users\esther.reis\AppData\Local\Programs\Python\Python36\lib\distutils\extension.py:131: UserWarning: Unknown Extension options: 'compile_args', 'macros' warnings.warn(msg) running install running build running build_ext building 'hunspell' extension creating build creating build\temp.win-amd64-3.6 creating build\temp.win-amd64-3.6\Release C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IV:/hunspell-1.3.3/src/hunspell -IC:\Users\esther.reis\AppData\Local\Programs\Python\Python36\include -IC:\Users \esther.reis\AppData\Local\Programs\Python\Python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\includ e" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0. 17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /EHsc /Tphunspell.cpp /Fobuild\temp.win-amd64-3.6\Release\hunspell.obj hunspell.cpp creating C:\Users\ESTHER~1.REI\AppData\Local\Temp\pip-install-wwpostjh\hunspell\build\lib.win-amd64-3.6 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:V:/hunspell-1.3.3/src/win_api/x64/Release/libhunspell /LIBPATH:C:\ Users\esther.reis\AppData\Local\Programs\Python\Python36\libs /LIBPATH:C:\Users\esther.reis\AppData\Local\Programs\Python\Python36\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\ATLMFC\lib\x64" "/LIB PATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17134.0\ucrt\x64" "/LIBPATH:C:\ Program Files (x86)\Windows Kits\10\lib\10.0.17134.0\um\x64" libhunspell.lib /EXPORT:PyInit_hunspell build\temp.win-amd64-3.6\Release\hunspell.obj /OUT:build\lib.win-amd64-3.6\hunspell.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\hunspell.cp36-win_a md64.lib Criando biblioteca build\temp.win-amd64-3.6\Release\hunspell.cp36-win_amd64.lib e objeto build\temp.win-amd64-3.6\Release\hunspell.cp36-win_amd64.exp hunspell.obj : error LNK2001: símbolos externos indefinidos "declspec(dllimport) public: int cdecl Hunspell::remove(char const )" (_imp?remove@Hunspell@@QEAAHPEBD@Z) hunspell.obj : error LNK2001: símbolos externos indefinidos "declspec(dllimport) public: int cdecl Hunspell::add_with_affix(char const ,char const )" (_imp?add_with_affix@Hunspell@@QEAAHPEBD0@Z) hunspell.obj : error LNK2001: símbolos externos indefinidos "declspec(dllimport) public: int cdecl Hunspell::add(char const )" (imp_?add@Hunspell@@QEAAHPEBD@Z) hunspell.obj : error LNK2001: símbolos externos indefinidos "declspec(dllimport) public: int cdecl Hunspell::generate(char ,char const ,char const *)" (_imp?generate@Hunspell@@QEAAHPEAPEAPEADPEBD1@Z) hunspell.obj : error LNK2001: símbolos externos indefinidos "declspec(dllimport) public: int cdecl Hunspell::generate(char ,char const ,char ,int)" (imp_?generate@Hunspell@@QEAAHPEAPEAPEADPEBDPEAPEADH@Z) hunspell.obj : error LNK2001: símbolos externos indefinidos "declspec(dllimport) public: int cdecl Hunspell::stem(char ,char const )" (imp_?stem@Hunspell@@QEAAHPEAPEAPEADPEBD@Z) hunspell.obj : error LNK2001: símbolos externos indefinidos "declspec(dllimport) public: int cdecl Hunspell::analyze(char ,char const )" (_imp?analyze@Hunspell@@QEAAHPEAPEAPEADPEBD@Z) hunspell.obj : error LNK2001: símbolos externos indefinidos "declspec(dllimport) public: char cdecl Hunspell::get_dic_encoding(void)" (imp_?get_dic_encoding@Hunspell@@QEAAPEADXZ) hunspell.obj : error LNK2001: símbolos externos indefinidos "declspec(dllimport) public: void cdecl Hunspell::free_list(char ,int)" (imp_?free_list@Hunspell@@QEAAXPEAPEAPEADH@Z) hunspell.obj : error LNK2001: símbolos externos indefinidos "declspec(dllimport) public: int cdecl Hunspell::suggest(char ,char const )" (imp_?suggest@Hunspell@@QEAAHPEAPEAPEADPEBD@Z) hunspell.obj : error LNK2001: símbolos externos indefinidos "declspec(dllimport) public: int cdecl Hunspell::spell(char const ,int ,char )" (imp_?spell@Hunspell@@QEAAHPEBDPEAHPEAPEAD@Z) hunspell.obj : error LNK2001: símbolos externos indefinidos "declspec(dllimport) public: int cdecl Hunspell::add_dic(char const ,char const )" (imp_?add_dic@Hunspell@@QEAAHPEBD0@Z) hunspell.obj : error LNK2001: símbolos externos indefinidos "declspec(dllimport) public: cdecl Hunspell::Hunspell(char const ,char const ,char const *)" (_imp??0Hunspell@@QEAA@PEBD00@Z) build\lib.win-amd64-3.6\hunspell.cp36-win_amd64.pyd : fatal error LNK1120: 13 externo não resolvidos error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\link.exe' failed with exit status 1120

----------------------------------------

Command "C:\Users\esther.reis\AppData\Local\Programs\Python\Python36\python.exe -u -c "import setuptools, tokenize;file='C:\Users\ESTHER~1.REI\AppData\Local\Temp\pip-install-wwpostjh\hunspell\setup.py';f=getattr(tokenize, 'open', open)(file);code=f .read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\ESTHER~1.REI\AppData\Local\Temp\pip-record-qzjz10kn\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ESTH ER~1.REI\AppData\Local\Temp\pip-install-wwpostjh\hunspell\ `

cyonghui81 commented 6 years ago

Unable to install in windows too

UdiBhaskar commented 5 years ago

any update on this?