koide3 / fast_gicp

A collection of GICP-based fast point cloud registration algorithms
BSD 3-Clause "New" or "Revised" License
1.24k stars 315 forks source link

How to install pygicp in python #53

Open hyxhope opened 3 years ago

hyxhope commented 3 years ago

When I follow the instruction to install pygicp, No errors occur in the installation. But I cannot import pygicp in python. $ python setup.py install running install running bdist_egg running egg_info writing pygicp.egg-info/PKG-INFO writing dependency_links to pygicp.egg-info/dependency_links.txt writing top-level names to pygicp.egg-info/top_level.txt reading manifest file 'pygicp.egg-info/SOURCES.txt' writing manifest file 'pygicp.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_ext -- Using CATKIN_DEVEL_PREFIX: /home/hyx/Code/fast_gicp/build/temp.linux-x86_64-3.7/devel -- Using CMAKE_PREFIX_PATH: /opt/ros/melodic -- This workspace overlays: /opt/ros/melodic -- Found PythonInterp: /home/hyx/miniconda3/envs/rospy3/bin/python (found suitable version "3.7.10", minimum required is "3.7.10") -- Using PYTHON_EXECUTABLE: /home/hyx/miniconda3/envs/rospy3/bin/python -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/hyx/Code/fast_gicp/build/temp.linux-x86_64-3.7/test_results -- Forcing gtest/gmock from source, though one was otherwise available. -- Found gtest sources under '/usr/src/googletest': gtests will be built -- Found gmock sources under '/usr/src/googletest': gmock will be built -- Found PythonInterp: /home/hyx/miniconda3/envs/rospy3/bin/python (found version "3.7.10") -- Using Python nosetests: /usr/bin/nosetests -- catkin 0.7.29 -- BUILD_SHARED_LIBS is on -- Could NOT find ensenso (missing: ENSENSO_LIBRARY ENSENSO_INCLUDE_DIR) WARNING io features related to ensenso will be disabled -- Could NOT find DAVIDSDK (missing: DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR) WARNING io features related to davidSDK will be disabled -- Could NOT find DSSDK (missing: _DSSDK_LIBRARIES) WARNING io features related to dssdk will be disabled WARNING io features related to pcap will be disabled WARNING io features related to png will be disabled -- The imported target "vtkRenderingPythonTkWidgets" references the file "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so" but this file does not exist. Possible reasons include:

-- The imported target "vtk" references the file "/usr/bin/vtk" but this file does not exist. Possible reasons include:

WARNING io features related to libusb-1.0 will be disabled -- Could NOT find ensenso (missing: ENSENSO_LIBRARY ENSENSO_INCLUDE_DIR) WARNING visualization features related to ensenso will be disabled -- Could NOT find DAVIDSDK (missing: DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR) WARNING visualization features related to davidSDK will be disabled -- Could NOT find DSSDK (missing: _DSSDK_LIBRARIES) WARNING visualization features related to dssdk will be disabled -- Could NOT find RSSDK (missing: _RSSDK_LIBRARIES) WARNING visualization features related to rssdk will be disabled -- looking for PCL_COMMON -- looking for PCL_OCTREE -- looking for PCL_IO -- looking for PCL_KDTREE -- looking for PCL_SEARCH -- looking for PCL_SAMPLE_CONSENSUS -- looking for PCL_FILTERS -- looking for PCL_2D -- looking for PCL_GEOMETRY -- looking for PCL_FEATURES -- looking for PCL_ML -- looking for PCL_SEGMENTATION -- looking for PCL_VISUALIZATION -- looking for PCL_SURFACE -- looking for PCL_REGISTRATION -- looking for PCL_KEYPOINTS -- looking for PCL_TRACKING -- looking for PCL_RECOGNITION -- looking for PCL_STEREO -- looking for PCL_APPS -- looking for PCL_IN_HAND_SCANNER -- looking for PCL_MODELER -- looking for PCL_POINT_CLOUD_EDITOR -- looking for PCL_OUTOFCORE -- looking for PCL_PEOPLE -- Found OpenMP_C: -fopenmp
-- Found OpenMP_CXX: -fopenmp
-- Found OpenMP: TRUE
-- pybind11 v2.6.3 dev1 -- Found PythonInterp: /home/hyx/miniconda3/envs/rospy3/bin/python (found suitable version "3.7.10", minimum required is "2") -- Configuring done -- Generating done -- Build files have been written to: /home/hyx/Code/fast_gicp/build/temp.linux-x86_64-3.7 [ 4%] Linking CXX shared library devel/lib/libfast_vgicp_cuda.so [ 48%] Built target fast_vgicp_cuda [ 52%] Linking CXX shared library devel/lib/libfast_gicp.so [ 76%] Built target fast_gicp [ 80%] Linking CXX shared module devel/lib/pygicp.cpython-37m-x86_64-linux-gnu.so [ 84%] Built target pygicp [ 88%] Linking CXX executable devel/lib/fast_gicp/gicp_align [ 92%] Built target gicp_align [ 96%] Linking CXX executable devel/lib/fast_gicp/gicp_kitti [100%] Built target gicp_kitti creating build/bdist.linux-x86_64/egg creating build/bdist.linux-x86_64/egg/EGG-INFO copying pygicp.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying pygicp.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying pygicp.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying pygicp.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO copying pygicp.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO creating 'dist/pygicp-0.0.1-py3.7-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing pygicp-0.0.1-py3.7-linux-x86_64.egg removing '/home/hyx/miniconda3/envs/rospy3/lib/python3.7/site-packages/pygicp-0.0.1-py3.7-linux-x86_64.egg' (and everything under it) creating /home/hyx/miniconda3/envs/rospy3/lib/python3.7/site-packages/pygicp-0.0.1-py3.7-linux-x86_64.egg Extracting pygicp-0.0.1-py3.7-linux-x86_64.egg to /home/hyx/miniconda3/envs/rospy3/lib/python3.7/site-packages pygicp 0.0.1 is already the active version in easy-install.pth

Installed /home/hyx/miniconda3/envs/rospy3/lib/python3.7/site-packages/pygicp-0.0.1-py3.7-linux-x86_64.egg Processing dependencies for pygicp==0.0.1 Finished processing dependencies for pygicp==0.0.1

Then I find pygicp in pip-list, but still cannot import this package. And there is not any python files in the egg file. Please help and tell me how to fix it. Thanks.

koide3 commented 3 years ago

Maybe the library is wrongly installed in your catkin workspace. Try comment out find_package(catkin) in CMakeLists.txt and re-run the installation command.

russellyq commented 3 years ago

Hi even comment out find_package(catkin)

I still cannot the same error when import pygicp