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

cannot run build.sh #1

Open
RamyaRaghuraman opened this issue Oct 23, 2019 · 5 comments
Open

cannot run build.sh #1

RamyaRaghuraman opened this issue Oct 23, 2019 · 5 comments

Comments

@RamyaRaghuraman
Copy link

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 :)

@ssegvic
Copy link
Collaborator

ssegvic commented Oct 23, 2019

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!

@RamyaRaghuraman
Copy link
Author

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

@pb-brainiac
Copy link
Owner

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++

@RamyaRaghuraman
Copy link
Author

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
Copy link
Author

@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?

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

3 participants