2016年9月26日 星期一

Exception: AttributeError: 'module' object has no attribute 'addtask'

### Upon errors shown in  bottom, try below procedures to fix:
cd oe-core/build/
mv conf .conf
rm -fr *
git checkout -f
mv .conf conf

########################################################################
ulin@WNC:/work/yulin/mdm9640le/apps_proc/oe-core/build$ buildboth9640
Pseudo is not present but is required, building this first before the main build
WARNING: Getting checksum for cne-mdm SRC_URI entry : file not found except in DL_DIR                                                                   | ETA:  --:--:--
ERROR: Error executing a python function in :

The stack trace of python calls that resulted in this exception/failure was:
File: '', lineno: 9, function:
     0005:__anon_419__work_yulin_mdm9640le_apps_proc_oe_core_meta_classes_package_ipk_bbclass(d)
     0006:__anon_27__work_yulin_mdm9640le_apps_proc_oe_core_meta_classes_devshell_bbclass(d)
     0007:__anon_77__work_yulin_mdm9640le_apps_proc_oe_core_meta_classes_sstate_bbclass(d)
     0008:__anon_124__work_yulin_mdm9640le_apps_proc_oe_core_meta_classes_siteinfo_bbclass(d)
 *** 0009:__anon_26__work_yulin_mdm9640le_apps_proc_oe_core_meta_qcom_classes_qcommon_bbclass(d)
File: '__anon_26__work_yulin_mdm9640le_apps_proc_oe_core_meta_qcom_classes_qcommon_bbclass', lineno: 2, function: __anon_26__work_yulin_mdm9640le_apps_proc_oe_core_meta_qcom_classes_qcommon_bbclass
     0001:def __anon_26__work_yulin_mdm9640le_apps_proc_oe_core_meta_qcom_classes_qcommon_bbclass(d):
 *** 0002:    src_dir_after_parse(d)
     0003:
File: 'qcommon.bbclass', lineno: 5, function: src_dir_after_parse
     0001:def src_dir_after_parse(d):
     0002:    if d.getVar('SRC_DIR') == None:
     0003:        raise bb.build.FuncFailed("%s inherits qcommon but doesn't set SRC_DIR" % d.getVar('FILE'))
     0004:    if d.getVar('PREBUILT') == "1":
 *** 0005:        bb.build.addtask('do_prebuilt', 'do_build', 'do_populate_sysroot', d)
     0006:
Exception: AttributeError: 'module' object has no attribute 'addtask'

ERROR: Failed to parse recipe: /work/yulin/mdm9640le/apps_proc/oe-core/meta-qcom/recipes/mcm-gps/loc-mcm-type-conv_git.bb                               | ETA:  00:00:08
ERROR: Error executing a python function in :

沒有留言: