It is really too long to post it. A google search reports that the same problem happens in other packages when reimplementing the __getattr__ function.<br><br>I will try to reproduce it with a shorter code. The funny thing is that it depends on the length of the stack of the function calls: it shows up when the stack has length one, it doesn't when it's zero or two. The code works the same anyway, it's only that the message it quite annoying.<br>
<br>Lorenzo<br><br><div class="gmail_quote">On 29 July 2011 20:20, Jonathan Bohren <span dir="ltr"><<a href="mailto:jonathan.bohren@gmail.com">jonathan.bohren@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<p>Lorenzo,</p>
<p>Would it be possible for you to post your code?</p><p>thanks,</p>
<p>-j</p><div><div></div><div class="h5">
<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>
</div></div><br>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br><br clear="all"><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: +44 (0)28 71375187<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>