New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 786405 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Oct 4
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Launching tools/perf/run_benchmark fails with "ImportError: No module named psutil"

Project Member Reported by asvitk...@chromium.org, Nov 17 2017

Issue description

Launching tools/perf/run_benchmark fails with "ImportError: No module named psutil".

This is on my corp Mac desktop which I use for development.

Output:

tools/perf/run_benchmark try all-mac loading.desktop

Traceback (most recent call last):
  <module> at /Users/asvitkine/chromium/src/tools/perf/run_benchmark:9
    from core import trybot_command
  <module> at /Users/asvitkine/chromium/src/tools/perf/core/trybot_command.py:20
    from core import benchmark_finders
  <module> at /Users/asvitkine/chromium/src/tools/perf/core/benchmark_finders.py:10
    from core import perf_benchmark
  <module> at /Users/asvitkine/chromium/src/tools/perf/core/perf_benchmark.py:8
    from telemetry import benchmark
  <module> at /Users/asvitkine/chromium/src/third_party/catapult/telemetry/telemetry/benchmark.py:10
    from telemetry.internal import story_runner
  <module> at /Users/asvitkine/chromium/src/third_party/catapult/telemetry/telemetry/internal/story_runner.py:13
    from py_utils import memory_debug  # pylint: disable=import-error
  <module> at /Users/asvitkine/chromium/src/third_party/catapult/common/py_utils/py_utils/memory_debug.py:9
    import psutil
ImportError: No module named psutil

I worked around this issue by changing story_runner.py to comment out some lines:

#from py_utils import       #memory_debug.LogHostMemoryUsage()

  # pylint: disable=import-error



 
Cc: nednguyen@chromium.org
+ned for the telemetry issue

I just noticed you're trying to run on a mac trybot, and unfortunately we're midway through switching the old bisect/trybots to Pinpoint. Mac and linux are running through Pinpoint, with Windows/Android to follow shortly. Dave's working on documentation for Pinpoint, as well as a more advanced perf try dialog but you can go to an existing Pinpoint job (like https://pinpoint-dot-chromeperf.appspot.com/job/1010e479f80000), click the button in the bottom right, enter a gerrit url, and it'll start up a try job there.
Thanks!

When I go there and enter https://chromium-review.googlesource.com/c/chromium/src/+/775994

It tells me:

"Job undefined
Invalid job id."

So the pinpoint way doesn't seem to work either?
Cc: dtu@chromium.org
+dtu
Ran into the same issue, looks like I wasn't logged in and Pinpoint didn't give a helpful error message. Your job is running here: https://pinpoint-dot-chromeperf.appspot.com/job/1488855df80000

Filed https://github.com/catapult-project/catapult/issues/4052
Thanks!
Owner: ----
Status: Available (was: Assigned)
Status: WontFix (was: Available)
With vpython, I think this problem is no longer relevant

Sign in to add a comment