Problems installing Hydro on 12.04 from source on armhf
Hi I'm having a dependency issue trying to install Hydro on 12.04 from source. I get an error:
E: Unable to locate package python-wstool
after the part:
sudo apt-get install python-rosdep python-rosinstall-generator python-wstool build-essential
I was getting the same error but for all the dependencies, however that was resolved by apt-get update
command.
Any suggestions. This is going onto an ARM device with 12.04 installed and did have fuerte installed.
EDIT I found and followed this option to use pip to install wstools instead. However now getting the following error:
Found existing installation: rospkg 1.0.18
Uninstalling rospkg:
Successfully uninstalled rospkg
Running setup.py install for rospkg
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named setuptools
Complete output from command /usr/bin/python -c "import setuptools;__file__='/home/ubuntu/build/rospkg/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-65brKO-record/install-record.txt:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named setuptools
----------------------------------------
Rolling back uninstall of rospkg
Command /usr/bin/python -c "import setuptools;__file__='/home/ubuntu/build/rospkg/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-65brKO-record/install-record.txt failed with error code 1
Storing complete log in /home/ubuntu/.pip/pip.log
EDIT Okay needed to install setuptools as per the directions here.
came up with a new error ends with:
ImportError: No module named pkg_resources
EDIT Okay theres a happy ending to this story however there seems to be a degree of luck in achieving it, so I am happy if someone can improve this.
First I purged and removed python-pkg-resources, this is the part that seems most dodgy:
sudo apt-get remove --purge python-pkg-resources
and then reinstalled it:
sudo apt-get install python-pkg-resources python-nose python-pip python-setuptools
Things were a bit broken (eggs) but this seemed to do the trick.
sudo pip install --upgrade setuptools
after which the pip install command worked:
sudo pip install -U wstool
EDIT
Well it actually didn't work when I went to deal with the installation of rosdep. there were unmet dependencies which may have resulted directly from using pip to install wstools.
A full reinstall of ubuntu didn't work either, apt-get still cant find python-wstools.
EDIT
I reused pip to install rosdep, wstools and rosinstall_generator, and was able to download the source packages, but when executing the command:
rosdep install --from-paths src --ignore-src --rosdistro hydro -y
It would download and unpack dependencies for a couple of hours then stop on error:
executing command [sudo apt-get install -y python-rospkg]
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-rospkg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python-rospkg' has no installation candidate
ERROR: the following rosdeps failed to install
apt: command [sudo ...