ROS basics in 5 days part 1, Catkin build error, can't compile my package

This error occurs after doing the catkin build call.
even tried with catkin make but the same happens.

“Traceback (most recent call last):
File “/usr/bin/catkin”, line 6, in
from pkg_resources import load_entry_point
File “/usr/local/lib/python3.8/dist-packages/pkg_resources/”, line 3243, in
def _initialize_master_working_set():
File “/usr/local/lib/python3.8/dist-packages/pkg_resources/”, line 3226, in _call_aside
f(*args, **kwargs)
File “/usr/local/lib/python3.8/dist-packages/pkg_resources/”, line 3255, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File “/usr/local/lib/python3.8/dist-packages/pkg_resources/”, line 568, in _build_master
File “/usr/local/lib/python3.8/dist-packages/pkg_resources/”, line 886, in require
needed = self.resolve(parse_requirements(requirements))
File “/usr/local/lib/python3.8/dist-packages/pkg_resources/”, line 772, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘osrf-pycommon>0.1.1’ distribution was not found and is required by catkin-tools”

Hello @Anudi ,

Run the following commands to install the missing packages:

sudo apt update
sudo apt install -y python3-osrf-pycommon


1 Like