You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all, after installing successfully on Ubuntu18.04, I cannot run the test.py code in the python directory - I get the error ModuleNotFoundError: No module named 'pyopengv'
Hi all, after installing successfully on Ubuntu18.04, I cannot run the test.py code in the python directory - I get the error
ModuleNotFoundError: No module named 'pyopengv'
To install I ran:
git clone https://github.com/laurentkneip/opengv --recurse-submodules
sudo apt-get install build-essential
sudo apt-get install cmake
sudo apt-get install cmake libeigen3-dev
cd opengv && mkdir build && cd build && cmake .. -DBUILD_PYTHON=ON -DEIGEN_INCLUDE_DIR:STRING="/home
/a/subterra/video-processing/eigen-3.3.7" && make
The build output is as follows:
-- The CXX compiler identification is GNU 7.5.0 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Eigen: /home/a/subterra/video-processing/eigen-3.3.7 (Required is at least version "2.91.0") -- Found PythonInterp: /usr/bin/python3.6 (found version "3.6.9") -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so -- Performing Test HAS_CPP14_FLAG -- Performing Test HAS_CPP14_FLAG - Success -- pybind11 v2.2.4 -- Performing Test HAS_FLTO -- Performing Test HAS_FLTO - Success -- LTO enabled pythonexecutable/usr/bin/python3.6 -- Configuring done -- Generating done -- Build files have been written to: /home/a/subterra/video-processing/opengv/build Scanning dependencies of target opengv [ 0%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/main.cpp.o [ 1%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gp3p/code.cpp.o [ 2%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gp3p/init.cpp.o [ 3%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gp3p/reductors.cpp.o [ 4%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gp3p/spolynomials.cpp.o [ 5%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/Epnp.cpp.o [ 6%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp1/code.cpp.o [ 6%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp1/init.cpp.o [ 7%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp1/reductors.cpp.o [ 8%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp1/spolynomials.cpp.o [ 9%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp2/code.cpp.o [ 10%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp2/init.cpp.o [ 11%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp2/reductors.cpp.o [ 12%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp2/spolynomials.cpp.o [ 12%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp3/code.cpp.o [ 13%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp3/init.cpp.o [ 14%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp3/reductors.cpp.o [ 15%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp3/spolynomials.cpp.o [ 16%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp4/code.cpp.o [ 17%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp4/init.cpp.o [ 18%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp4/reductors.cpp.o [ 18%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp4/spolynomials.cpp.o [ 19%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp5/code.cpp.o [ 20%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp5/init.cpp.o [ 21%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp5/reductors.cpp.o [ 22%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/gpnp5/spolynomials.cpp.o [ 23%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/upnp2.cpp.o [ 24%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/modules/upnp4.cpp.o [ 25%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/modules/main.cpp.o [ 25%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/modules/fivept_nister/modules.cpp.o [ 26%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/modules/fivept_stewenius/modules.cpp.o [ 27%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/modules/fivept_kneip/code.cpp.o [ 28%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/modules/fivept_kneip/init.cpp.o [ 29%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/modules/fivept_kneip/reductors.cpp.o [ 30%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/modules/fivept_kneip/spolynomials.cpp.o [ 31%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/modules/sixpt/modules2.cpp.o [ 31%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/modules/eigensolver/modules.cpp.o [ 32%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/modules/ge/modules.cpp.o [ 33%] Building CXX object CMakeFiles/opengv.dir/src/math/cayley.cpp.o [ 34%] Building CXX object CMakeFiles/opengv.dir/src/math/quaternion.cpp.o [ 35%] Building CXX object CMakeFiles/opengv.dir/src/math/arun.cpp.o [ 36%] Building CXX object CMakeFiles/opengv.dir/src/math/Sturm.cpp.o [ 37%] Building CXX object CMakeFiles/opengv.dir/src/math/roots.cpp.o [ 37%] Building CXX object CMakeFiles/opengv.dir/src/math/gauss_jordan.cpp.o [ 38%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/methods.cpp.o [ 39%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/CentralAbsoluteAdapter.cpp.o [ 40%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/NoncentralAbsoluteAdapter.cpp.o [ 41%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/NoncentralAbsoluteMultiAdapter.cpp.o [ 42%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/methods.cpp.o [ 43%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/CentralRelativeAdapter.cpp.o [ 43%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/CentralRelativeWeightingAdapter.cpp.o [ 44%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/NoncentralRelativeAdapter.cpp.o [ 45%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/CentralRelativeMultiAdapter.cpp.o [ 46%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/NoncentralRelativeMultiAdapter.cpp.o [ 47%] Building CXX object CMakeFiles/opengv.dir/src/triangulation/methods.cpp.o [ 48%] Building CXX object CMakeFiles/opengv.dir/src/point_cloud/methods.cpp.o [ 49%] Building CXX object CMakeFiles/opengv.dir/src/point_cloud/PointCloudAdapter.cpp.o [ 50%] Building CXX object CMakeFiles/opengv.dir/src/sac_problems/absolute_pose/AbsolutePoseSacProblem.cpp.o [ 50%] Building CXX object CMakeFiles/opengv.dir/src/sac_problems/absolute_pose/MultiNoncentralAbsolutePoseSacProblem.cpp.o [ 51%] Building CXX object CMakeFiles/opengv.dir/src/sac_problems/relative_pose/CentralRelativePoseSacProblem.cpp.o [ 52%] Building CXX object CMakeFiles/opengv.dir/src/sac_problems/relative_pose/NoncentralRelativePoseSacProblem.cpp.o [ 53%] Building CXX object CMakeFiles/opengv.dir/src/sac_problems/relative_pose/RotationOnlySacProblem.cpp.o [ 54%] Building CXX object CMakeFiles/opengv.dir/src/sac_problems/relative_pose/TranslationOnlySacProblem.cpp.o [ 55%] Building CXX object CMakeFiles/opengv.dir/src/sac_problems/relative_pose/EigensolverSacProblem.cpp.o [ 56%] Building CXX object CMakeFiles/opengv.dir/src/sac_problems/relative_pose/MultiCentralRelativePoseSacProblem.cpp.o [ 56%] Building CXX object CMakeFiles/opengv.dir/src/sac_problems/relative_pose/MultiNoncentralRelativePoseSacProblem.cpp.o [ 57%] Building CXX object CMakeFiles/opengv.dir/src/sac_problems/point_cloud/PointCloudSacProblem.cpp.o [ 58%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/MACentralAbsolute.cpp.o [ 59%] Building CXX object CMakeFiles/opengv.dir/src/absolute_pose/MANoncentralAbsolute.cpp.o [ 60%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/MACentralRelative.cpp.o [ 61%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/MANoncentralRelative.cpp.o [ 62%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/MANoncentralRelativeMulti.cpp.o [ 62%] Building CXX object CMakeFiles/opengv.dir/src/point_cloud/MAPointCloud.cpp.o [ 63%] Linking CXX static library lib/libopengv.a [ 63%] Built target opengv Scanning dependencies of target random_generators [ 64%] Building CXX object CMakeFiles/random_generators.dir/test/random_generators.cpp.o [ 65%] Building CXX object CMakeFiles/random_generators.dir/test/experiment_helpers.cpp.o [ 66%] Building CXX object CMakeFiles/random_generators.dir/test/time_measurement.cpp.o [ 66%] Linking CXX static library lib/librandom_generators.a [ 66%] Built target random_generators Scanning dependencies of target test_point_cloud_sac [ 67%] Building CXX object CMakeFiles/test_point_cloud_sac.dir/test/test_point_cloud_sac.cpp.o [ 68%] Linking CXX executable bin/test_point_cloud_sac [ 68%] Built target test_point_cloud_sac Scanning dependencies of target test_point_cloud [ 69%] Building CXX object CMakeFiles/test_point_cloud.dir/test/test_point_cloud.cpp.o [ 70%] Linking CXX executable bin/test_point_cloud [ 70%] Built target test_point_cloud Scanning dependencies of target test_eigensolver [ 71%] Building CXX object CMakeFiles/test_eigensolver.dir/test/test_eigensolver.cpp.o [ 71%] Linking CXX executable bin/test_eigensolver [ 71%] Built target test_eigensolver Scanning dependencies of target test_noncentral_absolute_pose_sac [ 72%] Building CXX object CMakeFiles/test_noncentral_absolute_pose_sac.dir/test/test_noncentral_absolute_pose_sac.cpp.o [ 73%] Linking CXX executable bin/test_noncentral_absolute_pose_sac [ 73%] Built target test_noncentral_absolute_pose_sac Scanning dependencies of target test_absolute_pose_sac [ 74%] Building CXX object CMakeFiles/test_absolute_pose_sac.dir/test/test_absolute_pose_sac.cpp.o [ 75%] Linking CXX executable bin/test_absolute_pose_sac [ 75%] Built target test_absolute_pose_sac Scanning dependencies of target test_triangulation [ 76%] Building CXX object CMakeFiles/test_triangulation.dir/test/test_triangulation.cpp.o [ 77%] Linking CXX executable bin/test_triangulation [ 77%] Built target test_triangulation Scanning dependencies of target test_noncentral_absolute_pose [ 77%] Building CXX object CMakeFiles/test_noncentral_absolute_pose.dir/test/test_noncentral_absolute_pose.cpp.o [ 78%] Linking CXX executable bin/test_noncentral_absolute_pose [ 78%] Built target test_noncentral_absolute_pose Scanning dependencies of target test_noncentral_relative_pose_sac [ 79%] Building CXX object CMakeFiles/test_noncentral_relative_pose_sac.dir/test/test_noncentral_relative_pose_sac.cpp.o [ 79%] Linking CXX executable bin/test_noncentral_relative_pose_sac [ 79%] Built target test_noncentral_relative_pose_sac Scanning dependencies of target test_absolute_pose [ 80%] Building CXX object CMakeFiles/test_absolute_pose.dir/test/test_absolute_pose.cpp.o [ 81%] Linking CXX executable bin/test_absolute_pose [ 81%] Built target test_absolute_pose Scanning dependencies of target test_multi_noncentral_absolute_pose_sac [ 82%] Building CXX object CMakeFiles/test_multi_noncentral_absolute_pose_sac.dir/test/test_multi_noncentral_absolute_pose_sac.cpp.o [ 83%] Linking CXX executable bin/test_multi_noncentral_absolute_pose_sac [ 83%] Built target test_multi_noncentral_absolute_pose_sac Scanning dependencies of target test_relative_pose_rotationOnly [ 83%] Building CXX object CMakeFiles/test_relative_pose_rotationOnly.dir/test/test_relative_pose_rotationOnly.cpp.o [ 84%] Linking CXX executable bin/test_relative_pose_rotationOnly [ 84%] Built target test_relative_pose_rotationOnly Scanning dependencies of target test_relative_pose [ 85%] Building CXX object CMakeFiles/test_relative_pose.dir/test/test_relative_pose.cpp.o [ 86%] Linking CXX executable bin/test_relative_pose [ 86%] Built target test_relative_pose Scanning dependencies of target test_noncentral_relative_pose [ 87%] Building CXX object CMakeFiles/test_noncentral_relative_pose.dir/test/test_noncentral_relative_pose.cpp.o [ 88%] Linking CXX executable bin/test_noncentral_relative_pose [ 88%] Built target test_noncentral_relative_pose Scanning dependencies of target test_eigensolver_sac [ 89%] Building CXX object CMakeFiles/test_eigensolver_sac.dir/test/test_eigensolver_sac.cpp.o [ 90%] Linking CXX executable bin/test_eigensolver_sac [ 90%] Built target test_eigensolver_sac Scanning dependencies of target test_relative_pose_rotationOnly_sac [ 91%] Building CXX object CMakeFiles/test_relative_pose_rotationOnly_sac.dir/test/test_relative_pose_rotationOnly_sac.cpp.o [ 92%] Linking CXX executable bin/test_relative_pose_rotationOnly_sac [ 92%] Built target test_relative_pose_rotationOnly_sac Scanning dependencies of target test_Sturm [ 93%] Building CXX object CMakeFiles/test_Sturm.dir/test/test_Sturm.cpp.o [ 94%] Linking CXX executable bin/test_Sturm [ 94%] Built target test_Sturm Scanning dependencies of target test_relative_pose_sac [ 95%] Building CXX object CMakeFiles/test_relative_pose_sac.dir/test/test_relative_pose_sac.cpp.o [ 96%] Linking CXX executable bin/test_relative_pose_sac [ 96%] Built target test_relative_pose_sac Scanning dependencies of target test_multi_noncentral_relative_pose_sac [ 97%] Building CXX object CMakeFiles/test_multi_noncentral_relative_pose_sac.dir/test/test_multi_noncentral_relative_pose_sac.cpp.o [ 98%] Linking CXX executable bin/test_multi_noncentral_relative_pose_sac [ 98%] Built target test_multi_noncentral_relative_pose_sac Scanning dependencies of target pyopengv [ 99%] Building CXX object python/CMakeFiles/pyopengv.dir/pyopengv.cpp.o [100%] Linking CXX shared module ../lib/pyopengv.cpython-36m-x86_64-linux-gnu.so [100%] Built target pyopengv
The text was updated successfully, but these errors were encountered: