<p>Lorenzo,</p>
<p>Would it be possible for you to post your code?</p><p>thanks,</p>
<p>-j</p>
<div class="gmail_quote">On Jul 29, 2011 12:15 PM, "Lorenzo Riano" <<a href="mailto:lorenzo.riano@gmail.com" target="_blank">lorenzo.riano@gmail.com</a>> wrote:<br type="attribution">> Folks,<br>> <br>

> I have found a very strange bug in smach. If I call sm.execute() from a<br>
> function I see the following output:<br>> <br>> Exception RuntimeError: 'maximum recursion depth exceeded while calling a<br>> Python object' in <type 'exceptions.AttributeError'> ignored<br>


> <br>> This message is repeated several times. If I don't call execute from a<br>> function (i.e. first scope in the script) then it does not happen. I have<br>> googled the error and it looks like it is related to redefining __getattr__<br>


> .<br>> <br>> The strangest part is that this happens with code that used to ran without<br>> problems in the past. It does not happen with other state machine, only with<br>> this in particular. I don't remember having done any update to python<br>


> recently.<br>> <br>> Do you have any idea why this is happening and how to solve it?<br>> <br>> Lorenzo<br>> <br>> <br>> -- <br>> Lorenzo Riano, PhD<br>> Research Associate<br>> Intelligent Systems Research Centre<br>


> University of Ulster<br>> Magee campus<br>> Londonderry<br>> BT48 7JL<br>> <br>> phone: <a href="tel:%2B44%20%280%2928%2071375187" value="+442871375187" target="_blank">+44 (0)28 71375187</a><br>> email: <a href="mailto:l.riano@ulster.ac.uk" target="_blank">l.riano@ulster.ac.uk</a>, <a href="mailto:lorenzo.riano@gmail.com" target="_blank">lorenzo.riano@gmail.com</a><br>


> skype: lorenzo.riano<br>> <br>> Webpage: <a href="http://isrc.ulster.ac.uk/Staff/LRiano/Contact.html" target="_blank">http://isrc.ulster.ac.uk/Staff/LRiano/Contact.html</a><br></div>