[Buildbot-devel] pyasn1-0.1.1 seems to break manhole on new install

Maarten Verwijs ik at maartenverwijs.nl
Tue Nov 22 13:21:28 UTC 2011



I posted the following on trac, but got tagged as spam. Here's a second
go: 


On november 6th there was a new version of pyasn1 released on
http://pypi.python.org/packages/2.6/p/pyasn1/. 

Using this version breaks the import of manhole when doing a new
installation of a master.

Installing the previous version using pip, all works fine. 

== Solution ==

(Workaround really):

{{{
pip install pyasn1==0.0.13b
}}}

Preferably the tutorial should reflect this.

== Versions ==

* Buildbot 0.8.5
* pyasn1 0.1.1
* Debian 6 AMD64


== Reproduce ==

* Follow the official Buildbot tutorial
* (http://buildbot.net/buildbot/docs/0.8.5/tutorial/firstrun.html)
* When importing manhole from buildbot, start or reconfig will fail. 
* Downgrading pyasn1 to 0.0.13b or earlier fixes it.

The startup log using pyasn1-0.1.1: 

{{{
(buggy)buildmaster at dev-openpanel2:~$ buildbot start master
Following twistd.log until startup finished..
2011-11-22 13:17:57+0100 [-] Log opened.
2011-11-22 13:17:57+0100 [-] twistd 11.1.0
(/home/buildmaster/buggy/bin/python 2.6.6) starting up.
2011-11-22 13:17:57+0100 [-] reactor class:
twisted.internet.pollreactor.PollReactor.
2011-11-22 13:17:57+0100 [-] Applying patch for
http://twistedmatrix.com/trac/ticket/5079
2011-11-22 13:17:57+0100 [-] Creating BuildMaster -- buildbot.version:
0.8.5
2011-11-22 13:17:57+0100 [-] loading configuration from
/home/buildmaster/master/master.cfg
2011-11-22 13:17:57+0100 [-] configuration update started
2011-11-22 13:17:57+0100 [-] error while parsing config file
2011-11-22 13:17:57+0100 [-] Unhandled Error
    Traceback (most recent call last):
      File
"/home/buildmaster/buggy/lib/python2.6/site-packages/buildbot-0.8.5-py2.6.egg/buildbot/master.py",
line 197, in loadTheConfigFile
        d = self.loadConfig(f)
      File
"/home/buildmaster/buggy/lib/python2.6/site-packages/buildbot-0.8.5-py2.6.egg/buildbot/master.py",
line 579, in loadConfig
        d.addCallback(do_load)
      File
"/home/buildmaster/buggy/lib/python2.6/site-packages/Twisted-11.1.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py",
line 298, in addCallback
        callbackKeywords=kw)
      File
"/home/buildmaster/buggy/lib/python2.6/site-packages/Twisted-11.1.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py",
line 287, in addCallbacks
        self._runCallbacks()
    --- <exception caught here> ---
      File
"/home/buildmaster/buggy/lib/python2.6/site-packages/Twisted-11.1.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py",
line 545, in _runCallbacks
        current.result = callback(current.result, *args, **kw)
      File
"/home/buildmaster/buggy/lib/python2.6/site-packages/buildbot-0.8.5-py2.6.egg/buildbot/master.py",
line 226, in do_load
        exec f in localDict
      File "/home/buildmaster/master/master.cfg", line 5, in <module>
        from buildbot import manhole
      File
"/home/buildmaster/buggy/lib/python2.6/site-packages/buildbot-0.8.5-py2.6.egg/buildbot/manhole.py",
line 24, in <module>
        from twisted.conch import manhole, telnet, manhole_ssh, checkers
as conchc
      File
"/home/buildmaster/buggy/lib/python2.6/site-packages/Twisted-11.1.0-py2.6-linux-x86_64.egg/twisted/conch/manhole_ssh.py",
line 120, in <module>
        class ConchFactory(factory.SSHFactory):
      File
"/home/buildmaster/buggy/lib/python2.6/site-packages/Twisted-11.1.0-py2.6-linux-x86_64.egg/twisted/conch/manhole_ssh.py",
line 141, in ConchFactory
        'ssh-rsa' : keys.Key.fromString(privateKey)
      File
"/home/buildmaster/buggy/lib/python2.6/site-packages/Twisted-11.1.0-py2.6-linux-x86_64.egg/twisted/conch/ssh/keys.py",
line 90, in fromString
        return method(data, passphrase)
      File
"/home/buildmaster/buggy/lib/python2.6/site-packages/Twisted-11.1.0-py2.6-linux-x86_64.egg/twisted/conch/ssh/keys.py",
line 234, in _fromString_PRIVATE_OPENSSH
        return Class(RSA.construct((n, e, d, p, q)))
      File
"/home/buildmaster/buggy/lib/python2.6/site-packages/Crypto/PublicKey/RSA.py",
line 235, in construct
        key = self._math.rsa_construct(*tup)
      File
"/home/buildmaster/buggy/lib/python2.6/site-packages/Crypto/PublicKey/_slowmath.py",
line 85, in rsa_construct
        assert isinstance(e, long)
    exceptions.AssertionError: 
    

The buildmaster took more than 10 seconds to start, so we were unable to
confirm that it started correctly. Please 'tail twistd.log' and look for
a
line that says 'configuration update complete' to verify correct
startup.

(buggy)buildmaster at dev-openpanel2:~$ buildbot stop master
buildbot process 22006 is dead
}}}





More information about the devel mailing list