semseg_od icon indicating copy to clipboard operation
semseg_od copied to clipboard

cannot run build.sh

Open RamyaRaghuraman opened this issue 5 years ago • 5 comments

Hi @pb-brainiac @ssegvic @orsic @jsaric ,

Thank you for the code release :)

I am currently working in Windows OS, and face the following issue while running build.sh

"rm: cannot remove 'cylib.so': No such file or directory cylib.cc:4:10: fatal error: Python.h: No such file or directory #include "Python.h" "

Any help would be appreciated. Thanks :)

RamyaRaghuraman avatar Oct 23 '19 12:10 RamyaRaghuraman

Unfortunately we are unable to offer Windows-specific support, since all computers in our lab are under Linux. That said, it is clear that the compiler is unable to find Python.h, a header file from the Python distribution. Good luck!

ssegvic avatar Oct 23 '19 12:10 ssegvic

Since I am trying to run this on windows, could you please tell me the purpose of this line?

-I/usr/lib/python3.7/site-packages/numpy/core/include -I/usr/include/python3.7m -o cylib.so cylib.cc

RamyaRaghuraman avatar Nov 06 '19 09:11 RamyaRaghuraman

It is the continuation of line 7

The full line is: g++ -shared -pthread -fPIC -fwrapv -O3 -Wall -fno-strict-aliasing -I/usr/lib/python3.7/site-packages/numpy/core/include -I/usr/include/python3.7m -o cylib.so cylib.cc

For the explanation of the individual options please refer to the g++ man page: https://linux.die.net/man/1/g++

pb-brainiac avatar Nov 06 '19 09:11 pb-brainiac

I still cannot find a solution for windows. My gcc and g++ version are gcc (GCC) 7.4.0 and g++ (GCC) 7.4.0

RamyaRaghuraman avatar Nov 06 '19 09:11 RamyaRaghuraman

@ssegvic I do have Python.h in my computer and these are the paths:

  1. C:\Users\RAR7ABT\AppData\Local\conda\conda\envs\pjval\Lib\site-packages\torch\include\torch\csrc\api\include\torch\python.h

  2. C:\Users\RAR7ABT\AppData\Local\JetBrains\PyCharm Community Edition 2018.3.5\helpers\pydev\pydevd_attach_to_process\dll\python.h

  3. C:\Users\RAR7ABT\AppData\Local\conda\conda\envs\pjval\include\Python.h

Should I be adding one of these in build.sh?

RamyaRaghuraman avatar Nov 10 '19 19:11 RamyaRaghuraman