ORB_SLAM2 icon indicating copy to clipboard operation
ORB_SLAM2 copied to clipboard

roslib.manifest wrong

Open syp1997 opened this issue 5 years ago • 14 comments

When I Execute build_ros.sh, the error like this. How can I solve this problem? Thanks very much!

[rosbuild] Building package ORB_SLAM2 [rosbuild] Error from syntax check of ORB_SLAM2/manifest.xml Traceback (most recent call last): File "", line 1, in ImportError: No module named roslib.manifest CMake Error at /opt/ros/indigo/share/ros/core/rosbuild/private.cmake:78 (message): [rosbuild] Syntax check of ORB_SLAM2/manifest.xml failed; aborting Call Stack (most recent call first): /opt/ros/indigo/share/ros/core/rosbuild/public.cmake:174 (_rosbuild_check_manifest) CMakeLists.txt:4 (rosbuild_init)

-- Configuring incomplete, errors occurred!

syp1997 avatar Apr 30 '19 12:04 syp1997

hellow, have your problem fixed? I meet the same trouble, could you give me some advise?

Vct0ry avatar Dec 08 '19 09:12 Vct0ry

hello buddy, I meet the same problem too, have your fixed it yet?

disini avatar Apr 07 '20 03:04 disini

Hello everyone, I have the same problem too. Is there a solution?

EmreOzkose avatar Jun 15 '20 21:06 EmreOzkose

I had the same problem. Somehow roslib couldn't be found even after all the environment variables were set properly. (rospack find roslib). This is a core ROS package so as a lazy solution I just reinstalled ROS and everything started to build properly.

karnikram avatar Aug 24 '20 09:08 karnikram

Hi, have you resolve this error?

RenyunLi0116 avatar Apr 29 '21 07:04 RenyunLi0116

I fond that I can import roslib in the terminal, so I find the python interpreter. Then you need to go to this file /opt/ros/noetic/share/ros/core/rosbuild/private.cmake, about line 67 COMMAND ${PYTHON_EXECUTABLE} -c "import roslib.manifest; roslib.manifest.parse_file('manifest.xml')", just change ${PYTHON_EXECUTABLE} with /usr/bin/python3.8, then it may work.

JsutCheng avatar Dec 13 '21 04:12 JsutCheng

收到,谢谢!——自动回复。

Vct0ry avatar Dec 13 '21 04:12 Vct0ry

我在编译DS_SLAM时,也遇到了同样的问题。重装了ROS,没有用。按照楼上修改了private.cmake,也不行。系统为Ubuntu20.04。

fennushapaozi avatar Mar 10 '22 12:03 fennushapaozi

收到,谢谢!——自动回复。

Vct0ry avatar Mar 10 '22 12:03 Vct0ry

private.cmake

请问您解决这个问题了吗

tao-min00 avatar Mar 17 '22 00:03 tao-min00

它的问题是python要导入的包找不到,这个包是在roslib文件夹下的manifest.py文件。所以只需要在.bashrc文件中添加环境变量PYTHONPATH="${PYTHONPATH}:/opt/ros/noetic/lib/python3/dist-packages" export PYTHONPATH 即可(我的ROS版本是noetic)。

fennushapaozi avatar Mar 17 '22 01:03 fennushapaozi

它的问题是python要导入的包找不到,这个包是在roslib文件夹下的manifest.py文件。所以只需要在.bashrc文件中添加环境变量PYTHONPATH="${PYTHONPATH}:/opt/ros/noetic/lib/python3/dist-packages" export PYTHONPATH 即可(我的ROS版本是noetic)。

需要按安装位置改动dist_packages路径

GuoJeffrey avatar Sep 19 '22 08:09 GuoJeffrey

收到,谢谢!——自动回复。

Vct0ry avatar Sep 19 '22 08:09 Vct0ry

收到,谢谢!——自动回复。

Vct0ry avatar Oct 11 '22 07:10 Vct0ry