src-d/wmd-relax

Windows installation issue

Open

#8 opened on May 20, 2017

View on GitHub
 (15 comments) (0 reactions) (0 assignees)Python (456 stars) (83 forks)batch import
bughelp wantedwindows

Description

Trying to use pip install wmd in Windows 10. I am using MSVC to compile from source. I have reproduced the log below. Can you please help troubleshoot?

 c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd.h(82): error C2146: syntax error: missing ')' before identifier 'in'
    c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd.h(82): error C2988: unrecognizable template declaration/definition
    c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd.h(82): error C2059: syntax error: 'in'
    c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd.h(83): error C2059: syntax error: ')'
    c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd.h(117): error C2143: syntax error: missing ';' before '{'
    c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd.h(117): error C2447: '{': missing function header (old-style formal list?)
    c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd.h(118): error C3001: 'simd': expected an OpenMP directive name
    c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd.h(125): error C3001: 'simd': expected an OpenMP directive name
    c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd.h(148): error C2146: syntax error: missing ')' before identifier 'w1'
    c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd.h(148): error C3646: 'w1': unknown override specifier
    c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd.h(148): error C2988: unrecognizable template declaration/definition
    c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd.h(148): error C2059: syntax error: ','
    c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd.h(149): error C2059: syntax error: ')'
    c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd_relaxed.h(9): error C2143: syntax error: missing ';' before '{'
    c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd_relaxed.h(9): error C2447: '{': missing function header (old-style formal list?)
    c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd_relaxed.h(46): error C2146: syntax error: missing ')' before identifier 'w1'
    c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd_relaxed.h(46): error C3646: 'w1': unknown override specifier
    c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd_relaxed.h(46): error C2988: unrecognizable template declaration/definition
    c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd_relaxed.h(46): error C2059: syntax error: ','
    c:\users\36996\appdata\local\temp\pip-build-8hj30bdc\wmd\emd_relaxed.h(48): error C2059: syntax error: ')'
    python.cc(34): error C2065: 'py_emd_relaxed': undeclared identifier
    python.cc(36): error C2065: 'py_emd_relaxed_cache_init': undeclared identifier
    python.cc(38): error C2065: 'py_emd_relaxed_cache_fini': undeclared identifier
    python.cc(40): error C2065: 'py_emd': undeclared identifier
    python.cc(42): error C2065: 'py_emd_cache_init': undeclared identifier
    python.cc(44): error C2065: 'py_emd_cache_fini': undeclared identifier
    python.cc(54): error C2065: 'module_docstring': undeclared identifier
    python.cc(201): error C2672: 'emd_entry': no matching overloaded function found
    python.cc(201): error C2784: 'PyObject *emd_entry(PyObject *,PyObject *,PyObject *,float (__cdecl *)(const float *,const float *,const float *,uint32_t,const C &))': could not deduce template argument for 'float (__cdecl *)(const float *,const float *,const float *,uint32_t,const C &)' from 'overloaded-function'
    python.cc(94): note: see declaration of 'emd_entry'
    python.cc(205): error C2672: 'emd_entry': no matching overloaded function found
    python.cc(205): error C2784: 'PyObject *emd_entry(PyObject *,PyObject *,PyObject *,float (__cdecl *)(const float *,const float *,const float *,uint32_t,const C &))': could not deduce template argument for 'float (__cdecl *)(const float *,const float *,const float *,uint32_t,const C &)' from 'overloaded-function'
    python.cc(94): note: see declaration of 'emd_entry'
    python.cc(209): error C2065: 'EMDRelaxedCache': undeclared identifier
    python.cc(209): error C2672: 'cache_init': no matching overloaded function found
    python.cc(209): error C2974: 'cache_init': invalid template argument for 'C', type expected
    python.cc(180): note: see declaration of 'cache_init'
    python.cc(213): error C2065: 'EMDRelaxedCache': undeclared identifier
    python.cc(213): error C2672: 'cache_fini': no matching overloaded function found
    python.cc(213): error C2974: 'cache_fini': invalid template argument for 'C', type expected
    python.cc(191): note: see declaration of 'cache_fini'
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2

Contributor guide

Windows installation issue · src-d/wmd-relax#8 | Good First Issue