dirko / pyhcrf

A hidden conditional random field (HCRF) implementation in Python.
BSD 2-Clause "Simplified" License
27 stars 10 forks source link

error while running setup.py #6

Open lkpvignesh opened 6 years ago

lkpvignesh commented 6 years ago

(base) C:\Users\Vignesh\pyhcrf>python setup.py build running build running build_py running build_ext building 'pyhcrf.algorithms' extension C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Vignesh\Anaconda3\lib\site-packages\numpy\core\include -IC:\Users\Vignesh\Anaconda3\include -IC:\Users\Vignesh\Anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tcpyhcrf/algorithms.c /Fobuild\temp.win-amd64-3.6\Release\pyhcrf/algorithms.obj algorithms.c c:\users\vignesh\anaconda3\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION pyhcrf/algorithms.c(1857): warning C4244: '=': conversion from 'npy_intp' to 'unsigned int', possible loss of data pyhcrf/algorithms.c(1866): warning C4244: '=': conversion from 'npy_intp' to 'unsigned int', possible loss of data pyhcrf/algorithms.c(1875): warning C4244: '=': conversion from 'npy_intp' to 'unsigned int', possible loss of data pyhcrf/algorithms.c(1884): warning C4244: '=': conversion from 'npy_intp' to 'unsigned int', possible loss of data pyhcrf/algorithms.c(2930): warning C4244: '=': conversion from 'npy_intp' to 'unsigned int', possible loss of data pyhcrf/algorithms.c(2939): warning C4244: '=': conversion from 'npy_intp' to 'unsigned int', possible loss of data pyhcrf/algorithms.c(3331): warning C4244: '=': conversion from 'npy_intp' to 'unsigned int', possible loss of data pyhcrf/algorithms.c(3340): warning C4244: '=': conversion from 'npy_intp' to 'unsigned int', possible loss of data pyhcrf/algorithms.c(3587): warning C4018: '<': signed/unsigned mismatch pyhcrf/algorithms.c(3802): warning C4018: '<': signed/unsigned mismatch pyhcrf/algorithms.c(8983): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data pyhcrf/algorithms.c(8989): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Vignesh\Anaconda3\libs /LIBPATH:C:\Users\Vignesh\Anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" /EXPORT:PyInit_algorithms build\temp.win-amd64-3.6\Release\pyhcrf/algorithms.obj /OUT:build\lib.win-amd64-3.6\pyhcrf\algorithms.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\pyhcrf\algorithms.cp36-win_amd64.lib algorithms.obj : warning LNK4197: export 'PyInit_algorithms' specified multiple times; using first specification Creating library build\temp.win-amd64-3.6\Release\pyhcrf\algorithms.cp36-win_amd64.lib and object build\temp.win-amd64-3.6\Release\pyhcrf\algorithms.cp36-win_amd64.exp algorithms.obj : error LNK2001: unresolved external symbol npy_logaddexp build\lib.win-amd64-3.6\pyhcrf\algorithms.cp36-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe' failed with exit status 1120

Phil-Liu commented 4 years ago

excuse me .have you solved this problem? I meet with it too

dirko commented 4 years ago

Unfortunately this package is not supported on Windows. Do you get the same issue on Linux or mac?

But if you figure it out on Windows then a pull request is always welcome.