load_config_py2 problem in 4.0.1

asked 2019-03-15 19:58:02 -0600

Used the following build config on Ubuntu 14.04.

cmake -G "Unix Makefiles" -D CMAKE_CXX_COMPILER=/usr/bin/g++ CMAKE_C_COMPILER=/usr/bin/gcc -D CMAKE_BUILD_TYPE=Release -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_OPENGL=ON -D INSTALL_TESTS=ON -D BUILD_SHARED_LIBS=ON -D ENABLE_FAST_MATH=ON -DINSTALL_TESTS=ON -D WITH_FFMPEG=ON -D WITH_TBB=ON -D WITH_IPP=ON -DBUILD_NEW_PYTHON_SUPPORT=ON -DCPU_DISPATCH=SSE4_1,SSE4_2,AVX,AVX2,FP16 -DWITH_LAPACK=ON -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules .. > cmake.log 2>&1

After make install, was not able to run the following python -c "import sys;print (sys.path); import cv2; print cv2.__version__"

Throws the following error.

ImportError: No module named load_config_py2

As an aside, the cv2/__init__.py in 4.0.1 looks hugely different from the one in 4.0.0.

edit retag flag offensive close merge delete