DenseInferenceWrapper icon indicating copy to clipboard operation
DenseInferenceWrapper copied to clipboard

install error on MacOS

Open arthitag opened this issue 7 years ago • 2 comments

I am trying to install DenseInferenceWrapper. I get the following error when I type “make all”:

######################### refine_3d/dense_inference.cpp:17:10: fatal error: 'numpy/ndarrayobject.h' file not found #include <numpy/ndarrayobject.h> ^ 1 error generated. make[1]: *** [dense_inference.o] Error 1 make: *** [all] Error 2 ############################

I put the path /usr/local/lib/python2.7/dist-packages/numpy/core/include on CFLAGS: $ export CFLAGS="-I /usr/local/lib/python2.7/dist-packages/numpy/core/include $CGLAGS” and also PYTHON_INCLUDE and PATH and I also modified setup.py and added :

include_dirs=[numpy.get_include()]

But nothing seems to work. Please help.

arthitag avatar Jan 15 '18 22:01 arthitag

Hi, I run into the same problem as you, and I solved it with

cp -r /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy /usr/local/include/ or in my ubuntu i run cp -r /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy /usr/local/include/

moliq1 avatar Apr 13 '18 03:04 moliq1

I couldn't make it to run in mac. At the end, used virtualbox with ubuntu. But also, some part of the code had to be updated for the same. I have updated the codes and instructions in my forked version of this repo. Please go to : https://github.com/soumickmj/DenseInferenceWrapper

soumickmj avatar Sep 30 '19 19:09 soumickmj