The correct package name is python-rosdep
. For some reason this package was not shown to me even though I was configured with the Melodic apt sources, had run apt update
, and had successfully installed dozens of other ROS Melodic packages including python-catkin-tools
a few minutes earlier.
As meager evidence, consider that the ROS apt source was added 2 hours ago, an hour before I asked the question. Yet how would I have known python-rosdep2
exists if apt hadn't told me to install it?
$ ls -lt /etc/apt/sources.list.d/ros-latest.list
-rw-r--r-- 1 root root 51 Jul 23 17:52 /etc/apt/sources.list.d/ros-latest.list
$ date
Thu Jul 23 20:37:20 UTC 2020
I tried to reproduce on a completely fresh Ubuntu 18.04 Docker container but I could not.
So I'll chalk it up to a misconfiguration on my system. I wish I knew what state I got myself into (and it makes me question whether my other packages are up to date as well).
For posterity: Do not install python-rosdep2
, it is outdated, and does not work anymore.
Moreover the version in apt does not work because it is too old. There is a discussion happening on the rosdep issue tracker.
Please don't post your question in multiple places. Especially not without cross referencing them: https://github.com/ros-infrastructure...
This statement is incorrect. You likely just haven't added the ROS apt repository as described in the install instructions: http://wiki.ros.org/melodic/Installat...
Thanks Dirk. The question here is about the documentation, the bugs I filed on the issue tracker are because of an error thrown by the software. They had related root causes after investigation but it seems reasonable that a software error ("a Python exception happens") is not the same question as an installation question ("what is the name of the right Apt package").