← Back to team overview

linaro-pkg team mailing list archive

[Bug 894644] Re: "ImportError: No module named testtools " when trying linaro-android-media-create

 

This seems to happen for a lot of users. Can you try this and let us
know if it works better after?

$ apt-get --reinstall install python-testtools

-- 
You received this bug notification because you are a member of Linaro
Maintainers, which is subscribed to Linaro Image Tools.
https://bugs.launchpad.net/bugs/894644

Title:
  "ImportError: No module named testtools " when trying linaro-android-
  media-create

Status in Linaro Image Tools:
  New

Bug description:
  Description:
  Trying linaro-image tools to create android image on sd card. 
  When running command "linaro-android-media-create --mmc /dev/sdb --dev snowball_sd --system system.tar.bz2 --userdata userdata.tar.bz2 --boot boot.tar.bz2" I'm getting error:
  ImportError: No module named testtools

  Steps to reproduce:
  For:  "https://android-build.linaro.org/builds/~linaro-android/staging-snowball-11.12-release/#build=1";

  1. Download linaro image tools  - 
  #:~/Downloads/11.11/staging-snowball/staging-snowball-11.12-release-build1$ bzr branch lp:linaro-image-tools
  Branched 469 revision(s).       

  2. Run l-a-m-c 
  #~/Downloads/11.11/staging-snowball/staging-snowball-11.12-release-build1$ ./linaro-image-tools/linaro-android-media-create --mmc /dev/sdb --dev snowball_sd --system system.tar.bz2 --userdata userdata.tar.bz2 --boot boot.tar.bz2
  Traceback (most recent call last):
    File "./linaro-image-tools/linaro-android-media-create", line 43, in <module>
      from linaro_image_tools.utils import ensure_command, is_arm_host
    File "/home/user1/Downloads/11.11/staging-snowball/staging-snowball-11.12-release-build1/linaro-image-tools/linaro_image_tools/utils.py", line 28, in <module>
      from testtools import try_import
  ImportError: No module named testtools

To manage notifications about this bug go to:
https://bugs.launchpad.net/linaro-image-tools/+bug/894644/+subscriptions


References