InstaBoost-pypi icon indicating copy to clipboard operation
InstaBoost-pypi copied to clipboard

opencv-mat install error

Open universea opened this issue 5 years ago • 1 comments

Building wheel for opencv-mat (setup.py) ... error ERROR: Command errored out with exit status 1: command: /home/airobot/.conda/envs/iboost/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tg8hm6j5/opencv-mat/setup.py'"'"'; file='"'"'/tmp/pip-install-tg8hm6j5/opencv-mat/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-wz7mt_93 --python-tag cp35 cwd: /tmp/pip-install-tg8hm6j5/opencv-mat/ Complete output (20 lines): running bdist_wheel running build running build_ext building 'opencv_mat' extension creating build creating build/temp.linux-x86_64-3.5 gcc -pthread -B /home/airobot/.conda/envs/iboost/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/airobot/.conda/envs/iboost/lib/python3.5/site-packages/numpy/core/include -I/usr/include/opencv2 -I/home/airobot/.conda/envs/iboost/include/python3.5m -c opencv_mat.cpp -o build/temp.linux-x86_64-3.5/opencv_mat.o cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/airobot/.conda/envs/iboost/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830:0, from /home/airobot/.conda/envs/iboost/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:12, from /home/airobot/.conda/envs/iboost/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4, from opencv_mat.cpp:638: /home/airobot/.conda/envs/iboost/lib/python3.5/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 "
^~~~~~~ opencv_mat.cpp:640:10: fatal error: core/core.hpp: No such file or directory #include "core/core.hpp" ^~~~~~~~~~~~~~~ compilation terminated. error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for opencv-mat Running setup.py clean for opencv-mat Successfully built instaboost pycocotools Failed to build opencv-mat Installing collected packages: opencv-python, scipy, pycocotools, pyparsing, kiwisolver, six, python-dateutil, cycler, matplotlib, Pillow, decorator, networkx, PyWavelets, imageio, scikit-image, opencv-mat, instaboost Running setup.py install for opencv-mat ... error ERROR: Command errored out with exit status 1: command: /home/airobot/.conda/envs/iboost/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tg8hm6j5/opencv-mat/setup.py'"'"'; file='"'"'/tmp/pip-install-tg8hm6j5/opencv-mat/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-912u7vus/install-record.txt --single-version-externally-managed --compile cwd: /tmp/pip-install-tg8hm6j5/opencv-mat/ Complete output (20 lines): running install running build running build_ext building 'opencv_mat' extension creating build creating build/temp.linux-x86_64-3.5 gcc -pthread -B /home/airobot/.conda/envs/iboost/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/airobot/.conda/envs/iboost/lib/python3.5/site-packages/numpy/core/include -I/usr/include/opencv2 -I/home/airobot/.conda/envs/iboost/include/python3.5m -c opencv_mat.cpp -o build/temp.linux-x86_64-3.5/opencv_mat.o cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/airobot/.conda/envs/iboost/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830:0, from /home/airobot/.conda/envs/iboost/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:12, from /home/airobot/.conda/envs/iboost/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4, from opencv_mat.cpp:638: /home/airobot/.conda/envs/iboost/lib/python3.5/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 "
^~~~~~~ opencv_mat.cpp:640:10: fatal error: core/core.hpp: No such file or directory #include "core/core.hpp" ^~~~~~~~~~~~~~~ compilation terminated. error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /home/airobot/.conda/envs/iboost/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tg8hm6j5/opencv-mat/setup.py'"'"'; file='"'"'/tmp/pip-install-tg8hm6j5/opencv-mat/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-912u7vus/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

universea avatar Aug 28 '19 01:08 universea

install opencv-mat from source https://github.com/GothicAi/cython-global-matting

zhuanxuhit avatar Aug 31 '19 02:08 zhuanxuhit