Ask Your Question

ImportError: No module named yaml with run_chroot_local (jenkins-script) fails

asked 2013-10-14 13:15:04 -0500

130s gravatar image

Trying out run_chroot_local, I get the following error (full log):

$ run_chroot_local precise amd64 /home/rospasta/catkinws prerelease groovy openhrp3
  - ubuntu distro:  precise
  - architecture:   amd64
  - script:         prerelease
  - workspace:      /home/rospasta/catkinws
  - script args:    groovy openhrp3
vvvvvvvvvvvvvvvvvvv vvvvvvvvvvvvvvvvvvvvvv
+ export CCACHE_DIR=/var/cache/pbuilder/ccache
+ CCACHE_DIR=/var/cache/pbuilder/ccache
+ export PATH=/usr/lib/ccache:/home/rospasta/catkinws/devel/bin:/opt/ros/groovy/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
+ PATH=/usr/lib/ccache:/home/rospasta/catkinws/devel/bin:/opt/ros/groovy/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
+ /home/rospasta/catkinws/jenkins_scripts/prerelease groovy openhrp3
Traceback (most recent call last):
  File "/home/rospasta/catkinws/jenkins_scripts/prerelease", line 2, in <module>
    from test_repositories import *
  File "/home/rospasta/catkinws/jenkins_scripts/", line 6, in <module>
    import yaml
ImportError: No module named yaml

I first suspected that python's path wasn't set right, but other modules seem to be previously imported without an issue. Looking at this thread I now feel like looking into pbuilder but does anyone already have any idea? Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-10-15 08:00:02 -0500

tfoote gravatar image

updated 2013-10-15 08:00:38 -0500

You have errors above. It looks like you are missing some dependencies on your local machine. Potentially apt-show-versions

 /usr/bin/ line 32: apt-show-versions: command not found
    + /bin/echo 'Repo stamp is '
    Repo stamp is
    + '[' 0 '!=' ']'
    /usr/bin/ line 36: [: 0: unary operator expected
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-10-14 13:15:04 -0500

Seen: 424 times

Last updated: Oct 15 '13