Can someone point me to some good docs on Ampoule deferToAMPProcess?<div>I am trying in vain to get the simplest possible example working, with no success.</div><div><br></div><div><div>from ampoule import deferToAMPProcess, util</div>
<div>from twisted.internet import reactor, defer</div><div><br></div><div>def test():</div><div>    return &quot;TEST&quot;</div><div><br></div><div>@util.mainpoint</div><div>def main(args):</div><div>    </div><div>    @defer.inlineCallbacks</div>
<div>    def _run():</div><div>        val = yield deferToAMPProcess(test)</div><div>        print val</div><div>        reactor.stop()</div><div>    </div><div>    reactor.callLater(1, _run)</div><div>    reactor.run()</div>
</div><div><br></div><div>Gives:</div><div><br></div><div>exceptions.AttributeError: &#39;str&#39; object has no attribute &#39;_doCommand&#39;</div><div><br></div><div>I&#39;ve tried different combinations, returnd Deferreds from the test() function, inline callbacks with defer.returnValue().</div>
<div>Can&#39;t get it to work.</div><div><br></div><div>Looks like I am not the only one:</div><div><br></div><div><a href="https://answers.launchpad.net/ampoule/+question/75143">https://answers.launchpad.net/ampoule/+question/75143</a></div>
<div><br></div><div>Thanks in advance</div><div>Jacek</div>