Open syp1997 opened 5 years ago
hellow, have your problem fixed? I meet the same trouble, could you give me some advise?
hello buddy, I meet the same problem too, have your fixed it yet?
Hello everyone, I have the same problem too. Is there a solution?
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.
Hi, have you resolve this error?
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.
收到,谢谢!——自动回复。
我在编译DS_SLAM时,也遇到了同样的问题。重装了ROS,没有用。按照楼上修改了private.cmake,也不行。系统为Ubuntu20.04。
收到,谢谢!——自动回复。
private.cmake
请问您解决这个问题了吗
它的问题是python要导入的包找不到,这个包是在roslib文件夹下的manifest.py文件。所以只需要在.bashrc文件中添加环境变量PYTHONPATH="${PYTHONPATH}:/opt/ros/noetic/lib/python3/dist-packages" export PYTHONPATH 即可(我的ROS版本是noetic)。
它的问题是python要导入的包找不到,这个包是在roslib文件夹下的manifest.py文件。所以只需要在.bashrc文件中添加环境变量PYTHONPATH="${PYTHONPATH}:/opt/ros/noetic/lib/python3/dist-packages" export PYTHONPATH 即可(我的ROS版本是noetic)。
需要按安装位置改动dist_packages路径
收到,谢谢!——自动回复。
收到,谢谢!——自动回复。
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!