Open jtchilders opened 2 years ago
@jtchilders, I got the following error:
Scanning dependencies of target setup.py
[ 3%] Copying /data/code13/pptk/setup.py to /data/code13/pptk/build
[ 3%] Built target setup.py
Scanning dependencies of target LICENSE
[ 6%] Copying /data/code13/pptk/LICENSE to /data/code13/pptk/build
[ 6%] Built target LICENSE
Scanning dependencies of target pptk.__init__.py
[ 10%] Copying /data/code13/pptk/pptk/__init__.py to /data/code13/pptk/build/pptk
[ 10%] Built target pptk.__init__.py
Scanning dependencies of target pptk._add_path.py
[ 13%] Copying /data/code13/pptk/pptk/_add_path.py to /data/code13/pptk/build/pptk
[ 13%] Built target pptk._add_path.py
Scanning dependencies of target kdtree
[ 17%] Building CXX object pptk/kdtree/CMakeFiles/kdtree.dir/kdtree_wrapper.cpp.o
In file included from /root/anaconda3/envs/mvtorchenv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940:0,
from /root/anaconda3/envs/mvtorchenv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /root/anaconda3/envs/mvtorchenv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,
from /data/code13/pptk/pptk/kdtree/../include/python_util.h:7,
from /data/code13/pptk/pptk/kdtree/kdtree_wrapper.cpp:4:
/root/anaconda3/envs/mvtorchenv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with " \
^~~~~~~
In file included from /data/code13/pptk/pptk/kdtree/src/kdtree-impl.h:18:0,
from /data/code13/pptk/pptk/kdtree/src/kdtree.h:254,
from /data/code13/pptk/pptk/kdtree/kdtree_wrapper.cpp:3:
/root/anaconda3/envs/mvtorchenv/include/tbb/task.h:21:139: note: #pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.
#pragma message("TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.")
^
In file included from /data/code13/pptk/pptk/kdtree/src/kdtree-impl.h:19:0,
from /data/code13/pptk/pptk/kdtree/src/kdtree.h:254,
from /data/code13/pptk/pptk/kdtree/kdtree_wrapper.cpp:3:
/root/anaconda3/envs/mvtorchenv/include/tbb/task_scheduler_init.h:21:154: note: #pragma message: TBB Warning: tbb/task_scheduler_init.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.
essage("TBB Warning: tbb/task_scheduler_init.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.")
^
make[2]: *** No rule to make target '/root/anaconda3/envs/mvtorchenv/lib/libtbb.dylib', needed by 'pptk/kdtree/kdtree.so'. Stop.
CMakeFiles/Makefile2:272: recipe for target 'pptk/kdtree/CMakeFiles/kdtree.dir/all' failed
make[1]: *** [pptk/kdtree/CMakeFiles/kdtree.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Any hints to solve this issue?
Thanks~
It took me a while to figure this out so I just wanted to place this here for documentation:
If you make a miniconda installation on your mac, in my case with Python 3.8.3 and all these modules:
some of these packages aren't necessary for
pptk
(tensorflow
for example). Some key packages wereThen you can clone the repo:
Now you need to build the wheel and things have changed so you need to edit the
setup.py
in the build directory so that the top of the file looks like this:Then you can build and install the wheel:
Done.