pyflow icon indicating copy to clipboard operation
pyflow copied to clipboard

Installation error on Windows 10 using Python 3.7

Open vnminh1999 opened this issue 5 years ago • 2 comments

When I ran python setup.py build_ext -i, I got this list or errors. Any suggestions/guide on fixing these?

building 'pyflow' extension
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-IC:\Python 3.7\lib\site-packages\numpy\core\include" "-IC:\Python 3.7\lib\site-packages\numpy\core\include" "-IC:\Python 3.7\include" "-IC:\Python 3.7\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tppyflow.cpp /Fobuild\temp.win-amd64-3.7\Release\pyflow.obj
pyflow.cpp
c:\python 3.7\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
pyflow.cpp(2085): warning C4244: '=': conversion from 'npy_intp' to 'int', possible loss of data
pyflow.cpp(2094): warning C4244: '=': conversion from 'npy_intp' to 'int', possible loss of data
pyflow.cpp(2103): warning C4244: '=': conversion from 'npy_intp' to 'int', possible loss of data
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-IC:\Python 3.7\lib\site-packages\numpy\core\include" "-IC:\Python 3.7\lib\site-packages\numpy\core\include" "-IC:\Python 3.7\include" "-IC:\Python 3.7\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tpsrc\Coarse2FineFlowWrapper.cpp /Fobuild\temp.win-amd64-3.7\Release\src\Coarse2FineFlowWrapper.obj
Coarse2FineFlowWrapper.cpp
c:\users\vnmin\documents\pyflow\src\project.h(41): error C2146: syntax error: missing ')' before identifier 'a'
c:\users\vnmin\documents\pyflow\src\project.h(41): error C2365: 'T1': redefinition; previous definition was 'template parameter'
c:\users\vnmin\documents\pyflow\src\project.h(40): note: see declaration of 'T1'
c:\users\vnmin\documents\pyflow\src\project.h(41): error C2061: syntax error: identifier 'a'
c:\users\vnmin\documents\pyflow\src\project.h(41): error C2059: syntax error: ')'
c:\users\vnmin\documents\pyflow\src\project.h(41): error C2146: syntax error: missing ')' before identifier 'b'
c:\users\vnmin\documents\pyflow\src\project.h(41): error C2146: syntax error: missing ';' before identifier 'b'
c:\users\vnmin\documents\pyflow\src\project.h(42): error C2143: syntax error: missing ';' before '{'
c:\users\vnmin\documents\pyflow\src\project.h(42): error C2447: '{': missing function header (old-style formal list?)
c:\users\vnmin\documents\pyflow\src\project.h(47): error C2146: syntax error: missing ')' before identifier 'a'
c:\users\vnmin\documents\pyflow\src\project.h(47): error C2365: 'T1': redefinition; previous definition was 'template parameter'
c:\users\vnmin\documents\pyflow\src\project.h(46): note: see declaration of 'T1'
c:\users\vnmin\documents\pyflow\src\project.h(47): error C2061: syntax error: identifier 'a'
c:\users\vnmin\documents\pyflow\src\project.h(47): error C2059: syntax error: ')'
c:\users\vnmin\documents\pyflow\src\project.h(47): error C2146: syntax error: missing ')' before identifier 'b'
c:\users\vnmin\documents\pyflow\src\project.h(47): error C2146: syntax error: missing ';' before identifier 'b'
c:\users\vnmin\documents\pyflow\src\project.h(48): error C2143: syntax error: missing ';' before '{'
c:\users\vnmin\documents\pyflow\src\project.h(48): error C2447: '{': missing function header (old-style formal list?)
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include\vcruntime_typeinfo.h(111): error C2989: 'type_info': class template has already been declared as a non-class template
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include\eh.h(49): note: see declaration of 'type_info'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(130): error C2039: 'BilinearInterpolate': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(152): error C2039: 'BilinearInterpolate': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(179): error C2039: 'BilinearInterpolate_transpose': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(205): error C2039: 'ResizeImage': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(226): error C2039: 'ResizeImage': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(249): error C2039: 'hfiltering': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(274): error C2039: 'hfiltering_transpose': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(299): error C2039: 'Laplacian': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(339): error C2039: 'vfiltering': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(363): error C2039: 'vfiltering_transpose': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(390): error C2039: 'filtering': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(422): error C2039: 'filtering_transpose': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(450): error C2039: 'getPatch': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(471): error C2039: 'warpImage': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(493): error C2039: 'warpImageFlow': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(515): error C2039: 'warpImage': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(533): error C2039: 'warpImage_transpose': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(555): error C2039: 'warpImage': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(573): error C2039: 'warpImage_transpose': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(593): error C2039: 'warpImage': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(623): error C2039: 'cropImage': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(647): error C2039: 'generate2DGaussian': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(671): error C2039: 'generate1DGaussian': is not a member of 'ImageProcessing'
c:\users\vnmin\documents\pyflow\src\ImageProcessing.h(19): note: see declaration of 'ImageProcessing'

vnminh1999 avatar Feb 05 '20 09:02 vnminh1999

Hi, I got the same message and I comment //#define _LINUX_MAC in pyflow\src\project.h

gcordova19 avatar Mar 23 '20 13:03 gcordova19

Hi, I got the same message and I comment //#define _LINUX_MAC in pyflow\src\project.h

Love you for this :-)

CybotDNA avatar Oct 21 '21 15:10 CybotDNA