[Buildbot-devel] buildbot-0.7.9 TypeError: self.startTime is NoneType

Chris Shenton Chris.Shenton at nasa.gov
Thu Sep 25 19:02:47 UTC 2008


I'm a bit of a buildbot newbie but noticed this when 0.7.9 came out. I  
figured it was me, and went back to 0.7.8.
Now that I've got a weeks experience, I figured I'd try 0.7.9 again.  
Same error.

In my builder, rhel_x86_64, the twistd.log file shows the following,  
whether by svn poll or manual click-to-build:

2008-09-25 14:50:45-0400 [Broker,client]  environment: {...}
2008-09-25 14:50:45-0400 [Broker,client]   closing stdin
2008-09-25 14:50:45-0400 [Broker,client]   using PTY: True
2008-09-25 14:50:45-0400 [-] Unhandled Error
         Traceback (most recent call last):
           File "/usr/local/home/cshenton/buildbot_buildout/eggs/ 
Twisted-8.1.0-py2.4-linux-x86_64.egg/\
twisted/internet/process.py", line 44, in reapAllProcesses
             process.reapProcess()
           File "/usr/local/home/cshenton/buildbot_buildout/eggs/ 
Twisted-8.1.0-py2.4-linux-x86_64.egg/\
twisted/internet/process.py", line 297, in reapProcess
             self.processEnded(status)
           File "/usr/local/home/cshenton/buildbot_buildout/eggs/ 
Twisted-8.1.0-py2.4-linux-x86_64.egg/\
twisted/internet/process.py", line 882, in processEnded
             self.maybeCallProcessEnded()
           File "/usr/local/home/cshenton/buildbot_buildout/eggs/ 
Twisted-8.1.0-py2.4-linux-x86_64.egg/\
twisted/internet/process.py", line 906, in maybeCallProcessEnded
             _BaseProcess.maybeCallProcessEnded(self)
         --- <exception caught here> ---
           File "/usr/local/home/cshenton/buildbot_buildout/eggs/ 
Twisted-8.1.0-py2.4-linux-x86_64.egg/\
twisted/internet/process.py", line 333, in maybeCallProcessEnded
             self.proto.processEnded(failure.Failure(e))
           File "/usr/local/home/cshenton/buildbot_buildout/eggs/ 
buildbot-0.7.9-py2.4.egg/buildbot/sla\
ve/commands.py", line 158, in processEnded
             self.command.finished(sig, rc)
           File "/usr/local/home/cshenton/buildbot_buildout/eggs/ 
buildbot-0.7.9-py2.4.egg/buildbot/sla\
ve/commands.py", line 474, in finished
             self.elapsedTime = time.time() - self.startTime
         exceptions.TypeError: unsupported operand type(s) for -:  
'float' and 'NoneType'

I am only guessing here but setting that class var to time.time()  
might be what was meant?

*** commands.py~        2008-09-17 14:06:39.000000000 -0400
--- commands.py 2008-09-25 14:59:26.000000000 -0400
***************
*** 225,231 ****
       CHUNK_LIMIT = 128*1024

       # For sending elapsed time:
!     startTime = None
       elapsedTime = None
       # I wish we had easy access to CLOCK_MONOTONIC in Python:
       # http://www.opengroup.org/onlinepubs/000095399/functions/clock_getres.html
--- 225,232 ----
       CHUNK_LIMIT = 128*1024

       # For sending elapsed time:
!     ##??startTime = None
!     startTime = time.time()
       elapsedTime = None
       # I wish we had easy access to CLOCK_MONOTONIC in Python:
       # http://www.opengroup.org/onlinepubs/000095399/functions/clock_getres.html






-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 9008 bytes
Desc: not available
URL: <http://buildbot.net/pipermail/devel/attachments/20080925/88c07b0a/attachment.bin>


More information about the devel mailing list