<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I found a small issue while building a recipe/image in toaster. The problem I saw is when toaster completes parsing, I could see an error in the toaster_ui.log as:<br><br>ERROR: &lt;Fault 1: &quot;&lt;class &#39;TypeError&#39;&gt;:cannot marshal &lt;class &#39;_thread.lock&#39;&gt; objects&quot;&gt;<br>Traceback (most recent call last):<br>  File &quot;/home/sujith/MEL/toaster-latest/poky/bitbake/lib/bb/ui/toasterui.py&quot;, line 256, in main<br>    buildinfohelper.save_build_layers_and_variables()<br>  File &quot;/home/sujith/MEL/toaster-latest/poky/bitbake/lib/bb/ui/buildinfohelper.py&quot;, line 1151, in save_build_layers_and_variables<br>    data = self.server.runCommand([&quot;getAllKeysWithFlags&quot;, [&quot;doc&quot;, &quot;func&quot;]])[0]<br>  File &quot;/usr/lib/python3.4/xmlrpc/client.py&quot;, line 1098, in __call__<br>    return self.__send(self.__name, args)<br>  File &quot;/usr/lib/python3.4/xmlrpc/client.py&quot;, line 1437, in __request<br>    verbose=self.__verbose<br>  File &quot;/usr/lib/python3.4/xmlrpc/client.py&quot;, line 1140, in request<br>    return self.single_request(host, handler, request_body, verbose)<br>  File &quot;/usr/lib/python3.4/xmlrpc/client.py&quot;, line 1156, in single_request<br>    return self.parse_response(resp)<br>  File &quot;/usr/lib/python3.4/xmlrpc/client.py&quot;, line 1327, in parse_response<br>    return u.close()<br>  File &quot;/usr/lib/python3.4/xmlrpc/client.py&quot;, line 657, in close<br>    raise Fault(**self._stack[0])<br>xmlrpc.client.Fault: &lt;Fault 1: &quot;&lt;class &#39;TypeError&#39;&gt;:cannot marshal &lt;class &#39;_thread.lock&#39;&gt; objects&quot;&gt;<br><br><br></div>This error doesn&#39;t stops the building of a recipe or image which is triggered. After seeing this error I tried to modify the cooker.py code for getAllKeysWithFlags, at the end ( before it returns dump ), to write to a file a.py:<br><br></div>fd.write(&quot;a = %s\n&quot; %(str(dump)))<br><br></div>And tried to import the file a.py. The moment I tried to import it, I was getting syntax error. Any helping hand would be nice for me to move ahead with this issue. If my understanding is correct, its not a toaster issue. Pardon me if my understanding is wrong.<br><br></div>Thanks,<br></div>Sujith H<br clear="all"><div><div><div><div><div><div><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>സുജിത് ഹരിദാസന്<br>Bangalore<br>&lt;Project&gt;Contributor to KDE project<br></div><div>&lt;Project&gt;Contributor to Yocto project<br></div><div><a href="http://fci.wikia.com/wiki/Anti-DRM-Campaign" target="_blank">http://fci.wikia.com/wiki/Anti-DRM-Campaign</a><br>&lt;Blog&gt; <a href="http://sujithh.info" target="_blank">http://sujithh.info</a><br></div><div>C-x C-c<br></div></div></div></div></div>
</div></div></div></div></div></div></div></div></div>