<div dir="ltr"><div><div>Hi,<br><br>Finally I found that not all data in my case was string/list/tuple/dict/None/int/float. That is those data types which can be marshalled: <a href="https://docs.python.org/3/library/xmlrpc.client.html">https://docs.python.org/3/library/xmlrpc.client.html</a>. But there was a data type :<br>v = <subprocess.Popen object at 0x7f56f4964ef0>. So this was causing the problem for me. <br><br></div>Thanks,<br></div>Sujith H<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 22, 2016 at 2:54 PM, sujith h <span dir="ltr"><<a href="mailto:sujith.h@gmail.com" target="_blank">sujith.h@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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: <Fault 1: "<class 'TypeError'>:cannot marshal <class '_thread.lock'> objects"><br>Traceback (most recent call last):<br> File "/home/sujith/MEL/toaster-<wbr>latest/poky/bitbake/lib/bb/ui/<wbr>toasterui.py", line 256, in main<br> buildinfohelper.save_build_<wbr>layers_and_variables()<br> File "/home/sujith/MEL/toaster-<wbr>latest/poky/bitbake/lib/bb/ui/<wbr>buildinfohelper.py", line 1151, in save_build_layers_and_<wbr>variables<br> data = self.server.runCommand(["<wbr>getAllKeysWithFlags", ["doc", "func"]])[0]<br> File "/usr/lib/python3.4/xmlrpc/<wbr>client.py", line 1098, in __call__<br> return self.__send(self.__name, args)<br> File "/usr/lib/python3.4/xmlrpc/<wbr>client.py", line 1437, in __request<br> verbose=self.__verbose<br> File "/usr/lib/python3.4/xmlrpc/<wbr>client.py", line 1140, in request<br> return self.single_request(host, handler, request_body, verbose)<br> File "/usr/lib/python3.4/xmlrpc/<wbr>client.py", line 1156, in single_request<br> return self.parse_response(resp)<br> File "/usr/lib/python3.4/xmlrpc/<wbr>client.py", line 1327, in parse_response<br> return u.close()<br> File "/usr/lib/python3.4/xmlrpc/<wbr>client.py", line 657, in close<br> raise Fault(**self._stack[0])<br>xmlrpc.client.Fault: <Fault 1: "<class 'TypeError'>:cannot marshal <class '_thread.lock'> objects"><br><br><br></div>This error doesn'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("a = %s\n" %(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<span class="HOEnZb"><font color="#888888"><br clear="all"><div><div><div><div><div><div><div><div><br>-- <br><div class="m_-3375698746014093964gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>സുജിത് ഹരിദാസന്<br>Bangalore<br><Project>Contributor to KDE project<br></div><div><Project>Contributor to Yocto project<br></div><div><a href="http://fci.wikia.com/wiki/Anti-DRM-Campaign" target="_blank">http://fci.wikia.com/wiki/<wbr>Anti-DRM-Campaign</a><br><Blog> <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></font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>സുജിത് ഹരിദാസന്<br>Bangalore<br><Project>Contributor to KDE project<br></div><div><Project>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><Blog> <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>