Precise: buildbot create-master fails because sqlalchemy is not installed

Bug #923862 reported by Gary Poster on 2012-01-30
This bug affects 1 person
Affects Status Importance Assigned to Milestone
buildbot (Ubuntu)
Canonical Server Team

Bug Description

On Precise, the buildbot create-master command fails because sqlalchemy is not installed. I have not yet investigated whether simply getting sqlalchemy fixes it, but adding it as a dependency is an obvious first step. I'm happy to help debug if desired.

Gary Poster (gary) wrote :

After you install sqlalchemy, you get another error:

$ sudo buildbot create-master /var/lib/buildbot/masters/example
updating existing installation
chdir /var/lib/buildbot/masters/example
buildbot.tac already exists and is correct
master.cfg.sample already exists and is up-to-date
public_html/ already exists: not replacing
Makefile.sample already exists and is correct
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/", line 287, in addCallbacks
  File "/usr/lib/python2.7/dist-packages/twisted/internet/", line 545, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/", line 426, in _continueFiring
    callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/buildbot/scripts/", line 36, in async
    d = defer.maybeDeferred(f, *args, **kwargs)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/", line 134, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/buildbot/scripts/", line 626, in createMaster
    d = m.create_db()
  File "/usr/lib/python2.7/dist-packages/buildbot/scripts/", line 300, in create_db
    from buildbot.db import connector
  File "/usr/lib/python2.7/dist-packages/buildbot/db/", line 20, in <module>
    from buildbot.db import pool, model, changes, schedulers, sourcestamps
  File "/usr/lib/python2.7/dist-packages/buildbot/db/", line 17, in <module>
    import migrate
exceptions.ImportError: No module named migrate

There is a /usr/lib/python2.7/dist-packages/buildbot/db/migrate directory but it does not have any python files in it, let alone a file. The versions directory within it does. I'm not sure what is intended.

Gary Poster (gary) wrote :
Gary Poster (gary) wrote :

The answer is that buildbot 0.8.5 depends on both python-sqlalchemy and python-migrate. When I installed both of these, everything seemed to work fine. Thank you to Dustin Mitchell for the speedy reply.

Changed in buildbot (Ubuntu):
assignee: nobody → Canonical Server Team (canonical-server)
Matthias Klose (doko) wrote :

fixed in 0.8.2-2

Changed in buildbot (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers