hi, I got 'twisted.internet.defer.alreadycallederror' error back.<br>here is my code, what's wrong in it? thanks for help.<br><br>class snmpFactory:<br>&nbsp;&nbsp;&nbsp; def __init__(self, filename):<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.deferred = defer.Deferred
()<br><br>&nbsp;&nbsp;&nbsp; def readValue(self):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vol = readValue(self.voltageIp, voltageOid)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp = readValue(self.powerIp, temperatureOid)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.deferred.callback((vol, temp))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.deferred.addCallback
(self.handleResult)<br>&nbsp;&nbsp;&nbsp; def handleResult(self, (vol, temp)):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; slice = time.strftime(&quot;%H:%M:%S&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print slice, ' the voltage is %s\nthe temperature is %s' % (vol, temp)<br><br>s = snmpFactory()
<br>i = 1<br>while (i &lt; 10):<br>&nbsp;&nbsp;&nbsp; reactor.callLater(5, s.readSnmpValue)<br>&nbsp;&nbsp;&nbsp; i += 1<br>&nbsp;&nbsp;&nbsp; time.sleep(10)<br>reactor.run()<br>