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

Rosdep experienced an internal error...

asked 2012-12-20 19:50:37 -0600

barrybear gravatar image

Hey all, I seem to be having this problem whenever using rosdep

ERROR: Rosdep experienced an internal error: [Errno 13] Permission denied: '/home/barrybear/.ros/rosdep/sources.cache/index' Please go to the rosdep page [1] and file a bug report with the stack trace below. [1] : http://www.ros.org/wiki/rosdep

Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 116, in rosdep_main exit_code = _rosdep_main(args) File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 257, in _rosdep_main return _package_args_handler(command, parser, options, args) File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 331, in _package_args_handler lookup = _get_default_RosdepLookup(options) File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 107, in _get_default_RosdepLookup verbose=options.verbose) File "/usr/lib/pymodules/python2.7/rosdep2/sources_list.py", line 501, in create_default sources = load_cached_sources_list(sources_cache_dir=sources_cache_dir, verbose=verbose) File "/usr/lib/pymodules/python2.7/rosdep2/sources_list.py", line 419, in load_cached_sources_list with open(cache_index, 'r') as f: IOError: [Errno 13] Permission denied: '/home/barrybear/.ros/rosdep/sources.cache/index'

Whenever I try to apply sudo rosdep, I'll obtain this error:

ERROR: Rosdep cannot find all required resources to answer your query Missing resource scan_tools

Can anyone please help me with a fix? Thanks :)

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
5

answered 2012-12-21 08:18:41 -0600

Dirk Thomas gravatar image

updated 2012-12-21 09:56:33 -0600

tfoote gravatar image

First you can verify that all urls listed under /etc/ros/rosdep/sources.list.d/ are valid. For me the file 20-default.list looks like:

# os-specific listings first
yaml https://github.com/ros/rosdistro/raw/master/rosdep/osx-homebrew.yaml osx
yaml https://github.com/ros/rosdistro/raw/master/rosdep/gentoo.yaml gentoo
# generic
yaml https://github.com/ros/rosdistro/raw/master/rosdep/base.yaml
yaml https://github.com/ros/rosdistro/raw/master/rosdep/python.yaml
yaml https://github.com/ros/rosdistro/raw/master/rosdep/ruby.yaml
gbpdistro https://github.com/ros/rosdistro/raw/master/releases/fuerte.yaml fuerte
gbpdistro https://github.com/ros/rosdistro/raw/master/releases/groovy.yaml groovy

Second you might have ran "rosdep update" once with sudo and now the file in your home directory are owner my root and not writable by you anymore. You should remove the folder ~/.ros/rosdep and call "rosdep update" again.

edit flag offensive delete link more

Comments

Thats superb! I've got the same listings as the first, and i rm -rf the rosdep dir and call the update again as stated, now it works! ;) Thanks!!

barrybear gravatar image barrybear  ( 2012-12-21 11:54:51 -0600 )edit
1

answered 2016-05-20 11:01:29 -0600

ElizabethA gravatar image

I know there's already an answer that worked, but for me, the permission denied error were resolved by running "sudo rosdep fix-permissions" from my /home directory. Not sure if being in the /home directory matters, though.

edit flag offensive delete link more

Comments

Thanks! This was very useful!

Femer gravatar image Femer  ( 2017-01-19 08:21:26 -0600 )edit

Question Tools

Stats

Asked: 2012-12-20 19:50:37 -0600

Seen: 4,005 times

Last updated: Dec 21 '12