New issue
Advanced search Search tips

Issue 673503 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Jan 10
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

test_that fails to import chromite

Project Member Reported by benchan@chromium.org, Dec 12 2016

Issue description

In ToT, test_that fails as follows:

$ test_that
WARNING:root:Unable to import chromite. Monarch is disabled.
Traceback (most recent call last):
  File "/mnt/host/source/src/third_party/autotest/files/site_utils/test_that.py", line 23, in <module>
    from autotest_lib.server.hosts import factory
  File "/mnt/host/source/src/third_party/autotest/files/server/hosts/__init__.py", line 16, in <module>
    from adb_host import ADBHost
  File "/mnt/host/source/src/third_party/autotest/files/server/hosts/adb_host.py", line 24, in <module>
    from autotest_lib.server import afe_utils
  File "/mnt/host/source/src/third_party/autotest/files/server/afe_utils.py", line 17, in <module>
    from autotest_lib.server.cros.dynamic_suite import frontend_wrappers
  File "/mnt/host/source/src/third_party/autotest/files/server/cros/dynamic_suite/frontend_wrappers.py", line 13, in <module>
    from autotest_lib.server import frontend
  File "/mnt/host/source/src/third_party/autotest/files/server/frontend.py", line 23, in <module>
    from chromite.lib import metrics
ImportError: cannot import name metrics

 
run ./utils/build_externals in the autotest tree.
is utils/build_externals needed even for launching client tests with test_that?

Cc: ayatane@chromium.org
It's needed at least once to make sure all the of various libraries that autotest depends on are available.

ayatane@ is working on a longer term fix based on virtualenv.
Status: Archived (was: Untriaged)
Archiving P3s older than 1 year with no owner or component.

Sign in to add a comment