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

Missing packages after installing rosdep based on python3-rosdep2 in Noetic

asked 2020-05-23 14:35:08 -0600

Pourya gravatar image

updated 2020-05-24 04:50:29 -0600

gvdhoorn gravatar image

After the installation of Noetic on ubuntu 20.04, I started to redo the tutorials. When I wanted to see the dependencies of beginner_tutorials package, I couldn't use the #rosdep command!

pourya@pourya:~/catkin_ws$ rospack depends beginner_tutorials 
[rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update'

pourya@pourya:~/catkin_ws$ rosdep init
Command 'rosdep' not found, but can be installed with:

sudo apt install python3-rosdep2

pourya@pourya:~/catkin_ws$ sudo apt install python3-rosdep2
pourya@pourya:~/catkin_ws$ rosdep init

ERROR: Rosdep experienced an error: The read operation timed out
Please go to the rosdep page [1] and file a bug report with the stack trace below.
[1] : http://www.ros.org/wiki/rosdep

rosdep version: 0.18.0

Traceback (most recent call last):
  File '/usr/lib/python3/dist-packages/rosdep2/main.py', line 144, in rosdep_main
    exit_code = _rosdep_main(args)
  File '/usr/lib/python3/dist-packages/rosdep2/main.py', line 426, in _rosdep_main
    return _no_args_handler(command, parser, options, args)
  File '/usr/lib/python3/dist-packages/rosdep2/main.py', line 435, in _no_args_handler
    return command_handlers[command](options)
  File '/usr/lib/python3/dist-packages/rosdep2/main.py', line 579, in command_init
    data = download_default_sources_list()
  File '/usr/lib/python3/dist-packages/rosdep2/sources_list.py', line 331, in download_default_sources_list
    f = urlopen(url, timeout=DOWNLOAD_TIMEOUT)
  File '/usr/lib/python3.8/urllib/request.py', line 222, in urlopen
    return opener.open(url, data, timeout)
  File '/usr/lib/python3.8/urllib/request.py', line 525, in open
    response = self._open(req, data)
  File '/usr/lib/python3.8/urllib/request.py', line 542, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File '/usr/lib/python3.8/urllib/request.py', line 502, in _call_chain
    result = func(*args)
  File '/usr/lib/python3.8/urllib/request.py', line 1369, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File '/usr/lib/python3.8/urllib/request.py', line 1330, in do_open
    r = h.getresponse()
  File '/usr/lib/python3.8/http/client.py', line 1332, in getresponse
    response.begin()
  File '/usr/lib/python3.8/http/client.py', line 303, in begin
    version, status, reason = self._read_status()
  File '/usr/lib/python3.8/http/client.py', line 264, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), 'iso-8859-1')
  File '/usr/lib/python3.8/socket.py', line 669, in readinto
    return self._sock.recv_into(b)
  File '/usr/lib/python3.8/ssl.py', line 1241, in recv_into
    return self.read(nbytes, buffer)
  File '/usr/lib/python3.8/ssl.py', line 1099, in read
    return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out


pourya@pourya:~/catkin_ws$ rosdep init
ERROR: default sources list file already exists:
    /etc/ros/rosdep/sources.list.d/20-default.list
Please delete if you wish to re-initialize

Regarding the message in the terminal, I installed the rosdep. Now, it seems a lots of packages are missed such as rospy and ...

pourya@pourya:~/catkin_ws/src$ catkin_create_pkg beginner_tutorials rospython roscpp 
Created file beginner_tutorials/package.xml
Created file beginner_tutorials/CMakeLists.txt
Created folder beginner_tutorials/include/beginner_tutorials
Created folder beginner_tutorials/src
Successfully created files in /home/pourya/catkin_ws ...
(more)
edit retag flag offensive close merge delete

Comments

2

I've removed the # from the question title.

This is not twitter.

gvdhoorn gravatar image gvdhoorn  ( 2020-05-24 04:47:42 -0600 )edit

2 Answers

Sort by » oldest newest most voted
9

answered 2020-05-23 14:49:39 -0600

sloretz gravatar image

python3-rosdep2 Command 'rosdep' not found, but can be installed with:

sudo apt install python3-rosdep2

Ah that's awkward. The package you actually want to install is python3-rosdep. The package python3-rosdep2 is a (possibly incompatibly) version that comes from upstream Debian packages. So first remove python3-rosdep2 and install python3-rosdep.

catkin_create_pkg beginner_tutorials rospython roscpp

I think there might be a typo here; it should be rospy instead of rospython. Where did this command come from?

edit flag offensive delete link more

Comments

I also destroyed my installation by getting python3-rosdep2. The reason is that this is the package that's suggested by Ubuntu:

$ rosdep update

Command 'rosdep' not found, but can be installed with:

sudo apt install python3-rosdep2

As long as I stick to the correct rosdep package everything is fine, so thanks for the answer.

gaya gravatar image gaya  ( 2020-05-23 15:14:40 -0600 )edit

Thank you. That's right. Maybe it was a suggestion from Ubuntu and doesn't solve the ROS command missing in Noetic eg. rosdep and rospack

I hope the python3-rosdep will be included in the Noetic updates.

Pourya gravatar image Pourya  ( 2020-05-23 18:34:46 -0600 )edit
2

Bah, another case of “upstream packages” becoming increasingly a problem.

It's really annoying Ubuntu keeps suggesting the upstream packages.

gvdhoorn gravatar image gvdhoorn  ( 2020-05-24 04:32:08 -0600 )edit
Pourya gravatar image Pourya  ( 2020-05-24 14:46:58 -0600 )edit
1

Opened a ticket to talk about one way to solve this https://github.com/ros-infrastructure...

sloretz gravatar image sloretz  ( 2020-05-26 10:55:05 -0600 )edit

Agreed, installling rosdep2 broke a lot of stuff on Ubuntu 20.04, ROS Noetic. Needed to do a fresh install of ROS. Really should be fixed to recommend rosdep and not rosdep2

hillripper21 gravatar image hillripper21  ( 2020-06-03 19:40:17 -0600 )edit

At this point it looks like it's something only Canonical can do, as the suggestions system is largely automated.

As long as the upstream version (ie: rosdep2) gets found by that tool first, it's going to recommend installing it.

gvdhoorn gravatar image gvdhoorn  ( 2020-06-04 01:51:43 -0600 )edit
2

answered 2020-05-23 19:10:25 -0600

wintermute gravatar image

Hello,

In the install documentation for noetic, it does not have the rosdep step, like in the ohter installs.

If you install python3-rosdep2, it will uninstall ros-noetic-* packages, thats why it destroys installs.

Maybe they got rid of rosdep all together???

edit flag offensive delete link more

Comments

1

I didn't use rosdep in the installation step; but after installation, I went through the beginner tutorials. Yes, it was really a trouble maker issue.

Pourya gravatar image Pourya  ( 2020-05-23 19:14:34 -0600 )edit

i too installed python3-rosdep2 and due to that noetic packages were deleted.. is there any step to revert the change or i will have to install ros-noetics again

shiv gravatar image shiv  ( 2021-06-19 09:56:08 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2020-05-23 14:35:08 -0600

Seen: 12,434 times

Last updated: May 24 '20