[bitbake-devel] getAllKeysWithFlags: Issue when returning the dump var

sujith h sujith.h at gmail.com
Tue Nov 22 09:24:26 UTC 2016


Hi,

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:

ERROR: <Fault 1: "<class 'TypeError'>:cannot marshal <class '_thread.lock'>
objects">
Traceback (most recent call last):
  File
"/home/sujith/MEL/toaster-latest/poky/bitbake/lib/bb/ui/toasterui.py", line
256, in main
    buildinfohelper.save_build_layers_and_variables()
  File
"/home/sujith/MEL/toaster-latest/poky/bitbake/lib/bb/ui/buildinfohelper.py",
line 1151, in save_build_layers_and_variables
    data = self.server.runCommand(["getAllKeysWithFlags", ["doc",
"func"]])[0]
  File "/usr/lib/python3.4/xmlrpc/client.py", line 1098, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python3.4/xmlrpc/client.py", line 1437, in __request
    verbose=self.__verbose
  File "/usr/lib/python3.4/xmlrpc/client.py", line 1140, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python3.4/xmlrpc/client.py", line 1156, in single_request
    return self.parse_response(resp)
  File "/usr/lib/python3.4/xmlrpc/client.py", line 1327, in parse_response
    return u.close()
  File "/usr/lib/python3.4/xmlrpc/client.py", line 657, in close
    raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault 1: "<class 'TypeError'>:cannot marshal <class
'_thread.lock'> objects">


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:

fd.write("a = %s\n" %(str(dump)))

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.

Thanks,
Sujith H

-- 
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
<Project>Contributor to Yocto project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info
C-x C-c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20161122/8519507c/attachment-0002.html>


More information about the bitbake-devel mailing list