robust-rosin / robust

A dataset of 200+ bugs in the Robot Operating System for BugZoo
30 stars 10 forks source link

Docker build fails for Kobuki f95c384 #103

Open git-afsantos opened 6 years ago

git-afsantos commented 6 years ago

Tried to build with the following command.

$ docker build -t robustrosin/test-f95c384 -f ../../Dockerfile --build-arg UBUNTU_VERSION=precise --build-arg IS_BUILD_FAILURE=yes --build-arg USE_APT_OLD_RELEASES=no --build-arg ROS_DISTRO=hydro --build-arg CATKIN_PKG=kobuki_node --build-arg REPO_FORK_URL=https://github.com/robust-rosin/kobuki --build-arg REPO_BUG_COMMIT=446f0b0cf9699a69b4f2badfd45fee702cbf22bc --build-arg REPO_FIX_COMMIT=f95c3847d97fba46b6317e00ffd78ce352ec376f .

Error message (step 23/39):

The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends build-essential ca-certificates git python-pip cmake wget lsb-release && pip install --upgrade pip==9.0.3 && pip install setuptools && pip install --upgrade wheel rosdep wstool rosinstall rospkg catkin_pkg && apt-get clean && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 1

Output right before the error:

Downloading/unpacking pip==9.0.3 Cannot fetch index base URL http://pypi.python.org/simple/ Could not find any downloads that satisfy the requirement pip==9.0.3 No distributions at all found for pip==9.0.3

Seems like something is missing. Shall I try something other than changing the distros?

The bug report is not very explicit regarding the distros they were using. It happened a few days after Indigo released, and they assigned the fix to the Indigo milestone, but the package had not been released yet in Indigo at the time of reporting (so the time machine cannot find the PUT).

I did some digging in the repository files (browsing at the buggy commit), and they seem to be using hydro, so I just assumed ROS Hydro + Ubuntu Precise.

git-afsantos commented 6 years ago

@ChrisTimperley @gavanderhoorn

ChrisTimperley commented 6 years ago

https://github.com/pypa/pip/issues/5156

git-afsantos commented 6 years ago

The build now fails at step 29/40, same docker command as in the original post:

E: Unable to locate package yaml-cpp ERROR: the following rosdeps failed to install apt: command [apt-get install -y yaml-cpp] failed executing command [apt-get install -y ftdi-eeprom] ... executing command [apt-get install -y yaml-cpp] The command /bin/sh -c apt-get clean && apt-get update && rosdep init && rosdep update && rosdep install --from-paths src -i --rosdistro=${ROS_DISTRO} -y --skip-keys="python-rosdep python-catkin-pkg python-rospkg" && apt-get clean && rm -rf /var/lib/apt/lists/* returned a non-zero code: 1

gavanderhoorn commented 6 years ago

This is a strange error: yaml-cpp is the rosdep key, not the apt package name (see here).

I'm not sure why rosdep is trying to install yaml-cpp directly.