can not run ROS after update from Ubuntu 18.04 to 20.04

asked 2021-07-29 08:17:52 -0500

nic215 gravatar image

updated 2021-07-29 09:29:06 -0500

gvdhoorn gravatar image

Hello Guys, I have updated my Ubuntu from 18.04 to 20.04, and reinstall ROS(melodic to noetic). When I finish the Install, I can not run the ROS anymore. when I run roscore, the following error occurs:

Traceback (most recent call last):  
File "/opt/ros/noetic/bin/roscore", line 37, in <module>
    from roslaunch.nodeprocess import DEFAULT_TIMEOUT_SIGINT,
DEFAULT_TIMEOUT_SIGTERM
File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/__init__.py", line 51, in <module>
    from . import core as roslaunch_core
File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/core.py", line 232, in <module>
    get_ros_root         = rospkg.get_ros_root
AttributeError: module 'rospkg' has no attribute 'get_ros_root'

Any ideas? Thank!!!

edit retag flag offensive close merge delete

Comments

I would uninstall everything and install ROS again... it takes some time, but it should work. Remember to purge during the uninstallation everything. Look here

Andromeda gravatar image Andromeda  ( 2021-07-30 15:07:01 -0500 )edit