<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-latest/poky/bitbake/lib/bb/ui/toasterui.py", line 256, in main<br> buildinfohelper.save_build_layers_and_variables()<br> File "/home/sujith/MEL/toaster-latest/poky/bitbake/lib/bb/ui/buildinfohelper.py", line 1151, in save_build_layers_and_variables<br> data = self.server.runCommand(["getAllKeysWithFlags", ["doc", "func"]])[0]<br> File "/usr/lib/python3.4/xmlrpc/client.py", line 1098, in __call__<br> return self.__send(self.__name, args)<br> File "/usr/lib/python3.4/xmlrpc/client.py", line 1437, in __request<br> verbose=self.__verbose<br> File "/usr/lib/python3.4/xmlrpc/client.py", line 1140, in request<br> return self.single_request(host, handler, request_body, verbose)<br> File "/usr/lib/python3.4/xmlrpc/client.py", line 1156, in single_request<br> return self.parse_response(resp)<br> File "/usr/lib/python3.4/xmlrpc/client.py", line 1327, in parse_response<br> return u.close()<br> File "/usr/lib/python3.4/xmlrpc/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<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><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></div></div></div></div></div></div></div></div>