Ubuntu 16.04 python2.5升级到python3.7之后,ROS工作空间下编译报错:ModuleNotFoundError: No module named 'lsb_release' 的解决办法:
报错内容
ModuleNotFoundError: No module named 'lsb_release'
CMake Error at /opt/ros/kinetic/share/catkin/cmake/platform/lsb.cmake:21 (string):
string no output variable specified
Call Stack (most recent call first):
/opt/ros/kinetic/share/catkin/cmake/all.cmake:164 (include)
/opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:20 (include)
CMakeLists.txt:56 (find_package)
错误原因
升级之后,lsb_release文件没有被覆盖
解决办法
$ lsb_release -a # 使用命令查看报错详情
Traceback (most recent call last):
File "/usr/bin/lsb_release", line 25, in <module