Thanks, Phil. <br><br>I tried this and now I get a different error which I&#39;m not sure what to do with:<br><br>Traceback (most recent call last):<br>&nbsp; File &quot;twisted_help.py&quot;, line 186, in &lt;module&gt;<br>&nbsp;&nbsp;&nbsp; reactor.run()<br>
&nbsp; File &quot;C:\Python25\lib\site-packages\twisted\internet\posixbase.py&quot;, line 220,<br>in run<br>&nbsp;&nbsp;&nbsp; self.mainLoop()<br>&nbsp; File &quot;C:\Python25\lib\site-packages\twisted\internet\posixbase.py&quot;, line 228,<br>in mainLoop<br>
&nbsp;&nbsp;&nbsp; self.runUntilCurrent()<br>--- &lt;exception caught here&gt; ---<br>&nbsp; File &quot;C:\Python25\lib\site-packages\twisted\internet\base.py&quot;, line 561, in ru<br>nUntilCurrent<br>&nbsp;&nbsp;&nbsp; call.func(*call.args, **<a href="http://call.kw">call.kw</a>)<br>
&nbsp; File &quot;C:\Python25\lib\site-packages\twisted\internet\base.py&quot;, line 411, in _c<br>ontinueSystemEvent<br>&nbsp;&nbsp;&nbsp; for callList in sysEvtTriggers[1], sysEvtTriggers[2]:<br>exceptions.TypeError: &#39;NoneType&#39; object is unsubscriptable<br>
Traceback (most recent call last):<br>&nbsp; File &quot;twisted_help.py&quot;, line 186, in &lt;module&gt;<br>&nbsp;&nbsp;&nbsp; reactor.run()<br>&nbsp; File &quot;C:\Python25\lib\site-packages\twisted\internet\posixbase.py&quot;, line 220,<br>in run<br>
&nbsp;&nbsp;&nbsp; self.mainLoop()<br>&nbsp; File &quot;C:\Python25\lib\site-packages\twisted\internet\posixbase.py&quot;, line 228,<br>in mainLoop<br>&nbsp;&nbsp;&nbsp; self.runUntilCurrent()<br>--- &lt;exception caught here&gt; ---<br>&nbsp; File &quot;C:\Python25\lib\site-packages\twisted\internet\base.py&quot;, line 561, in ru<br>
nUntilCurrent<br>&nbsp;&nbsp;&nbsp; call.func(*call.args, **<a href="http://call.kw">call.kw</a>)<br>&nbsp; File &quot;C:\Python25\lib\site-packages\twisted\internet\base.py&quot;, line 411, in _c<br>ontinueSystemEvent<br>&nbsp;&nbsp;&nbsp; for callList in sysEvtTriggers[1], sysEvtTriggers[2]:<br>
exceptions.TypeError: &#39;NoneType&#39; object is unsubscriptable<br>Traceback (most recent call last):<br>&nbsp; File &quot;twisted_help.py&quot;, line 186, in &lt;module&gt;<br>&nbsp;&nbsp;&nbsp; reactor.run()<br>&nbsp; File &quot;C:\Python25\lib\site-packages\twisted\internet\posixbase.py&quot;, line 220,<br>
in run<br>&nbsp;&nbsp;&nbsp; self.mainLoop()<br>&nbsp; File &quot;C:\Python25\lib\site-packages\twisted\internet\posixbase.py&quot;, line 228,<br>in mainLoop<br>&nbsp;&nbsp;&nbsp; self.runUntilCurrent()<br>--- &lt;exception caught here&gt; ---<br>&nbsp; File &quot;C:\Python25\lib\site-packages\twisted\internet\base.py&quot;, line 561, in ru<br>
nUntilCurrent<br>&nbsp;&nbsp;&nbsp; call.func(*call.args, **<a href="http://call.kw">call.kw</a>)<br>&nbsp; File &quot;C:\Python25\lib\site-packages\twisted\internet\base.py&quot;, line 411, in _c<br>ontinueSystemEvent<br>&nbsp;&nbsp;&nbsp; for callList in sysEvtTriggers[1], sysEvtTriggers[2]:<br>
exceptions.TypeError: &#39;NoneType&#39; object is unsubscriptable<br>Traceback (most recent call last):<br>&nbsp; File &quot;twisted_help.py&quot;, line 186, in &lt;module&gt;<br>&nbsp;&nbsp;&nbsp; reactor.run()<br>&nbsp; File &quot;C:\Python25\lib\site-packages\twisted\internet\posixbase.py&quot;, line 220,<br>
in run<br>&nbsp;&nbsp;&nbsp; self.mainLoop()<br>&nbsp; File &quot;C:\Python25\lib\site-packages\twisted\internet\posixbase.py&quot;, line 228,<br>in mainLoop<br>&nbsp;&nbsp;&nbsp; self.runUntilCurrent()<br>--- &lt;exception caught here&gt; ---<br>&nbsp; File &quot;C:\Python25\lib\site-packages\twisted\internet\base.py&quot;, line 561, in ru<br>
nUntilCurrent<br>&nbsp;&nbsp;&nbsp; call.func(*call.args, **<a href="http://call.kw">call.kw</a>)<br>&nbsp; File &quot;C:\Python25\lib\site-packages\twisted\internet\base.py&quot;, line 411, in _c<br>ontinueSystemEvent<br>&nbsp;&nbsp;&nbsp; for callList in sysEvtTriggers[1], sysEvtTriggers[2]:<br>
exceptions.TypeError: &#39;NoneType&#39; object is unsubscriptable<br><br>Do you have any ideas?<br><br>Thanks,<br><br>Don<br><br><div class="gmail_quote">On Tue, Feb 26, 2008 at 3:33 PM, Phil Mayers &lt;<a href="mailto:p.mayers@imperial.ac.uk">p.mayers@imperial.ac.uk</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
You are creating the DeferredList before getNetworkElements has<br>
callback&#39;ed - i.e. it&#39;s empty.<br>
<br>
Move the creation of the DeferredList (and adding it&#39;s callback) to just<br>
before the &quot;return&quot; in &quot;printResult&quot;<br>
<div class="Ih2E3d"><br>
<br>
&gt; &nbsp; &nbsp; g = getNetworkElements().addCallback(printResult)<br>
&gt; &nbsp; &nbsp; dl = defer.DeferredList(deferred_list, 0, 0, 1 )<br>
&gt; &nbsp; &nbsp; print dir(dl)<br>
&gt; &nbsp; &nbsp; dl.addCallback(exiter)<br>
&gt;<br>
&gt; &nbsp; &nbsp; reactor.run()<br>
&gt;<br>
&gt;<br>
</div>&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Twisted-Python mailing list<br>
&gt; <a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
&gt; <a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</blockquote></div><br>