stack-of-tasks / install-sot

Bash script to install the repositories of Stack Of Tasks
0 stars 7 forks source link

TypeError: checkout() got an unexpected keyword argument 'timeout' #23

Closed andreadelprete closed 10 years ago

andreadelprete commented 10 years ago

When running

install_sot.sh -r hydro sot_hydro 3

I get the following errors:

Eval (4): install_ros_ws
Version to be installed: hydro
rosinstall operating on /home/adelpret/devel/sot_hydro from specifications in rosinstall files  https://raw.github.com/laas/ros/master/laas.rosinstall, /opt/ros/hydro
(Over-)Writing /home/adelpret/devel/sot_hydro/.rosinstall
[stacks/vision_visp] Fetching git://github.com/lagadic/vision_visp.git (version master) to /home/adelpret/devel/sot_hydro/stacks/vision_visp
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
[stacks/motion_analysis_mocap] Fetching git://github.com/laas/motion_analysis_mocap.git (version master) to /home/adelpret/devel/sot_hydro/stacks/motion_analysis_mocap
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
[stacks/redundant_manipulator_control] Fetching git://github.com/stack-of-tasks/redundant_manipulator_control.git (version master) to /home/adelpret/devel/sot_hydro/stacks/redundant_manipulator_control
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
[stacks/redundant_manipulator_control_tutorial] Fetching git://github.com/stack-of-tasks/redundant_manipulator_control_tutorial.git (version master) to /home/adelpret/devel/sot_hydro/stacks/redundant_manipulator_control_tutorial
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
[stacks/humanoid_walk] Fetching git://github.com/laas/humanoid_walk.git (version master) to /home/adelpret/devel/sot_hydro/stacks/humanoid_walk
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
[stacks/jrl_walkgen_bridge] Fetching git://github.com/laas/jrl_walkgen_bridge.git (version master) to /home/adelpret/devel/sot_hydro/stacks/jrl_walkgen_bridge
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
[stacks/hueblob] Fetching git://github.com/laas/hueblob.git (version master) to /home/adelpret/devel/sot_hydro/stacks/hueblob
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
[stacks/geometric_tools] Fetching git://github.com/laas/geometric_tools.git (version master) to /home/adelpret/devel/sot_hydro/stacks/geometric_tools
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
[stacks/robot_contact_point] Fetching git://github.com/laas/robot_contact_point.git (version master) to /home/adelpret/devel/sot_hydro/stacks/robot_contact_point
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
[stacks/robot_model_py] Fetching git://github.com/laas/robot_model_py.git (version master) to /home/adelpret/devel/sot_hydro/stacks/robot_model_py
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
[stacks/romeo] Fetching git://github.com/laas/romeo.git (version master) to /home/adelpret/devel/sot_hydro/stacks/romeo
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
[stacks/rosbag_analysis] Fetching git://github.com/laas/rosbag_analysis.git (version master) to /home/adelpret/devel/sot_hydro/stacks/rosbag_analysis
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
[stacks/robot_capsule_urdf] Fetching git://github.com/laas/robot_capsule_urdf.git (version master) to /home/adelpret/devel/sot_hydro/stacks/robot_capsule_urdf
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
[stacks/rbdl] Fetching git://github.com/laas/rbdl.git (version master) to /home/adelpret/devel/sot_hydro/stacks/rbdl
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
[stacks/openrtm_cpp] Fetching git://github.com/laas/openrtm_cpp.git (version master) to /home/adelpret/devel/sot_hydro/stacks/openrtm_cpp
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
[stacks/openrtm_python] Fetching git://github.com/laas/openrtm_python.git (version master) to /home/adelpret/devel/sot_hydro/stacks/openrtm_python
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
[stacks/openhrp] Fetching git://github.com/laas/openhrp.git (version master) to /home/adelpret/devel/sot_hydro/stacks/openhrp
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
[stacks/hrpsys_base] Fetching git://github.com/laas/hrpsys_base.git (version master) to /home/adelpret/devel/sot_hydro/stacks/hrpsys_base
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
[stacks/simulator_openhrp] Fetching git://github.com/laas/simulator_openhrp.git (version master) to /home/adelpret/devel/sot_hydro/stacks/simulator_openhrp
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
[stacks/rviz_plugin_covariance] Fetching git://github.com/laas/rviz_plugin_covariance.git (version None) to /home/adelpret/devel/sot_hydro/stacks/rviz_plugin_covariance
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/wstool/common.py", line 261, in run
    result_dict = self.worker.do_work()
  File "/usr/lib/pymodules/python2.7/wstool/multiproject_cmd.py", line 333, in do_work
    verbose=self.report.verbose)
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 370, in install
    verbose=verbose):
TypeError: checkout() got an unexpected keyword argument 'timeout'
Exception caught during install: Error processing 'stacks/vision_visp' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/motion_analysis_mocap' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/redundant_manipulator_control' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/redundant_manipulator_control_tutorial' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/humanoid_walk' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/jrl_walkgen_bridge' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/hueblob' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/geometric_tools' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/robot_contact_point' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/robot_model_py' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/romeo' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/rosbag_analysis' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/robot_capsule_urdf' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/rbdl' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/openrtm_cpp' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/openrtm_python' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/openhrp' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/hrpsys_base' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/simulator_openhrp' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/rviz_plugin_covariance' : checkout() got an unexpected keyword argument 'timeout'

ERROR in config: Error processing 'stacks/vision_visp' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/motion_analysis_mocap' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/redundant_manipulator_control' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/redundant_manipulator_control_tutorial' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/humanoid_walk' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/jrl_walkgen_bridge' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/hueblob' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/geometric_tools' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/robot_contact_point' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/robot_model_py' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/romeo' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/rosbag_analysis' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/robot_capsule_urdf' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/rbdl' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/openrtm_cpp' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/openrtm_python' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/openhrp' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/hrpsys_base' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/simulator_openhrp' : checkout() got an unexpected keyword argument 'timeout'
Error processing 'stacks/rviz_plugin_covariance' : checkout() got an unexpected keyword argument 'timeout'

I already installed SoT using this script one month ago, and it worked fine. I am now installing it again to use it with ROS hydro (last time I used ROS fuerte). My goal is to have 2 versions of SoT, one using hydro and one using fuerte. Any idea what the problem could be? Thanks in advance for the help!

francois-keith commented 10 years ago

Normally it shouldn't be a problem. But, I managed to reproduce your error after I updated (just now) python-wstool from version 0.1.1-1 to 0.1.2-1. It worked just fine before, it crashed after (with both fuerte and hydro).

I am on Ubuntu 12.04, 64 bits. Can you confirm that it is also the version of python-wstool you're using?

francois-keith commented 10 years ago

If you want a dirty way to correct it, you can comment the following lines

/usr/share/pyshared/wstool/config_elements.py

            if not self._get_vcsc().update(self.version, verbose=verbose): #380 remove timeout
                raise MultiProjectException(
                    "[%s] Update Failed of %s" % (self.get_local_name(),
                                                  self.get_path()))

/usr/share/pyshared/wstool/multiproject_cmd.py

            self.element.install(checkout=self.report.checkout,
                                 backup=self.report.backup,
                                 backup_path=self.report.backup_path,
                                 inplace=self.report.inplace,
                                 #timeout=self.report.timeout, #<< comment this line 332
                                 verbose=self.report.verbose)
francois-keith commented 10 years ago

Please ignore the former comment, I found a (way) cleaner way to do it:

Go get the version 0.1.3 of wstool there: https://pypi.python.org/pypi/wstool/0.1.3 And install it.

tar -xvzf ./wstool-0.1.3.tar.gz
cd wstool-0.1.3
sudo pip install -U wstool 

And the problem should be resolved. Could you please confirm it?

Note: the problem also appeared with rosinstall files created with rosinstall_generator, so it's not install-sot specific.

olivier-stasse commented 10 years ago

Thanks a lot Francois. Do you think this should be included in install-sot.sh ?

andreadelprete commented 10 years ago

Thanks a lot for the prompt responce! Unfortunately I have to wait until Monday for testing your solution because at the moment I have no way to access my pc. I'll let you know as soon as I can. Thanks again!

andreadelprete commented 10 years ago

Finally I could test your solution. I confirm that I had the version 0.1.2-1 os python-wstool. I installed the version 0.1.3 using pip, but now when I run install-sot I get:

Eval (4): install_ros_ws
Version to be installed: hydro
Traceback (most recent call last):
  File "/usr/bin/rosinstall", line 5, in <module>
    from rosinstall.rosinstall_cli import rosinstall_main
  File "/usr/lib/pymodules/python2.7/rosinstall/__init__.py", line 33, in <module>
    import wstool.helpers
ImportError: No module named wstool.helpers

And if I check wstool version with

dpkg -s python-wstool

it tells me I still have version 0.1.2-1 installed. I guess something went wrong when installing wstool, but don't know what. When installing it I get some warnings, but at the end it says:

Successfully installed wstool vcstools pyyaml python-dateutil six
francois-keith commented 10 years ago

Could you please tell me the verson of python-rosinstall you're using? I have the version 0.7.3-1

Also, could you please send me the result of this command? locate wstool/helper

andreadelprete commented 10 years ago

I have the exact same version of python-rosinstall. The result of the command is:

/usr/share/pyshared/wstool/helpers.py

I have a pretty old version of pip though (1.0), don't know if that can be the problem.

andreadelprete commented 10 years ago

I updated pip to 1.5.6 so I could check the version of wstool using pip list and it says I have 0.1.3, whereas dpkg -s python-wstool says I have version 0.1.2-1. Any idea why?

olivier-stasse commented 10 years ago

It is two different installation mechanisms with separate database.

francois-keith commented 10 years ago

I'm surprised that you only have one location for wstool/helpers Is your database up to date ? Did you run sudo updatedb before?

On Mon, May 19, 2014 at 10:58 AM, Andrea Del Prete <notifications@github.com

wrote:

I have the exact same version of python-rosinstall. The result of the command is:

/usr/share/pyshared/wstool/helpers.py

I have a pretty old version of pip though (1.0), don't know if that can be the problem.

— Reply to this email directly or view it on GitHubhttps://github.com/stack-of-tasks/install-sot/issues/23#issuecomment-43479447 .

andreadelprete commented 10 years ago

@francois-keith No, I tried now to update the db and relocate wstool/helpers, but I got the same result.

andreadelprete commented 10 years ago

What about I try to install wstool with sudo apt-get install python-wstool ? That's the way suggested in the ROS wiki (see http://wiki.ros.org/wstool).

olivier-stasse commented 10 years ago

dpkg read its version package from /var/lib/dpkg/status pip read it from your /my/env/lib/pythonx.x/site-packages directory.

francois-keith commented 10 years ago

The problem is that the last version available obtained with sudo apt-get install python-wstool is the 0.1.2-1, and that it is the only one you can get (if the 0.1.1-1 were still available, I would have suggested to get back to this one).

Could you copy the result of sudo pip install -v -U wstool, please?

andreadelprete commented 10 years ago

Sure, here it is:

Installed version (0.1.3) is most up-to-date (past versions: 0.1.3, 0.1.1, 0.1.0, 0.0.4, 0.0.3, 0.0.2, 0.0.1)
Requirement already up-to-date: wstool in /usr/local/lib/python2.7/dist-packages
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.0.1.tar.gz#md5=54ab3eaf0d5fdc38e5e8518b3d1e99ca (from https://pypi.python.org/simple/vcstools/), version 0.0.1 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.0.2.tar.gz#md5=5e3e5ae4893abf390a33b8bba9bb75eb (from https://pypi.python.org/simple/vcstools/), version 0.0.2 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.0.3.tar.gz#md5=c9bd667454b982bdbfd2d593890fd63b (from https://pypi.python.org/simple/vcstools/), version 0.0.3 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.0.tar.gz#md5=f5d52f81d2fc6a3cb74c59c5671362ac (from https://pypi.python.org/simple/vcstools/), version 0.1.0 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.10.tar.gz#md5=c1293b3fb6dca602b250ceb7cc38af53 (from https://pypi.python.org/simple/vcstools/), version 0.1.10 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.11.tar.gz#md5=fc7e76ca1fa7fb13c8b72e09136be37b (from https://pypi.python.org/simple/vcstools/), version 0.1.11 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.12.tar.gz#md5=4a2d174ed6b11a372ba5ebccfcf9135a (from https://pypi.python.org/simple/vcstools/), version 0.1.12 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.13.tar.gz#md5=dbdb19ae894e540d8f689abfd7ff43c2 (from https://pypi.python.org/simple/vcstools/), version 0.1.13 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.14.tar.gz#md5=7812f3e82a6622f457394459f678e580 (from https://pypi.python.org/simple/vcstools/), version 0.1.14 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.15.tar.gz#md5=9273ca92052cad053b48a26db89e196c (from https://pypi.python.org/simple/vcstools/), version 0.1.15 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.16.tar.gz#md5=690ea65ad4eb54682aeadb272d4febae (from https://pypi.python.org/simple/vcstools/), version 0.1.16 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.17.tar.gz#md5=cf79c55f3edabd34f0747a4698621191 (from https://pypi.python.org/simple/vcstools/), version 0.1.17 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.18.tar.gz#md5=825ce62714de43df8b336e2a67c493e5 (from https://pypi.python.org/simple/vcstools/), version 0.1.18 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.2.tar.gz#md5=c417919020466d2cb86018b5597343bb (from https://pypi.python.org/simple/vcstools/), version 0.1.2 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.20.tar.gz#md5=05f9c687ca7d59db5ef4fdcfae237fe2 (from https://pypi.python.org/simple/vcstools/), version 0.1.20 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.22.tar.gz#md5=3df6d9a3f42637687f0488b7050e0e5e (from https://pypi.python.org/simple/vcstools/), version 0.1.22 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.24.tar.gz#md5=7928a11b10e51801aa5e0364c2190873 (from https://pypi.python.org/simple/vcstools/), version 0.1.24 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.25.tar.gz#md5=2ffab8a0dc0e0bcdbd531c845482b69c (from https://pypi.python.org/simple/vcstools/), version 0.1.25 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.26.tar.gz#md5=f6b34e10e5b4aa312c9ff8c05455edad (from https://pypi.python.org/simple/vcstools/), version 0.1.26 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.27.tar.gz#md5=c993310174fb99d642937dfc3bd81987 (from https://pypi.python.org/simple/vcstools/), version 0.1.27 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.29.tar.gz#md5=3c4f857845e42bff9460e0311e6ba3e5 (from https://pypi.python.org/simple/vcstools/), version 0.1.29 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.3.tar.gz#md5=0e70df294048ccd57cf403ee36eafbfc (from https://pypi.python.org/simple/vcstools/), version 0.1.3 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.30.tar.gz#md5=b5a6779a5907a645c70d111129b22bc2 (from https://pypi.python.org/simple/vcstools/), version 0.1.30 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.32.tar.gz#md5=87e331a9f3a2957a2c2a252e6d845d77 (from https://pypi.python.org/simple/vcstools/), version 0.1.32 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.33.tar.gz#md5=e19d4215929e3caf258f0696eb608e8d (from https://pypi.python.org/simple/vcstools/), version 0.1.33 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.4.tar.gz#md5=df23420be6efb8443c0297a77245a467 (from https://pypi.python.org/simple/vcstools/), version 0.1.4 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.5.tar.gz#md5=6b51306ececdc94fd085dd33d1fcd55f (from https://pypi.python.org/simple/vcstools/), version 0.1.5 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.6.tar.gz#md5=91e5332b7343426ee4fa9722bf8f44b4 (from https://pypi.python.org/simple/vcstools/), version 0.1.6 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.7.tar.gz#md5=2defdebc2df3c3521a4b20302fed7bb5 (from https://pypi.python.org/simple/vcstools/), version 0.1.7 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.8.tar.gz#md5=f7bccfc0a04cc1021afb5064713c7454 (from https://pypi.python.org/simple/vcstools/), version 0.1.8 doesn't match >=0.1.34
Ignoring link https://pypi.python.org/packages/source/v/vcstools/vcstools-0.1.9.tar.gz#md5=1afd009d4c42c3e7c229f5a93ae310b0 (from https://pypi.python.org/simple/vcstools/), version 0.1.9 doesn't match >=0.1.34
Installed version (0.1.35) is most up-to-date (past versions: 0.1.35)
Requirement already up-to-date: vcstools>=0.1.34 in /usr/local/lib/python2.7/dist-packages (from wstool)
Installed version (3.11) is most up-to-date (past versions: 3.11, 3.11, 3.10, 3.10)
Requirement already up-to-date: pyyaml in /usr/local/lib/python2.7/dist-packages (from wstool)
Installed version (2.2) is most up-to-date (past versions: 2.2, 2.1, 1.5, 1.4.1, 1.4)
Requirement already up-to-date: python-dateutil in /usr/local/lib/python2.7/dist-packages (from vcstools>=0.1.34->wstool)
Ignoring link https://pypi.python.org/packages/source/s/six/six-1.0b1.tar.gz#md5=cbfcc64af1f27162a6a6b5510e262c9d (from https://pypi.python.org/simple/six/), version 1.0b1 is a pre-release (use --pre to allow).
Installed version (1.6.1) is most up-to-date (past versions: 1.6.1, 1.6.1, 1.6.0, 1.6.0, 1.5.2, 1.5.2, 1.5.1, 1.5.1, 1.5.0, 1.5.0, 1.4.1, 1.4.0, 1.3.0, 1.2.0, 1.1.0, 1.0.0, 0.9.2, 0.9.1, 0.9.0)
Requirement already up-to-date: six in /usr/local/lib/python2.7/dist-packages (from python-dateutil->vcstools>=0.1.34->wstool)
Cleaning up...
  Removing temporary dir /tmp/pip_build_root...
olivier-stasse commented 10 years ago

sudo pip install --install-option="--prefix=$PREFIX_PATH" wstool

And you should set PREFIX_PATH to your install directory.

andreadelprete commented 10 years ago

@olivier-stasse I did it (setting PREFIX_PATH to /usr/local/) but it didn't change anything. This is the output:

Requirement already satisfied (use --upgrade to upgrade): wstool in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): vcstools>=0.1.34 in /usr/local/lib/python2.7/dist-packages (from wstool)
Requirement already satisfied (use --upgrade to upgrade): pyyaml in /usr/local/lib/python2.7/dist-packages (from wstool)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/local/lib/python2.7/dist-packages (from vcstools>=0.1.34->wstool)
Requirement already satisfied (use --upgrade to upgrade): six in /usr/local/lib/python2.7/dist-packages (from python-dateutil->vcstools>=0.1.34->wstool)
Cleaning up...
olivier-stasse commented 10 years ago

Yes because with install-sot the prefix is / home / user / devel / last - argument / install

francois-keith commented 10 years ago

I'm running out of ideas...

@andreadelprete > Are you in the same case that this one: https://github.com/vcstools/rosinstall/issues/93 ?

I would not suggest reinstalling the whole hydro system, but eventually python-rosinstall and python-rosws. Could you please try that?

@olivier-stasse > I would not suggest to add it in the script by default. I just run a fresh install in a new virtual box, and the problem did not appear, so it may be due to an upgrade that didn't go well. Indeed, the versions of the packages in my new VB and my old one (that contained the issue) were the same.

andreadelprete commented 10 years ago

@olivier-stasse I changed the PREFIX_PATH to the sot install directory, but nothing changed. @francois-keith I reinstalled python-rosinstall and it went fine, so it doesn't seem I'm in the same situation as the link you posted. Regarding python-rosws I can't find it. Did you mean python-wstool?

andreadelprete commented 10 years ago

Now the error has changed. The script can find wstool/helpers, but it can't find dateutil.parser:

Eval (4): install_ros_ws
Version to be installed: hydro
Traceback (most recent call last):
  File "/usr/bin/rosinstall", line 5, in <module>
    from rosinstall.rosinstall_cli import rosinstall_main
  File "/usr/lib/pymodules/python2.7/rosinstall/__init__.py", line 33, in <module>
    import wstool.helpers
  File "/usr/lib/pymodules/python2.7/wstool/helpers.py", line 37, in <module>
    from wstool.config_elements import SetupConfigElement
  File "/usr/lib/pymodules/python2.7/wstool/config_elements.py", line 38, in <module>
    from vcstools.vcs_abstraction import get_vcs_client
  File "/usr/lib/pymodules/python2.7/vcstools/__init__.py", line 44, in <module>
    from vcstools.svn import SvnClient
  File "/usr/lib/pymodules/python2.7/vcstools/svn.py", line 44, in <module>
    import dateutil.parser  # For parsing date strings
ImportError: No module named dateutil.parser
andreadelprete commented 10 years ago

I found a post where they say it is a problem due to mixing apt-get with pip: problems-with-rosrun-rosws-and-others (I linked the page cached by google because at the moment answer.ros.org is down). Unfortunately, as far as I understood, the situation does not allow me to use apt-get to install python-wstool...

andreadelprete commented 10 years ago

Any idea on what I can try next? What about reinstalling hydro? Or should I try the first (dirty) solution suggested by @francois-keith ?

olivier-stasse commented 10 years ago

I do not think reinstalling hydro will be the solution. Maybe you should try to do the following: sudo apt-get install --reinstall python-dateutil

francois-keith commented 10 years ago

I don't think reinstalling hydro would be the solution either. But similarly to Olivier, I would suggest to reinstall some packages, but in pip, following this: [[http://answers.ros.org/question/49143/problems-with-rqt-groovy-ubuntu/?answer=49153#post-id-49153]] namely, using pip freeze to list them all and eventually remove those:

sudo pip uninstall rosinstall rosinstall-generator wstool rospkg rosdep rosdistro
sudo apt-get install --reinstall python-rosinstall python-rosinstall-generator
sudo pip install wstool rosdep rosdistro
andreadelprete commented 10 years ago

Ok, I reinstalled all the packages you listed. Now when I run install_sot I get a different (but similar) error:

ERROR: default sources list file already exists:
    /etc/ros/rosdep/sources.list.d/20-default.list
Please delete if you wish to re-initialize
Traceback (most recent call last):
  File "/usr/local/bin/rosdep", line 3, in <module>
    from rosdep2.main import rosdep_main
ImportError: No module named rosdep2.main

Another thing: the install_sot script instructions say to set installation_level to 3 if ROS, doxygen and git are already installed, but doing so the script starts with step 3, that is "install_ros_legacy". Shouldn't I start with step 4 then?

francois-keith commented 10 years ago

Could you please show me the output of

sudo pip uninstall rosdep rosinstall
sudo pip install rosdep rosinstall
ls /usr/local/lib/python2.7/dist-packages

Also, thanks for your remark, the README is a bit deprecated, I'll correct that.

andreadelprete commented 10 years ago

Here it is:

adelpret@verdaguer:scripts$ sudo pip uninstall rosdep rosinstall
[sudo] password for adelpret: 
Uninstalling rosdep:
  /usr/local/bin/rosdep
  /usr/local/bin/rosdep-source
  /usr/local/lib/python2.7/dist-packages/rosdep-0.10.27.egg-info
  /usr/local/lib/python2.7/dist-packages/rosdep2/__init__.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/__init__.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/_version.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/_version.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/catkin_packages.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/catkin_packages.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/catkin_support.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/catkin_support.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/core.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/core.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/dependency_graph.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/dependency_graph.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/installers.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/installers.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/loader.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/loader.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/lookup.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/lookup.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/main.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/main.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/model.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/model.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/__init__.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/__init__.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/arch.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/arch.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/cygwin.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/cygwin.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/debian.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/debian.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/freebsd.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/freebsd.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/gem.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/gem.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/gentoo.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/gentoo.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/opensuse.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/opensuse.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/osx.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/osx.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/pip.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/pip.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/redhat.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/redhat.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/source.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/platforms/source.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/rep3.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/rep3.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/rosdistrohelper.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/rosdistrohelper.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/rospack.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/rospack.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/rospkg_loader.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/rospkg_loader.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/shell_utils.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/shell_utils.pyc
  /usr/local/lib/python2.7/dist-packages/rosdep2/sources_list.py
  /usr/local/lib/python2.7/dist-packages/rosdep2/sources_list.pyc
Proceed (y/n)? y
  Successfully uninstalled rosdep
Uninstalling rosinstall:
  /usr/lib/pymodules/python2.7/rosinstall
  /usr/lib/pymodules/python2.7/rosinstall-0.7.3.egg-info
Proceed (y/n)? y
  Successfully uninstalled rosinstall
adelpret@verdaguer:scripts$ sudo pip install rosdep rosinstall
Downloading/unpacking rosdep
  Downloading rosdep-0.10.27.tar.gz (68kB): 68kB downloaded
  Running setup.py (path:/tmp/pip_build_root/rosdep/setup.py) egg_info for package rosdep
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_requires'
      warnings.warn(msg)

Downloading/unpacking rosinstall
  Downloading rosinstall-0.7.3.tar.gz
  Running setup.py (path:/tmp/pip_build_root/rosinstall/setup.py) egg_info for package rosinstall

Requirement already satisfied (use --upgrade to upgrade): catkin-pkg in /usr/lib/pymodules/python2.7 (from rosdep)
Requirement already satisfied (use --upgrade to upgrade): rospkg in /usr/local/lib/python2.7/dist-packages (from rosdep)
Requirement already satisfied (use --upgrade to upgrade): rosdistro>=0.3.0 in /usr/local/lib/python2.7/dist-packages (from rosdep)
Requirement already satisfied (use --upgrade to upgrade): PyYAML>=3.1 in /usr/local/lib/python2.7/dist-packages (from rosdep)
Requirement already satisfied (use --upgrade to upgrade): vcstools>=0.1.30 in /usr/local/lib/python2.7/dist-packages (from rosinstall)
Requirement already satisfied (use --upgrade to upgrade): wstool>=0.1.0 in /usr/local/lib/python2.7/dist-packages (from rosinstall)
Requirement already satisfied (use --upgrade to upgrade): argparse in /usr/lib/python2.7 (from rospkg->rosdep)
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/dist-packages (from rosdistro>=0.3.0->rosdep)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/local/lib/python2.7/dist-packages (from vcstools>=0.1.30->rosinstall)
Requirement already satisfied (use --upgrade to upgrade): six in /usr/local/lib/python2.7/dist-packages (from python-dateutil->vcstools>=0.1.30->rosinstall)
Installing collected packages: rosdep, rosinstall
  Running setup.py install for rosdep
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_requires'
      warnings.warn(msg)
    changing mode of build/scripts-2.7/rosdep from 600 to 755
    changing mode of build/scripts-2.7/rosdep-source from 600 to 755

    changing mode of /usr/local/bin/rosdep-source to 755
    changing mode of /usr/local/bin/rosdep to 755
  Running setup.py install for rosinstall
    changing mode of build/scripts-2.7/rosinstall from 600 to 755
    changing mode of build/scripts-2.7/roslocate from 600 to 755
    changing mode of build/scripts-2.7/rosws from 600 to 755
    changing mode of build/scripts-2.7/rosco from 600 to 755

    changing mode of /usr/local/bin/rosco to 755
    changing mode of /usr/local/bin/rosws to 755
    changing mode of /usr/local/bin/roslocate to 755
    changing mode of /usr/local/bin/rosinstall to 755
Successfully installed rosdep rosinstall
Cleaning up...
adelpret@verdaguer:scripts$ ls /usr/local/lib/python2.7/dist-packages
ls: cannot access /usr/local/lib/python2.7/dist-packages: Permission denied
adelpret@verdaguer:scripts$ sudo ls /usr/local/lib/python2.7/dist-packages
dateutil        python_dateutil-2.2.egg-info  rosdep2           rosinstall             rospkg-1.0.28.egg-info  six.pyc           wstool         _yaml.so
pip         PyYAML-3.11.egg-info      rosdistro         rosinstall-0.7.3.egg-info  six-1.6.1.egg-info      vcstools          wstool-0.1.3.egg-info
pip-1.5.6.egg-info  rosdep-0.10.27.egg-info   rosdistro-0.3.5.egg-info  rospkg             six.py              vcstools-0.1.35.egg-info  yaml
francois-keith commented 10 years ago

ok, I have several questions

  1. Can you confirm that it still doesn't work (the rosdep2 module seems to be installed, though)?
  2. Can you show me the result of ls /usr/lib/pymodules/python2.7 ?
  3. Also, I am surprised that you have a permission denied message for ls /usr/local/lib/python2.7/dist-packages Could you please give me the rights on this package (with sudo ll)? Also tell me at which point in the hierarchy you start not having the reading rights.

Thanks

andreadelprete commented 10 years ago
  1. Yes, it still doesn't work. Here it is the output of the install_sot script:
./install_sot.sh -r hydro sot_hydro 4
install_sot.sh: notice: Distribution is precise
install_sot.sh: notice: GitHub account is set, cloning in read-write mode
install_sot.sh: warning: Neither grx3.0 nor grx3.1 could be found
install_sot.sh: notice: Parameters found: sot_hydro 4
run instructions from 4 to 36

update ros setup
Eval (4): install_ros_ws
Version to be installed: hydro
ERROR: Cannot find required rosinstall library version, check your installation (also of vcstools) is up-to-date. One frequent cause is that rosinstall 0.5 is still installed in /usr/local/lib.
No module named rosinstall.rosinstall_cli

2)

adelpret@verdaguer:scripts$ ls /usr/lib/pymodules/python2.7
catkin_pkg                 em.py              matplotlib-1.1.1rc.egg-info   pydot-1.0.2.egg-info  pylab.pyc                            stgit
catkin_pkg-0.2.2.egg-info  empy-3.1.egg-info  matplotlib-1.1.1rc-nspkg.pth  pydot.py              PyOpenGL-3.0.1b2.egg-info            stgit-0.15.egg-info
dot_parser.py              em.pyc             mpl_toolkits                  pydot.pyc             rosinstall_generator                 vcstools
dot_parser.pyc             matplotlib         OpenGL                        pylab.py              rosinstall_generator-0.1.9.egg-info  vcstools-0.1.35.egg-info 

3) The rights on `usr/local/lib/python2.7/dist-packages are:

sudo ls -l python2.7/dist-packages
total 920
drwx------ 3 root root   4096 May 19 08:50 dateutil
drwxr-xr-x 6 root root   4096 May 19 11:00 pip
drwxr-xr-x 2 root root   4096 May 19 11:00 pip-1.5.6.egg-info
drwx------ 2 root root   4096 May 19 08:50 python_dateutil-2.2.egg-info
drwx------ 2 root root   4096 May 19 08:50 PyYAML-3.11.egg-info
drwx------ 2 root root   4096 May 22 11:31 rosdep-0.10.27.egg-info
drwx------ 3 root root   4096 May 22 11:31 rosdep2
drwx------ 4 root root   4096 May 22 08:52 rosdistro
drwx------ 2 root root   4096 May 22 08:52 rosdistro-0.3.5.egg-info
drwx------ 2 root root   4096 May 22 11:31 rosinstall
drwx------ 2 root root   4096 May 22 11:31 rosinstall-0.7.3.egg-info
drwx------ 2 root root   4096 May 22 08:52 rospkg
drwx------ 2 root root   4096 May 22 08:52 rospkg-1.0.28.egg-info
drwx------ 2 root root   4096 May 19 08:50 six-1.6.1.egg-info
-rw------- 1 root root  23462 May 19 08:50 six.py
-rw------- 1 root root  22952 May 19 08:50 six.pyc
drwx------ 2 root root   4096 May 19 08:50 vcstools
drwx------ 2 root root   4096 May 19 08:50 vcstools-0.1.35.egg-info
drwx------ 2 root root   4096 May 22 08:52 wstool
drwx------ 2 root root   4096 May 22 08:52 wstool-0.1.3.egg-info
drwx------ 2 root root   4096 May 19 08:50 yaml
-rwx------ 1 root root 811339 May 19 08:50 _yaml.so 

Here the rights on usr/local/lib/python2.7:

sudo ls -l python2.7
total 4
drwx------ 21 root root 4096 May 22 11:31 dist-packages

Actually it's weird because I have "rwx" rights on all folders, but I cannot even enter python2.7:

adelpret@verdaguer:lib$ cd python2.7/
bash: cd: python2.7/: Permission denied

The rights change after /usr/local/lib (from 755 to 700):

ll /usr/local/
total 12
drwxr-xr-x  4 root root    0 May 22 13:58 ./
drwxr-xr-x 12 root root 4096 Jan 29 18:06 ../
drwxr-xr-x  5 root root 4096 May 19 08:36 lib/
drwxr-xr-x  2 root root 4096 Jan 24 15:06 share/

ll /usr/local/lib/
total 16
drwxr-xr-x 5 root root  4096 May 19 08:36 ./
drwxr-xr-x 6 root root     0 May 22 14:17 ../
drwx------ 3 root root  4096 May 19 08:36 python2.7/
drwxrwsr-x 3 root staff 4096 Jan 24 15:34 python3.2/
drwxr-xr-x 3 root root  4096 Jan 24 15:34 site_ruby/
francois-keith commented 10 years ago

I think the problem comes from the rights on the python2.7 folder (and its subfolders)

Could you run

path=/usr/local/lib/python2.7
# correct the owner of the files.
sudo chown -R root:staff $path
# correct the right of the files.
sudo chmod -R 755 $path
# add the +s option for the directories
sudo find $path -type d -exec chmod g+s '{}' \;

And retry the installation from step 3 (aka ros) ?

andreadelprete commented 10 years ago

I think it worked. Any idea of the reason why the python2.7 folder had these rights? Just out of curiosity. By the way, the script still failed, but at a later point and with a completely different error:

...
[stacks/hrp2] Fetching git@github.com:jrl-umi3218/hrp2 (version master) to /home/adelpret/devel/sot_hydro/stacks/hrp2
Cloning into '/home/adelpret/devel/sot_hydro/stacks/hrp2'...
Warning: Permanently added the RSA host key for IP address '192.30.252.128' to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Exception caught during install: Error processing 'stacks/hrp2' : [stacks/hrp2] Checkout of git@github.com:jrl-umi3218/hrp2 version master into /home/adelpret/devel/sot_hydro/stacks/hrp2 failed.

ERROR in config: Error processing 'stacks/hrp2' : [stacks/hrp2] Checkout of git@github.com:jrl-umi3218/hrp2 version master into /home/adelpret/devel/sot_hydro/stacks/hrp2 failed.
francois-keith commented 10 years ago

This is good news :) Honestly, I don't see the reason why the rights on this folder changed.

Now, regarding the error for the hrp2, it means that you didn't load the key corresponding to the

PRIVATE_URI=git@github.com:jrl-umi3218 https://github.com/stack-of-tasks/install-sot/blob/master/scripts/install_sot.sh#L280

If you don't have access to this repository, please comment this line (and eventually remove the package from the .rosinstall file) If you have access, please add the key to your ssh-agent.

andreadelprete commented 10 years ago

Ok, I thought I had the rights to access that repo, but apparently I haven't. I'm gonna get the rights and try again later. Anyway this issue is solved so I close it. Thanks a lot for the help @francois-keith and @olivier-stasse !