pip install lava-test and said no module apt
This bug report was converted into a question: question #190427: pip install lava-test and said no module apt.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Obsolete LAVA Test |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi all:
When I set python env on board,then install lava-test on board use pip
pip install lava-test
and it occur
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
run_
File "/usr/lib/
raise SystemExit(
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
File "/usr/lib/
from lava_test.
File "/usr/lib/
from lava_test.core import hwprofile, swprofile
File "/usr/lib/
import apt
ImportError: No module named apt
How to fix it?
If I install python-apt-0.7.8 (I down from internet),it occur
building 'apt_pkg' extension
arm-angstrom-
unable to execute arm-angstrom-
error: command 'arm-angstrom-
What a nightmare,it call tools chain
can this part delete ,because I think my board don't use apt command?It not ,then how to fix?
Thanks a lot
Apt support is optional now. Code for this has landed in trunk.
If you don't use apt then simply pass the -S / --skip- software- context option to lava-test run.
See below:
$ lava-test run --help
[--analyzer- assigned- uuid UUID] [-o FILE] [-A]
[-t TEST_OPTIONS]
test_id
usage: lava-test run [-h] [-v] [-q] [-Q] [-S] [-H] [--trusted-time]
positional arguments:
test_id Test or test suite identifier
optional arguments:
Hide the output of all sub-commands (including tests)
Override the default test options. The value is passed
verbatim to test definition. Typically this is simply
used in shell commands by expanding the string
$(OPTIONS) . Please refer to the built-in
peacekeeper. py for examples. Depending on your shell
you probably have to escape spaces and other special
characters if you wish to include them in your
argument options.
-h, --help show this help message and exit
-v, --verbose Be verbose about undertaken actions
-q, --quiet Be less verbose about undertaken actions
-Q, --quiet-subcommands
-t TEST_OPTIONS, --test-options TEST_OPTIONS
initial bundle configuration: software- context
Do not store the software context in the initial
bundle. Typically this saves OS image name and all the
installed software packages. hardware- context
Do not store the hardware context in the initial
bundle. Typically this saves CPU, memory and USB
device information.
This can differentiate test results created on
embedded devices that often have inaccurate real time
clock settings. assigned- uuid UUID
Set the analyzer_ assigned_ uuid to the specified value.
This will prevent the test device from attempting to
generate an UUID by itself. This option may be
required if the test device has unreliable real time
clock (no battery backed, not ensure to be up-to-date)
and unreliable/random hardware ethernet address.
-S, --skip-
-H, --skip-
--trusted-time Indicate that the real time clock has accurate data.
--analyzer-
complete bundle configuration:
After running the test parse the result artifacts,
fuse them with the initial bundle and finally save the
complete bundle to the specified FILE.
Do not store standard output and standard error log
files as attachments. This option is only affecting
the bundle created with --output, the initial bundle
is not affected a...
-o FILE, --output FILE
-A, --skip-attachments