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

Installing python3-catkin-pkg uninstalls ros-melodic-desktop packages

asked 2020-04-06 01:20:01 -0600

Johann gravatar image

updated 2020-04-06 03:43:12 -0600

gvdhoorn gravatar image

This it the complementary behaviour to question #q345875: "Installing ros-melodic-desktop uninstalls python3-catkin-pkg".

I'm on Ubuntu 18.04 bionic, ROS melodic, Python 3.6 installed but Python 2 is the default on my system.

I tried sudo apt install python3-catkin-pkg as suggested in a github forum and elsewhere, and it succeeded by uninstalling apparently all the ROS packages that depend on Python 2!

I now realise python-catkin-pkg and python3-catkin-pkg conflict as explained in the answer to question above but, gosh, did it have to uninstall most of the ROS packages?

Perhaps the suggestion in Tutorial 1 "Installing and Configuring Your ROS Environment" should not suggest to gullible beginners to catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3 without explaining the danger if they try to make it work. :)

edit retag flag offensive close merge delete

Comments

did it have to uninstall most of the ROS packages?

actually, it's of course the package manager which does all of that. It's not the package itself.

Effect is the same of course.

Perhaps the suggestion in Tutorial 1 "Installing and Configuring Your ROS Environment"

could you please always link to tutorials or pages you refer to? Thanks.

gvdhoorn gravatar image gvdhoorn  ( 2020-04-06 03:43:57 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-12-28 10:12:42 -0600

everything gravatar image

This problem of conflicting python2 and python3 seems to be linked with https://stackoverflow.com/questions/6... and / or https://robotics.stackexchange.com/qu....

edit flag offensive delete link more

Comments

2

Thank you; more guidance to wade through :) I stand by my suggestion that the Tutorial should at least warn that ROS packages may (unexpectedly) be uninstalled.

Johann gravatar image Johann  ( 2021-01-27 16:55:40 -0600 )edit

Question Tools

Stats

Asked: 2020-04-06 01:18:12 -0600

Seen: 2,412 times

Last updated: Apr 06 '20