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

Bug #894644 reported by Abhishek Paliwal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Image Tools
Invalid
Undecided
Unassigned

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

Revision history for this message
Mattias Backman (mabac) wrote :

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

Revision history for this message
Abhishek Paliwal (abhishek-paliwal) wrote :

@Mattias, works fine after installing python-testtools. Thanks.

Revision history for this message
Mattias Backman (mabac) wrote :

Ah now I see that it wasn't even installed. Not the same error that was caused by broken python-testtools then.

Changed in linaro-image-tools:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.