[Buildbot-devel] Unit tests failing (Mandriva Linux 2008)

Ian Britten britten at caris.com
Mon Jun 16 14:01:11 UTC 2008


Jean-Paul Calderone wrote:

>> Currently, I've have (Amongst a lot of stuff I've tried):
>> - buildbot-0.7.6-1mdv2008.1
>> - python-2.5.2-2.1mdv2008.1
>> - python-zope-interface-3.3.0-3mdv2008.0
>> - python-twisted-2.5.0-1mdv2008.0
>> - python-twisted-mail-0.3.0-2mdv2008.1
>> - A bunch of other python-twisted-stuff (conch, core, lore, etc)
>> - A bunch of other python stuff (base, cairo, dbus, etc)
> 
> 
> I don't know Mandriva's packaging, but I'm guessing python-twisted-2.5.0
> is actually just Twisted Core 2.5.0 (otherwise there'd be no point to
> installing python-twisted-mail-0.3.0 as well).

 From a packaging perspective, the seem to be different.  I have both
- python-twisted-2.5.0-1mdv2008.0
- python-twisted-core-2.5.0-3mdv2008.1
However, they both seem to be v2.5.0 ...

> However, Twisted Core 2.5.0 and Twisted Mail 0.3.0 are not compatible.
 > You either need Twisted Mail 0.4.0 or Twisted Core 2.4.0.

Mail eh?  Sorry, but I never would have suspected that as the problem
from the error messages... :P

Well, I'm not sure what the version number means, but it seems that
the next version of python-twisted-mail jumps from 0.3 to 8.1!
http://fr2.rpmfind.net/linux/rpm2html/search.php?query=python-twisted-mail&submit=Search+...&system=mandriva&arch=

So, I tried backporting/installing it, and the unit tests seem to
have gotten *much* further!  There's still a couple of disconcerting
looking messages, but it's looking pretty close!


---------------- OUTPUT -----------------------
% PYTHONPATH=. trial buildbot.test
Traceback (most recent call last):
   File "/usr/lib/python2.5/site-packages/twisted/python/usage.py", line 199, in 
parseOptions
     self.postOptions()
   File "/usr/lib/python2.5/site-packages/twisted/scripts/trial.py", line 279, 
in postOptions
     self['reporter'] = self._loadReporterByName(self['reporter'])
   File "/usr/lib/python2.5/site-packages/twisted/scripts/trial.py", line 265, 
in _loadReporterByName
     for p in plugin.getPlugins(itrial.IReporter):
   File "/usr/lib/python2.5/site-packages/twisted/plugin.py", line 227, in 
getPlugins
     allDropins = getCache(package)
--- <exception caught here> ---
   File "/usr/lib/python2.5/site-packages/twisted/plugin.py", line 178, in getCache
     provider = namedAny(module.__name__ + '.' + moduleName)
   File "/usr/lib/python2.5/site-packages/twisted/python/reflect.py", line 357, 
in namedAny
     topLevelPackage = __import__(trialname)
   File "/usr/lib/python2.5/site-packages/twisted/plugins/twisted_mail.py", line 
4, in <module>
     from twisted.application.service import ServiceMaker
exceptions.ImportError: cannot import name ServiceMaker
Running 289 tests.
buildbot.test.test__versions
   Versions

[ snip ]

Ran 289 tests in 208.392s

PASSED (skips=37, successes=252)
Exception exceptions.AttributeError: "'NoneType' object has no attribute 
'StringIO'" in <bound method RemoteReference.__del__ of 
<twisted.spread.pb.RemoteReference instance at 0x8fa426c>> ignored

---------------- OUTPUT -----------------------


> It seems like a bug (which could only have gotten by with zero testing,
 > but that seems to be the standard for distro packages :/) in the
 > Mandriva packaging that this combination is even allowed.

Ya, it seems that way.  Now that the problem seems to be isolated,
I'll be trying to point this out to them, to hopefully fix+prevent it
in the future.

Many thanks for all the help so far!  If I can get those last couple
of messages resolved (Or, get confirmation they can be ignored), then
I think I'll be ready to start trying to actually *use* buildbot... ;)
Ian




More information about the devel mailing list