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

Bug #923862 reported by Gary Poster
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
buildbot (Ubuntu)
Fix Released
Undecided
Canonical Server

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.

Revision history for this message
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/defer.py", line 287, in addCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 426, in _continueFiring
    callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/buildbot/scripts/runner.py", line 36, in async
    d = defer.maybeDeferred(f, *args, **kwargs)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 134, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/buildbot/scripts/runner.py", line 626, in createMaster
    d = m.create_db()
  File "/usr/lib/python2.7/dist-packages/buildbot/scripts/runner.py", line 300, in create_db
    from buildbot.db import connector
  File "/usr/lib/python2.7/dist-packages/buildbot/db/connector.py", line 20, in <module>
    from buildbot.db import pool, model, changes, schedulers, sourcestamps
  File "/usr/lib/python2.7/dist-packages/buildbot/db/model.py", 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 __init__.py file. The versions directory within it does. I'm not sure what is intended.

Revision history for this message
Gary Poster (gary) wrote :
Revision history for this message
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)
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.