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

Issue 718644 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: May 2017
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Starting local master fails with exceptions.AttributeError: 'module' object has no attribute 'register_global_metrics'

Project Member Reported by hinoka@chromium.org, May 4 2017

Issue description

Running this from an synced infra checkout at aae8db911c321faba832c6531e3c13eb01497cb6.
build is at 2c5dd84cc74d0a650aa4cdc040daa8103124a7c4

Running "NO_REVISION_AUDIT=1 TESTING_MASTER=1 make start" gives me:

Traceback (most recent call last):
  File "/usr/local/google/home/hinoka/work/infra/build/third_party/twisted_10_2/twisted/application/app.py", line 631, in run
    runApp(config)
  File "/usr/local/google/home/hinoka/work/infra/build/third_party/twisted_10_2/twisted/scripts/twistd.py", line 23, in runApp
    _SomeApplicationRunner(config).run()
  File "/usr/local/google/home/hinoka/work/infra/build/third_party/twisted_10_2/twisted/application/app.py", line 374, in run
    self.application = self.createOrGetApplication()
  File "/usr/local/google/home/hinoka/work/infra/build/third_party/twisted_10_2/twisted/application/app.py", line 439, in createOrGetApplication
    application = getApplication(self.config, passphrase)
--- <exception caught here> ---
  File "/usr/local/google/home/hinoka/work/infra/build/third_party/twisted_10_2/twisted/application/app.py", line 450, in getApplication
    application = service.loadApplication(filename, style, passphrase)
  File "/usr/local/google/home/hinoka/work/infra/build/third_party/twisted_10_2/twisted/application/service.py", line 409, in loadApplication
    application = sob.loadValueFromFile(filename, 'application', passphrase)
  File "/usr/local/google/home/hinoka/work/infra/build/third_party/twisted_10_2/twisted/persisted/sob.py", line 210, in loadValueFromFile
    exec fileObj in d, d
  File "../../../build/masters/buildbot.tac", line 15, in <module>
    from buildbot.master import BuildMaster
  File "/usr/local/google/home/hinoka/work/infra/build/third_party/buildbot_8_4p1/buildbot/master.py", line 54, in <module>
    from buildbot.db import connector, exceptions
  File "/usr/local/google/home/hinoka/work/infra/build/third_party/buildbot_8_4p1/buildbot/db/connector.py", line 20, in <module>
    from buildbot.db import pool, model, changes, schedulers, sourcestamps
  File "/usr/local/google/home/hinoka/work/infra/build/third_party/buildbot_8_4p1/buildbot/db/pool.py", line 22, in <module>
    from twisted.python import threadpool, failure, versions, log
  File "/usr/local/google/home/hinoka/work/infra/build/third_party/twisted_10_2/twisted/python/threadpool.py", line 31, in <module>
    class ThreadPool:
  File "/usr/local/google/home/hinoka/work/infra/build/third_party/twisted_10_2/twisted/python/threadpool.py", line 77, in ThreadPool
    ts_mon.register_global_metrics([
exceptions.AttributeError: 'module' object has no attribute 'register_global_metrics'

Failed to load application: 'module' object has no attribute 'register_global_metrics'

 
Status: WontFix (was: Assigned)
Works for me.

Check what git repo is checked out into build/third_party/infra_libs.  It should be https://chromium.googlesource.com/infra/infra/packages/infra_libs.git at 3eddb1684ce9a315b14d7ec8f40e9f616cf50fa6.  It's done by build/DEPS, so a gclient sync should've done it.
Ah thats where it was hiding... it works now.

Weird that gclient sync in infra didn't update that dependency.
Yeah :(
It seems to skip some dependencies if they have local changes, or a dirty working tree?  Not sure.  Anyway glad it works now.

Sign in to add a comment