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

problem when using the command rospack depends1

asked 2014-07-13 05:26:27 -0500

Kevin Pu gravatar image

I used the command rospack depends1 beginner_tutorials ,but I can't get the result.

File "/usr/lib/pymodules/python2.7/rosdep2/rospack.py", line 58, in init_rospack_interface lookup = _get_default_RosdepLookup(Options()) File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 117, in _get_default_RosdepLookup verbose=options.verbose) File "/usr/lib/pymodules/python2.7/rosdep2/sources_list.py", line 567, 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 471, in load_cached_sources_list with open(cache_index, 'r') as f: IOError: [Errno 13] Permission denied: '/home/kevin/.ros/rosdep/sources.cache/index' Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/rosdep2/rospack.py", line 58, in init_rospack_interface lookup = _get_default_RosdepLookup(Options()) File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 117, in _get_default_RosdepLookup verbose=options.verbose) File "/usr/lib/pymodules/python2.7/rosdep2/sources_list.py", line 567, 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 471, in load_cached_sources_list with open(cache_index, 'r') as f: IOError: [Errno 13] Permission denied: '/home/kevin/.ros/rosdep/sources.cache/index' [rospack] Error: could not call python function 'rosdep2.rospack.init_rospack_interface' f

edit retag flag offensive close merge delete

Comments

http://answers.ros.org/question/66449/catkin_make-requires-root/?answer=66492#post-id-66492

bvbdort gravatar image bvbdort  ( 2014-07-13 10:38:28 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-07-13 11:05:43 -0500

lucaluca gravatar image

Since it's saying a lot of "permission denied", I would give it a try using sudo, so:

sudo rospack depends1 beginner_tutorials

If it doesn't work, before doing this also check that your source's path is in the variable ROS_PACKAGE_PATH; in order to do this:

cd [path to your catkin workspace]/devel
source setup.bash

After this, you can check the variable value with:

echo $ROS_PACKAGE_PATH

and you should see, separated by ":", also the path to your catkin workspace.

edit flag offensive delete link more

Comments

sudo rospack depends1 beginner_tutorials gives sudo: rospack: command not found

tarapt gravatar image tarapt  ( 2018-11-03 13:17:04 -0500 )edit

Question Tools

Stats

Asked: 2014-07-13 05:26:27 -0500

Seen: 400 times

Last updated: Jul 13 '14