ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
7

Problems with catkin with ros noetic

asked 2020-06-21 10:41:21 -0500

Davide_970 gravatar image

updated 2020-06-22 03:06:42 -0500

gvdhoorn gravatar image

Hello everyone, I updated ubuntu from 18.04 version to 20.04 version and consequently I installed ros noetic.

The problem is: I must install some files running a .sh file, one of these files is python-catkin-tools, but I read that ros noetic doesn't work with python 2, so in the .sh file I changed that line with python3-catkin-tools, but when the script is running, it stops with this error:

pkg_resources.DistributionNotFound: The 'osrf-pycommon>0.1.1' distribution was not found and is required by catkin-tools.

If it can help you with the answer, the last line of .sh file is "catkin build"

Is there a fix with which I can avoid this error? Or I must reinstall ubuntu 18.04 with ros melodic?

edit retag flag offensive close merge delete

Comments

Thanks I'll try

Davide_970 gravatar image Davide_970  ( 2020-06-22 08:10:14 -0500 )edit

Ok I installed catkin_tools with

with pip3 install --user git+https://github.com/catkin/catkin_tools.git

But now the error is:

catkin: command not found

I also tried with "catkin_make" instead "catkin build", but it's the same problem

Davide_970 gravatar image Davide_970  ( 2020-06-22 08:47:47 -0500 )edit

Try opening a new shell/terminal.

Note: this is no longer really a ROS/Catkin problem, as installing packages using pip into your $HOME with --user is normal practice with pip.

gvdhoorn gravatar image gvdhoorn  ( 2020-06-22 08:51:16 -0500 )edit

I tried with a new terminal but it's the same...

Davide_970 gravatar image Davide_970  ( 2020-06-22 08:53:33 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
3

answered 2020-06-22 03:08:44 -0500

gvdhoorn gravatar image

Please see catkin/catkin_tools#594. This is a known issue.

And see #q353113 for a work-around (note: this is really a work-around, not a fix).

edit flag offensive delete link more
11

answered 2020-07-27 05:46:12 -0500

azazdeaz gravatar image

This suggestion solved the issue for me: https://github.com/catkin/catkin_tool...

I installed python3-catkin-tools and then :

sudo apt install python3-catkin-lint python3-pip
pip3 install osrf-pycommon
edit flag offensive delete link more

Comments

1

This worked for me! Thanks a ton !

onlynithin gravatar image onlynithin  ( 2021-05-01 08:29:41 -0500 )edit

This answer is popular, as we can see from the upvotes, but for future readers: please be aware that installing system dependencies using pip3 is not recommended on systems with package managers (such as Ubuntu, Debian, Fedora, etc).

An immediate disadvantage is that you won't be notified of updates. This will easily create situations where your pip3 installed version of osrf-pycommon starts to get out-of-date and (for instance) catkin_tools becoming incompatible with it. ROS Answers is full of Q&As which deal with the fall-out of people using pip to install such dependencies.

The apt version, which you can install just as easily, see #q353113, does not have that problem.

gvdhoorn gravatar image gvdhoorn  ( 2021-07-14 09:58:50 -0500 )edit

Question Tools

3 followers

Stats

Asked: 2020-06-21 10:36:56 -0500

Seen: 10,253 times

Last updated: Jul 27 '20