Ask Your Question
1

[rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update'

asked 2020-05-29 10:56:02 -0600

kadhirus99 gravatar image

Hi all. I installed ROS (melodic)/Gazebo using the instructions and a shell file found here. I am new to this field, so I was going through http://wiki.ros.org/ROS/Tutorials/, and in section 5.1 of the Creating a Package page, there was a step that told me to run $ rospack depends1 beginner_tutorials.

When I did that, I got the error from the title:

[rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update'

I followed what it said and tried sudo rosdep init and I got sudo: rosdep: command not found and when I did rosdep update I got Command 'rosdep' not found, but can be installed with: sudo apt install python-rosdep2.

Running the install command overwrites packages installed by the shell file, and that causes a lot more errors when trying to build the file, so I overwrote those changes by installing from the shell file again. My question is, how do I fix this error without installing python-rosdep2, because that is obviously causing problems.

I'm pretty new to this field, so I don't know if this is sufficient information, but please let me know if you can help me out.

edit retag flag offensive close merge delete

Comments

Same issue in ROS Noetic. And installing python-rosdep2 broke a bunch of other things

hillripper21 gravatar image hillripper21  ( 2020-06-01 20:20:21 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
2

answered 2020-12-04 14:10:22 -0600

mrsofta gravatar image

updated 2020-12-06 04:29:27 -0600

Using following order I solved for Ubuntu 20.04 and ROS Noetic my problem after getting:

[rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update'

1:

$ rosdep update

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

sudo apt install python3-rosdep2

2:

$ sudo apt install python3-rosdep2

0 upgraded, 1 newly installed, 150 to remove and 301 not upgraded. Need to get 52.8 kB of archives. After this operation, 89.6 MB disk space will be freed. Do you want to continue? [Y/n] y

3:

$ rosdep update

4:

$ sudo apt install ros-noetic-desktop-full

0 upgraded, 150 newly installed, 1 to remove and 301 not upgraded. Need to get 16.8 MB of archives. After this operation, 89.6 MB of additional disk space will be used. Do you want to continue? [Y/n] y

Hope it helps.

edit flag offensive delete link more

Comments

Thank you, I had a similar issue and this fixed it

gniu_GT gravatar image gniu_GT  ( 2020-12-15 14:28:27 -0600 )edit

Thanks a lot! I also had the same probelm. After following your steps, the problem has been solved.

Guenter X. Qiu gravatar image Guenter X. Qiu  ( 2020-12-26 17:00:15 -0600 )edit
2

answered 2020-07-07 04:29:09 -0600

rohitn gravatar image

try 'sudo apt-get install python3-rosdep'. This should fix the issue

edit flag offensive delete link more

Comments

This didn't fix the issue on ubuntu 20.04, noetic

traemand gravatar image traemand  ( 2020-11-27 07:32:57 -0600 )edit

What seemed to fix my issue was running $ rosdep update , as suggested by Dirk Thomas in: https://answers.ros.org/question/6565...

traemand gravatar image traemand  ( 2020-11-27 07:36:39 -0600 )edit
0

answered 2020-07-08 18:01:42 -0600

130s gravatar image

updated 2020-11-27 10:10:21 -0600

Follow the official wiki (you're on ubuntu 18.04, so follow the tutorial for ROS Melodic, which targets Ubuntu 18.04 among others). There you see python-rosdep, without the trailing "2".

Btw, I totally understand where the confusion about python-rosdep2 came from. The following is what I found:

Package: python-rosdep
Priority: optional
Section: python
Installed-Size: 21
Maintainer: Tully Foote, Ken Conley <tfoote@osrfoundation.org>
Architecture: all
Version: 0.19.0-1
Depends: python (<< 2.8), python (>= 2.7), python-catkin-pkg, python-rosdistro, python-rospkg, python-yaml, python:any, python-rosdep-modules (>= 0.19.0)
Conflicts: python-rosdep2, python3-rosdep, python3-rosdep2
Filename: pool/main/p/python-rosdep/python-rosdep_0.19.0-1_all.deb
SHA512: c9b816bd1eb96b068d67e4cf877ab7c22ecacf00ece5e4f525052ceb2eb0ffc86e334259d29c84afa21318e33d291c2cceb6bd71b14b2b424c75c47288629c83
Size: 3216
SHA256: 1f8cf18fc1a54a95dfb0c44a31f99053a0bd82ab11b4515df48fd2ba02fde4d4
SHA1: aa835b94c89afa1724855ba25e727a2580bcbfb3
MD5sum: 221684e20ca39200d6ed1f4c8eafb869
Description: rosdep package manager abstraction tool for ROS
 Command-line tool for installing system dependencies on a variety of platforms.

My question to rosdep maintainers, assuming python-rosdep2 was uploaded to packages.ubuntu.com by them but I'm not entirely sure, is why these are done? I guess this may the same discussion discourse.ros.org#10902/, so maybe we should continue on discourse or Github.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2020-05-29 10:56:02 -0600

Seen: 2,954 times

Last updated: Dec 06 '20