<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12507</bug_id>
          
          <creation_ts>2018-01-23 10:08:26 +0000</creation_ts>
          <short_desc>multiconfig throws python error on fresh checkout of OE-core on &apos;bitbake -c listtasks&apos;</short_desc>
          <delta_ts>2018-03-05 00:20:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>configuration</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.5 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>daniel</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>79193</commentid>
    <comment_count>0</comment_count>
    <who name="">daniel</who>
    <bug_when>2018-01-23 10:08:26 +0000</bug_when>
    <thetext>Preconditions/Environment
-------------------------
Debian-9
Latest github.com:openembedded/openembedded, master or rocko branches
Bitbake 1.32, 134, or 1.36 (bitbake dir as a symlink in oe-core directory)

Any oe-core on or after commit 7267e7c000c76c44d09835d4cd2bc485b6a39a2a
triggers this error for me.

Triggering Action/Cause
-----------------------
git clone git://git.openembedded.org/bitbake
git clone git://github.com/openembeded/openembedded
cd openembedded
ln -s ../bitbake .
. ./oe-init-env
bitbake -c listtasks
(other bitbake actions also fail, this is just a simple test case)

Expectation
-----------
Should get &apos;Nothing to do.  Use &apos;bitbake world&apos; to build everything, or run &apos;bitbake --help&apos; for usage information.&apos;

Actual Result
-------------
Get

ERROR: Execution of event handler &apos;base_eventhandler&apos; failed
Traceback (most recent call last):
  File &quot;/home/cshoredaniel/Build/firmware/openembedded/oe-core-error/meta/classes/base.bbclass&quot;, line 231, in
base_eventhandler(e=&lt;bb.event.ConfigParsed object at 0x7f483d66c1d0&gt;):

    &gt;    if isinstance(e, bb.event.MultiConfigParsed):
             # We need to expand SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS in each of the multiconfig data stores
AttributeError: module &apos;bb.event&apos; has no attribute &apos;MultiConfigParsed&apos;

ERROR: Error parsing configuration files
Traceback (most recent call last):
  File &quot;/home/cshoredaniel/Build/firmware/openembedded/bitbake/lib/bb/cookerdata.py&quot;, line 274, in CookerDataBuilder.parseBaseConfiguration():

    &gt;            bb.event.fire(bb.event.ConfigParsed(), self.data)

  File &quot;/home/cshoredaniel/Build/firmware/openembedded/bitbake/lib/bb/event.py&quot;, line 211, in fire(event=&lt;bb.event.ConfigParsed object at 0x7f483d66c1d0&gt;, d=&lt;bb.data_smart.DataSmart object at 0x7f483daf0cf8&gt;):

    &gt;    fire_class_handlers(event, d)
         if worker_fire:
  File &quot;/home/cshoredaniel/Build/firmware/openembedded/bitbake/lib/bb/event.py&quot;, line 134, in fire_class_handlers(event=&lt;bb.event.ConfigParsed object at 0x7f483d66c1d0&gt;, d=&lt;bb.data_smart.DataSmart object at 0x7f483daf0cf8&gt;):
                         continue
    &gt;            execute_handler(name, handler, event, d)

  File &quot;/home/cshoredaniel/Build/firmware/openembedded/bitbake/lib/bb/event.py&quot;, line 106, in execute_handler(name=&apos;base_eventhandler&apos;, handler=&lt;function base_eventhandler at 0x7f483d20bb70&gt;, event=&lt;bb.event.ConfigParsed object at 0x7f483d66c1d0&gt;, d=&lt;bb.data_smart.DataSmart object at 0x7f483daf0cf8&gt;):
         try:
    &gt;        ret = handler(event)
         except (bb.parse.SkipRecipe, bb.BBHandledException):
  File &quot;/home/cshoredaniel/Build/firmware/openembedded/oe-core-error/meta/classes/base.bbclass&quot;, line 231, in
base_eventhandler(e=&lt;bb.event.ConfigParsed object at 0x7f483d66c1d0&gt;):

    &gt;    if isinstance(e, bb.event.MultiConfigParsed):
             # We need to expand SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS in each of the multiconfig data stores
AttributeError: module &apos;bb.event&apos; has no attribute &apos;MultiConfigParsed&apos;


Reproducibility
---------------
always with commits on or after 7267e7c000c76c44d09835d4cd2bc485b6a39a2a

I did a git bisect with an old commit as known good (f43290f6e302dbacf5581d1fe1c6c991dd387779) and current master HEAD (5e5569c962c9ebc898eeb5044214e95117b190e1) as bad, and narrowed it down to a single commit (7267e7c000c76c44d09835d4cd2bc485b6a39a2a) as the where the error begins occurring.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79688</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-03-05 00:20:32 +0000</bug_when>
    <thetext>I just tested this and things seem to work as expected. Note that the &quot;openembedded&quot; git repository has disappeared, I substituted it with oe-core.

You haven&apos;t mentioned configuring a multiconfig so I&apos;m assuming this is with the default configuration? Please reopen if the problem still exists and you can update the steps to reproduce.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>