[bitbake-devel] create_image() fails with cannot concatenate 'str' and 'NoneType'error

Walt walt at giroir.com
Sat Jan 24 20:14:34 UTC 2015


Posted this earlier to a different group but I believe this
group is better targeted


------
I have search the web and found a few references to this problem but I have 
not yet found a solution.

This is the latest commit.
--------
commit 745cebd635002618d7edd0a109ff07dd2953621a
Author: Richard Purdie <richard.purdie at ...>
Date:   Fri Jan 23 14:38:12 2015 +0000

    bitbake: siggen: Ensure taskdata default functions exist in base class

    The get/set_taskdata functions are now part of the API of the class,
    ensure they exist in the base class definition so the noop handler
    works.

    [YOCTO #7233]

    (Bitbake rev: 9b5b1bd7d77e3f5886f6c557d3b750de1f6d6025)

    Signed-off-by: Richard Purdie <richard.purdie at ...>

And here is the error
=====================
File: '/home/walt/workspace/wwrelay-rootfs/yocto/meta/lib/oe/image.py', 
lineno: 355, function: create_image
     0351:        execute_pre_post_process(self.d, post_process_cmds)
     0352:
     0353:
     0354:def create_image(d):
 *** 0355:    Image(d).create()
     0356:
     0357:if __name__ == "__main__":
     0358:    """
     0359:    Image creation can be called independent from bitbake 
environment.
File: '/home/walt/workspace/wwrelay-rootfs/yocto/meta/lib/oe/image.py', 
lineno: 333, function: create
     0329:        execute_pre_post_process(self.d, pre_process_cmds)
     0330:
     0331:        self._remove_old_symlinks()
     0332:
 *** 0333:        image_cmd_groups = self._get_imagecmds()
     0334:
     0335:        for image_cmds in image_cmd_groups:
     0336:            # create the images in parallel
     0337:            nproc = multiprocessing.cpu_count()
File: '/home/walt/workspace/wwrelay-rootfs/yocto/meta/lib/oe/image.py', 
lineno: 303, function: _get_imagecmds
     0299:                print "************************"
     0300:                print localdata.getVar("IMAGE_CMD", True)
     0301:                print "************************"
     0302:                print "************************"
 *** 0303:                cmds.append("\t" + localdata.getVar("IMAGE_CMD", True))
     0304:                cmds.append(localdata.expand("\tcd 
${DEPLOY_DIR_IMAGE}"))
     0305:
     0306:                if type in cimages:
     0307:                    for ctype in cimages[type]:
Exception: TypeError: cannot concatenate 'str' and 'NoneType' objects

ERROR: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/walt/workspace/wwrelay-
rootfs/yocto/build/tmp/work/cubietruck-poky-linux-gnueabi/wigwag-prod-
lsb/1.0-r0/temp/log.do_rootfs.13308
ERROR: Task 6 (/home/walt/workspace/wwrelay-
rootfs/yocto/build/recipes/images/wigwag-prod-lsb.bb, do_rootfs) failed with 
exit code '1'
NOTE: Tasks Summary: Attempted 3977 tasks of which 3976 didn't need to be 
rerun and 1 failed.

-- 




More information about the bitbake-devel mailing list