[Buildbot-devel] Installation question (on Ubuntu 10.10) from a beginner.

Eduardo eduardo at imperial.ac.uk
Wed Jan 26 18:55:35 UTC 2011


Dear all,

This is my first post so please bear with me.
I am installing buildbot from the buildbot-0.8.3p1.zip and buildbot-slave-
0.8.3.zip files.

I have followed the instructions in 
http://buildbot.net/buildbot/docs/current/Installing-the-code.html#InsAtalling-
the-code 
and have managed to get an output from the commands
   buildbot --version
Output:
   Buildbot version: 0.8.3p1
   Twisted version: 10.1.0

and
   buildslave --version
Output:
   Buildslave version: 0.8.3
   Twisted version: 10.1.0

The machine in which I am installing this has three folders for python in the 
/usr/lib/ directory:
python2.6
python2.7
python3

I have had a look and it seems that all has been installed in the folder of 
python2.6 and also the command "python --version" returns "Python 2.6.6".


The problem I have is that the unit tests are failing. I have run these by 
typing the commands recommended in 
http://buildbot.net/buildbot/docs/current/Installing-the-code.html#InsAtalling-
the-code
----------------
     PYTHONPATH=. trial buildbot.test
     # or
     PYTHONPATH=. trial buildslave.test
----------------

Both of them run but some of the tests fail. The output of running "PYTHONPATH=. 
trial buildbot.test" is copied below.

Any help on how to fix this and move on would be most greatly appreciated!!!

Regards,

Eduardo





===================

===============================================================================
[SKIPPED]: 
buildbot.test.regressions.test_import_unicode_changes.TestMySQLDBUnicodeChanges.
testAsciiChange

MySQLdb not installed
===============================================================================
[SKIPPED]: 
buildbot.test.regressions.test_import_unicode_changes.TestMySQLDBUnicodeChanges.
testNonUnicodeChange

MySQLdb not installed
===============================================================================
[SKIPPED]: 
buildbot.test.regressions.test_import_unicode_changes.TestMySQLDBUnicodeChanges.
testUTF16Change

MySQLdb not installed
===============================================================================
[SKIPPED]: 
buildbot.test.regressions.test_import_unicode_changes.TestMySQLDBUnicodeChanges.
testUnicodeChange

MySQLdb not installed
===============================================================================
[SKIPPED]: 
buildbot.test.unit.test_db_schema_master.MySQLDBSchemaManager.test_get_current_v
ersion

MySQLdb not installed
===============================================================================
[SKIPPED]: 
buildbot.test.unit.test_db_schema_master.MySQLDBSchemaManager.test_get_db_versio
n_empty

MySQLdb not installed
===============================================================================
[SKIPPED]: 
buildbot.test.unit.test_db_schema_master.MySQLDBSchemaManager.test_get_db_versio
n_int

MySQLdb not installed
===============================================================================
[SKIPPED]: 
buildbot.test.unit.test_db_schema_master.MySQLDBSchemaManager.test_is_current_em
pty

MySQLdb not installed
===============================================================================
[SKIPPED]: 
buildbot.test.unit.test_db_schema_master.MySQLDBSchemaManager.test_is_current_em
pty_upgrade

MySQLdb not installed
===============================================================================
[SKIPPED]: 
buildbot.test.unit.test_db_schema_master.MySQLDBSchemaManager.test_scheduler_nam
e_uniqueness

MySQLdb not installed
===============================================================================
[SKIPPED]: 
buildbot.test.unit.test_db_schema_master.MySQLDBSchemaManager.test_upgrade_empty

MySQLdb not installed
===============================================================================
[SKIPPED]: 
buildbot.test.unit.test_db_schema_master.MySQLDBSchemaManager.test_upgrade_full

MySQLdb not installed
===============================================================================
[FAIL]: 
buildbot.test.unit.test_contrib_buildbot_cvs_mail.TestBuildbotCvsMail.test_build
bot_cvs_mail_from_cvs1_11

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/unit/test_contrib_buildbot_cvs_mail.py", line 108, in 
test_buildbot_cvs_mail_from_cvs1_11
    self.assertOutputOk(p, stdoutdata, golden_1_11_regex )
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/unit/test_contrib_buildbot_cvs_mail.py", line 86, in 
assertOutputOk
    self.failUnlessEqual(p.returncode, 0, "subprocess exited uncleanly")
twisted.trial.unittest.FailTest: subprocess exited uncleanly
not equal:
a = 2
b = 0

===============================================================================
[FAIL]: 
buildbot.test.unit.test_contrib_buildbot_cvs_mail.TestBuildbotCvsMail.test_build
bot_cvs_mail_from_cvs1_12

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/unit/test_contrib_buildbot_cvs_mail.py", line 121, in 
test_buildbot_cvs_mail_from_cvs1_12
    self.assertOutputOk(p, stdoutdata, golden_1_12_regex )
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/unit/test_contrib_buildbot_cvs_mail.py", line 86, in 
assertOutputOk
    self.failUnlessEqual(p.returncode, 0, "subprocess exited uncleanly")
twisted.trial.unittest.FailTest: subprocess exited uncleanly
not equal:
a = 2
b = 0

===============================================================================
[ERROR]: buildbot.test.unit.test_changes_base

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/trial/runner.py", line 584, in 
loadPackage
    module = modinfo.load()
  File "/usr/lib/python2.6/dist-packages/twisted/python/modules.py", line 383, 
in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/usr/lib/python2.6/dist-packages/twisted/python/reflect.py", line 464, 
in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/unit/test_changes_base.py", line 19, in <module>
    from buildbot.test.util import changesource
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/util/changesource.py", line 16, in <module>
    import mock
exceptions.ImportError: No module named mock
===============================================================================
[ERROR]: buildbot.test.unit.test_changes_bonsaipoller

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/trial/runner.py", line 584, in 
loadPackage
    module = modinfo.load()
  File "/usr/lib/python2.6/dist-packages/twisted/python/modules.py", line 383, 
in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/usr/lib/python2.6/dist-packages/twisted/python/reflect.py", line 464, 
in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/unit/test_changes_bonsaipoller.py", line 22, in <module>
    from buildbot.test.util import changesource
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/util/changesource.py", line 16, in <module>
    import mock
exceptions.ImportError: No module named mock
===============================================================================
[ERROR]: buildbot.test.unit.test_changes_gerritchangesource

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/trial/runner.py", line 584, in 
loadPackage
    module = modinfo.load()
  File "/usr/lib/python2.6/dist-packages/twisted/python/modules.py", line 383, 
in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/usr/lib/python2.6/dist-packages/twisted/python/reflect.py", line 464, 
in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/unit/test_changes_gerritchangesource.py", line 18, in 
<module>
    from buildbot.test.util import changesource
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/util/changesource.py", line 16, in <module>
    import mock
exceptions.ImportError: No module named mock
===============================================================================
[ERROR]: buildbot.test.unit.test_changes_gitpoller

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/trial/runner.py", line 584, in 
loadPackage
    module = modinfo.load()
  File "/usr/lib/python2.6/dist-packages/twisted/python/modules.py", line 383, 
in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/usr/lib/python2.6/dist-packages/twisted/python/reflect.py", line 464, 
in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/unit/test_changes_gitpoller.py", line 20, in <module>
    from buildbot.test.util import changesource
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/util/changesource.py", line 16, in <module>
    import mock
exceptions.ImportError: No module named mock
===============================================================================
[ERROR]: buildbot.test.unit.test_changes_pb

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/trial/runner.py", line 584, in 
loadPackage
    module = modinfo.load()
  File "/usr/lib/python2.6/dist-packages/twisted/python/modules.py", line 383, 
in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/usr/lib/python2.6/dist-packages/twisted/python/reflect.py", line 464, 
in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/unit/test_changes_pb.py", line 21, in <module>
    import mock
exceptions.ImportError: No module named mock
===============================================================================
[ERROR]: buildbot.test.unit.test_master_cleanshutdown

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/trial/runner.py", line 584, in 
loadPackage
    module = modinfo.load()
  File "/usr/lib/python2.6/dist-packages/twisted/python/modules.py", line 383, 
in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/usr/lib/python2.6/dist-packages/twisted/python/reflect.py", line 464, 
in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/unit/test_master_cleanshutdown.py", line 17, in <module>
    from mock import Mock
exceptions.ImportError: No module named mock
===============================================================================
[ERROR]: buildbot.test.unit.test_pbmanager

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/trial/runner.py", line 584, in 
loadPackage
    module = modinfo.load()
  File "/usr/lib/python2.6/dist-packages/twisted/python/modules.py", line 383, 
in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/usr/lib/python2.6/dist-packages/twisted/python/reflect.py", line 464, 
in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/unit/test_pbmanager.py", line 17, in <module>
    import mock
exceptions.ImportError: No module named mock
===============================================================================
[ERROR]: buildbot.test.unit.test_process_base

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/trial/runner.py", line 584, in 
loadPackage
    module = modinfo.load()
  File "/usr/lib/python2.6/dist-packages/twisted/python/modules.py", line 383, 
in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/usr/lib/python2.6/dist-packages/twisted/python/reflect.py", line 464, 
in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/unit/test_process_base.py", line 25, in <module>
    from mock import Mock
exceptions.ImportError: No module named mock
===============================================================================
[ERROR]: buildbot.test.unit.test_status_builder_LogFileProducer

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/trial/runner.py", line 584, in 
loadPackage
    module = modinfo.load()
  File "/usr/lib/python2.6/dist-packages/twisted/python/modules.py", line 383, 
in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/usr/lib/python2.6/dist-packages/twisted/python/reflect.py", line 464, 
in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/unit/test_status_builder_LogFileProducer.py", line 16, 
in <module>
    import mock
exceptions.ImportError: No module named mock
===============================================================================
[ERROR]: buildbot.test.unit.test_status_mail_MailNotifier

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/trial/runner.py", line 584, in 
loadPackage
    module = modinfo.load()
  File "/usr/lib/python2.6/dist-packages/twisted/python/modules.py", line 383, 
in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/usr/lib/python2.6/dist-packages/twisted/python/reflect.py", line 464, 
in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/unit/test_status_mail_MailNotifier.py", line 16, in 
<module>
    from mock import Mock
exceptions.ImportError: No module named mock
===============================================================================
[ERROR]: buildbot.test.unit.test_status_web_change_hook

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/trial/runner.py", line 584, in 
loadPackage
    module = modinfo.load()
  File "/usr/lib/python2.6/dist-packages/twisted/python/modules.py", line 383, 
in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/usr/lib/python2.6/dist-packages/twisted/python/reflect.py", line 464, 
in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/unit/test_status_web_change_hook.py", line 18, in 
<module>
    from buildbot.test.fake.web import MockRequest
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/fake/web.py", line 16, in <module>
    from mock import Mock
exceptions.ImportError: No module named mock
===============================================================================
[ERROR]: buildbot.test.unit.test_status_web_change_hooks_github

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/trial/runner.py", line 584, in 
loadPackage
    module = modinfo.load()
  File "/usr/lib/python2.6/dist-packages/twisted/python/modules.py", line 383, 
in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/usr/lib/python2.6/dist-packages/twisted/python/reflect.py", line 464, 
in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/unit/test_status_web_change_hooks_github.py", line 17, 
in <module>
    from buildbot.test.fake.web import MockRequest
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/fake/web.py", line 16, in <module>
    from mock import Mock
exceptions.ImportError: No module named mock
===============================================================================
[ERROR]: buildbot.test.unit.test_steps_slave

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/trial/runner.py", line 584, in 
loadPackage
    module = modinfo.load()
  File "/usr/lib/python2.6/dist-packages/twisted/python/modules.py", line 383, 
in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/usr/lib/python2.6/dist-packages/twisted/python/reflect.py", line 464, 
in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/unit/test_steps_slave.py", line 18, in <module>
    from mock import Mock
exceptions.ImportError: No module named mock
===============================================================================
[ERROR]: buildbot.test.unit.test_steps_transfer

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/trial/runner.py", line 584, in 
loadPackage
    module = modinfo.load()
  File "/usr/lib/python2.6/dist-packages/twisted/python/modules.py", line 383, 
in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/usr/lib/python2.6/dist-packages/twisted/python/reflect.py", line 464, 
in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-
py2.6.egg/buildbot/test/unit/test_steps_transfer.py", line 19, in <module>
    from mock import Mock
exceptions.ImportError: No module named mock
-------------------------------------------------------------------------------
Ran 325 tests in 68.532s

FAILED (skips=12, failures=2, errors=14, successes=297)








More information about the devel mailing list