Error compiling Ros Feature Pack with Rosmake: "IOError: [Errno] Permission denied: '/home/xxx/.ros/rosdep/sources.cache/'

Source: Internet
Author: User
Tags pack

The

has built a ROS development environment under Ubuntu, prompting for errors when using Rosmake:

true@ubuntu:~/dev/rosbook$ rosmake chapter2_tutorials [rosmake] Rosmake starting ... [ROSM                                                                                                                            
AKE] Packages requested is: [' chapter2_tutorials '] [Rosmake]                                                                                               
Logging to directory/home/true/.ros/rosmake/rosmake_output-20160824-073455 [Rosmake]                                                                                                           
Expanded args [' chapter2_tutorials '] to: [' chapter2_tutorials '] Traceback (most recent): File "/opt/ros/indigo/bin/rosmake",  Line at <module> if Rma.main (): File "/opt/ros/indigo/lib/python2.7/dist-packages/rosmake/engine.py", line
    793, in MainSelf.build_or_recurse (p) File "/opt/ros/indigo/lib/python2.7/dist-packages/rosmake/engine.py", line @, in Build_or  _recurse Self.build_or_recurse (d) File "/opt/ros/indigo/lib/python2.7/dist-packages/rosmake/engine.py", line 315, in Build_or_recurse for D in Self.dependency_tracker.get_deps_1 (p): File "/opt/ros/indigo/lib/python2.7/dist-packages/ rosmake/parallel_build.py ", line +, in get_deps_1 potential_dependencies = Self.rospack.get_depends (Package, Implici T=false) File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 224, in get_depends m = Self.get_manifest (n AME) File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 164, in Get_manifest return self._load_manifest
  (name) File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 208, in _load_manifest retval = Self._manifests[name] = Parse_manifest_file (Self.get_path (name), Self._manifest_name, rospack=self) file "/usr/lib/python2.7/ Dist-packages/rospkg/manifest.py ", lIne 393, in Parse_manifest_file _static_rosdep_view = init_rospack_interface () file "/usr/lib/python2.7/dist-package s/rosdep2/rospack.py ", line +, in init_rospack_interface lookup = _get_default_rosdeplookup (Options ()) File"/usr/l ib/python2.7/dist-packages/rosdep2/main.py ", line 127, in _get_default_rosdeplookup verbose=options.verbose) File"/ usr/lib/python2.7/dist-packages/rosdep2/sources_list.py ", line 607, in create_default sources = load_cached_sources_l IST (sources_cache_dir=sources_cache_dir, Verbose=verbose) File "/usr/lib/python2.7/dist-packages/rosdep2/sources_ list.py ", line 504, in load_cached_sources_list with open (Cache_index, ' R ') as F:ioerror: [Errno] Permission Denie D: '/home/true/.ros/rosdep/sources.cache/index ' Traceback (most recent): File "/opt/ros/indigo/bin/rosmake",  Line at <module> if Rma.main (): File "/opt/ros/indigo/lib/python2.7/dist-packages/rosmake/engine.py", line 793, in main self.build_or_rEcurse (p) File "/opt/ros/indigo/lib/python2.7/dist-packages/rosmake/engine.py", line @, in Build_or_recurse self.b Uild_or_recurse (d) File "/opt/ros/indigo/lib/python2.7/dist-packages/rosmake/engine.py", line 315, in Build_or_ Recurse for D in Self.dependency_tracker.get_deps_1 (p): File "/opt/ros/indigo/lib/python2.7/dist-packages/rosmake/pa
  rallel_build.py ", line +, in get_deps_1 potential_dependencies = Self.rospack.get_depends (Package, Implicit=false) File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 224, in get_depends m = self.get_manifest (name) Fil E "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 164, in Get_manifest return self._load_manifest (name) F  Ile "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 208, in _load_manifest retval = self._manifests[name] = Parse_manifest_file (Self.get_path (name), Self._manifest_name, rospack=self) file "/usr/lib/python2.7/dist-packages /rospkg/manifest.py ", line 393, in parSe_manifest_file _static_rosdep_view = init_rospack_interface () file "/usr/lib/python2.7/dist-packages/rosdep2/rosp ack.py ", line +, in init_rospack_interface lookup = _get_default_rosdeplookup (Options ()) File"/usr/lib/python2.7/d ist-packages/rosdep2/main.py ", line 127, in _get_default_rosdeplookup verbose=options.verbose) File"/usr/lib/python 2.7/dist-packages/rosdep2/sources_list.py ", line 607, in create_default sources = Load_cached_sources_list (Sources_ca Che_dir=sources_cache_dir, Verbose=verbose) File "/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 504, in load_cached_sources_list with open (Cache_index, ' R ') as F:ioerror: [Errno] Permission denied: '/home/true/
 . Ros/rosdep/sources.cache/index '

At first, I thought we had a problem with the environment variables.

true@ubuntu:~/dev/rosbook$ cat ~/.BASHRC

source/opt/ros/indigo/setup.bash
export ros_package_path=~/dev/ Rosbook:/opt/ros/indigo/share:/opt/ros/indigo/stacks

Show Normal

Later use the following method to solve:

true@ubuntu:~/dev/rosbook$ sudo rm-fr/home/true/.ros/rosdep/sources.cache

true@ubuntu:~/dev/rosbook$ ROSDEP Update

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.