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

Unable to install #20

Open
amanyakhyar opened this issue Jun 14, 2021 · 2 comments
Open

Unable to install #20

amanyakhyar opened this issue Jun 14, 2021 · 2 comments

Comments

@amanyakhyar
Copy link

amanyakhyar commented Jun 14, 2021

Hello, I want to install this library on my laptop (Windows 10). But I got this error when installed it (either with pip or git clone).

Building wheels for collected packages: wmd
Building wheel for wmd (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Asus\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\setup.py'"'"'; file='"'"'C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Asus\AppData\Local\Temp\pip-wheel-z56vtcdf' --python-tag cp37
cwd: C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd
Complete output (64 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\wmd
copying wmd_init_.py -> build\lib.win-amd64-3.7\wmd
running build_ext
building 'libwmdrelax' extension
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\or-tools
creating build\temp.win-amd64-3.7\Release\or-tools\src
creating build\temp.win-amd64-3.7\Release\or-tools\src\graph
creating build\temp.win-amd64-3.7\Release\or-tools\src\base
creating build\temp.win-amd64-3.7\Release\or-tools\src\util
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Asus\AppData\Roaming\Python\Python37\site-packages\numpy\core\include -Ior-tools/src -IC:\Users\Asus\Anaconda3\include -IC:\Users\Asus\Anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tppython.cc /Fobuild\temp.win-amd64-3.7\Release\python.obj /openmp /std:c++latest /arch:AVX2 /DNDEBUG /LTCG /GL
cl : Command line warning D9002 : ignoring unknown option '/LTCG'
python.cc
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(99): warning C4267: 'argument': conversion from 'size_t' to 'operations_research::NodeIndex', possible loss of data
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(103): warning C4267: 'argument': conversion from 'size_t' to 'operations_research::NodeIndex', possible loss of data
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(126): error C2146: syntax error: missing ')' before identifier 'in'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(126): error C2988: unrecognizable template declaration/definition
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(126): error C2059: syntax error: 'in'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(127): error C2059: syntax error: ')'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(127): error C2143: syntax error: missing ';' before '{'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(127): error C2447: '{': missing function header (old-style formal list?)
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(160): error C2146: syntax error: missing ')' before identifier 'in'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(160): error C2988: unrecognizable template declaration/definition
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(160): error C2059: syntax error: 'in'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(161): error C2059: syntax error: ')'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(161): error C2143: syntax error: missing ';' before '{'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(161): error C2447: '{': missing function header (old-style formal list?)
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(192): error C2146: syntax error: missing ')' before identifier 'w1'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(192): error C3646: 'w1': unknown override specifier
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(192): error C2988: unrecognizable template declaration/definition
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(192): error C2059: syntax error: ','
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(193): error C2059: syntax error: ')'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(193): error C2143: syntax error: missing ';' before '{'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(193): error C2447: '{': missing function header (old-style formal list?)
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd_relaxed.h(46): error C2146: syntax error: missing ')' before identifier 'w1'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd_relaxed.h(46): error C3646: 'w1': unknown override specifier
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd_relaxed.h(46): error C2988: unrecognizable template declaration/definition
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd_relaxed.h(46): error C2059: syntax error: ','
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd_relaxed.h(48): error C2059: syntax error: ')'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd_relaxed.h(48): error C2143: syntax error: missing ';' before '{'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd_relaxed.h(48): error C2447: '{': missing function header (old-style formal list?)
python.cc(35): error C2065: 'py_emd_relaxed': undeclared identifier
python.cc(37): error C2065: 'py_emd_relaxed_cache_init': undeclared identifier
python.cc(39): error C2065: 'py_emd_relaxed_cache_fini': undeclared identifier
python.cc(41): error C2065: 'py_emd': undeclared identifier
python.cc(43): error C2065: 'py_emd_cache_init': undeclared identifier
python.cc(45): error C2065: 'py_emd_cache_fini': undeclared identifier
python.cc(204): error C7568: argument list missing after assumed function template 'emd_relaxed'
python.cc(204): error C2062: type 'unknown-type' unexpected
python.cc(208): error C7568: argument list missing after assumed function template 'emd'
python.cc(208): error C2062: type 'unknown-type' unexpected
python.cc(212): error C2672: 'cache_init': no matching overloaded function found
python.cc(212): error C3206: 'cache_init': invalid template argument for 'C', missing template argument list on class template 'anonymous-namespace'::EMDRelaxedCache' python.cc(183): note: see declaration of 'cache_init' python.cc(216): error C2672: 'cache_fini': no matching overloaded function found python.cc(216): error C3206: 'cache_fini': invalid template argument for 'C', missing template argument list on class template 'anonymous-namespace'::EMDRelaxedCache'
python.cc(194): note: see declaration of 'cache_fini'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe' failed with exit status 2

ERROR: Failed building wheel for wmd
Running setup.py clean for wmd
Failed to build wmd
Installing collected packages: blanc, sacrebleu, sklearn, wmd, summ-eval
Running setup.py install for wmd ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Asus\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\setup.py'"'"'; file='"'"'C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\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\Asus\AppData\Local\Temp\pip-record-0d126ckx\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd
Complete output (64 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\wmd
copying wmd_init_.py -> build\lib.win-amd64-3.7\wmd
running build_ext
building 'libwmdrelax' extension
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\or-tools
creating build\temp.win-amd64-3.7\Release\or-tools\src
creating build\temp.win-amd64-3.7\Release\or-tools\src\graph
creating build\temp.win-amd64-3.7\Release\or-tools\src\base
creating build\temp.win-amd64-3.7\Release\or-tools\src\util
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Asus\AppData\Roaming\Python\Python37\site-packages\numpy\core\include -Ior-tools/src -IC:\Users\Asus\Anaconda3\include -IC:\Users\Asus\Anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tppython.cc /Fobuild\temp.win-amd64-3.7\Release\python.obj /openmp /std:c++latest /arch:AVX2 /DNDEBUG /LTCG /GL
cl : Command line warning D9002 : ignoring unknown option '/LTCG'
python.cc
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(99): warning C4267: 'argument': conversion from 'size_t' to 'operations_research::NodeIndex', possible loss of data
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(103): warning C4267: 'argument': conversion from 'size_t' to 'operations_research::NodeIndex', possible loss of data
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(126): error C2146: syntax error: missing ')' before identifier 'in'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(126): error C2988: unrecognizable template declaration/definition
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(126): error C2059: syntax error: 'in'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(127): error C2059: syntax error: ')'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(127): error C2143: syntax error: missing ';' before '{'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(127): error C2447: '{': missing function header (old-style formal list?)
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(160): error C2146: syntax error: missing ')' before identifier 'in'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(160): error C2988: unrecognizable template declaration/definition
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(160): error C2059: syntax error: 'in'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(161): error C2059: syntax error: ')'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(161): error C2143: syntax error: missing ';' before '{'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(161): error C2447: '{': missing function header (old-style formal list?)
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(192): error C2146: syntax error: missing ')' before identifier 'w1'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(192): error C3646: 'w1': unknown override specifier
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(192): error C2988: unrecognizable template declaration/definition
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(192): error C2059: syntax error: ','
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(193): error C2059: syntax error: ')'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(193): error C2143: syntax error: missing ';' before '{'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd.h(193): error C2447: '{': missing function header (old-style formal list?)
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd_relaxed.h(46): error C2146: syntax error: missing ')' before identifier 'w1'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd_relaxed.h(46): error C3646: 'w1': unknown override specifier
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd_relaxed.h(46): error C2988: unrecognizable template declaration/definition
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd_relaxed.h(46): error C2059: syntax error: ','
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd_relaxed.h(48): error C2059: syntax error: ')'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd_relaxed.h(48): error C2143: syntax error: missing ';' before '{'
C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\emd_relaxed.h(48): error C2447: '{': missing function header (old-style formal list?)
python.cc(35): error C2065: 'py_emd_relaxed': undeclared identifier
python.cc(37): error C2065: 'py_emd_relaxed_cache_init': undeclared identifier
python.cc(39): error C2065: 'py_emd_relaxed_cache_fini': undeclared identifier
python.cc(41): error C2065: 'py_emd': undeclared identifier
python.cc(43): error C2065: 'py_emd_cache_init': undeclared identifier
python.cc(45): error C2065: 'py_emd_cache_fini': undeclared identifier
python.cc(204): error C7568: argument list missing after assumed function template 'emd_relaxed'
python.cc(204): error C2062: type 'unknown-type' unexpected
python.cc(208): error C7568: argument list missing after assumed function template 'emd'
python.cc(208): error C2062: type 'unknown-type' unexpected
python.cc(212): error C2672: 'cache_init': no matching overloaded function found
python.cc(212): error C3206: 'cache_init': invalid template argument for 'C', missing template argument list on class template 'anonymous-namespace'::EMDRelaxedCache' python.cc(183): note: see declaration of 'cache_init' python.cc(216): error C2672: 'cache_fini': no matching overloaded function found python.cc(216): error C3206: 'cache_fini': invalid template argument for 'C', missing template argument list on class template 'anonymous-namespace'::EMDRelaxedCache'
python.cc(194): note: see declaration of 'cache_fini'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Asus\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\setup.py'"'"'; file='"'"'C:\Users\Asus\AppData\Local\Temp\pip-install-pj49vss9\wmd\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\Asus\AppData\Local\Temp\pip-record-0d126ckx\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

What should I do?

@amanyakhyar
Copy link
Author

amanyakhyar commented Jun 16, 2021

I move to google colab and already install it. But another error appears as below:

CalledProcessError: Command '['/usr/local/lib/python3.7/dist-packages/summ_eval/ROUGE-1.5.5/ROUGE-1.5.5.pl', '-e', '/usr/local/lib/python3.7/dist-packages/summ_eval/ROUGE-1.5.5/data', '-c', '95', '-2', '-1', '-U', '-r', '1000', '-n', '4', '-w', '1.2', '-a', '-m', '/tmp/tmpe2whzblv/rouge_conf.xml']' returned non-zero exit status 2.

I try add 'sudo' before running that command, but doesn't solve the error.

What should I do?

@Alex-Fabbri
Copy link
Contributor

Hi,
Try checking out this issue. If you're encountering a different error, please attach the full error message, and I'll take a look!

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

2 participants