<?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>6911</bug_id>
          
          <creation_ts>2014-10-29 20:31:19 +0000</creation_ts>
          <short_desc>If there is a parse error in the metadata, wic fials with a strange message</short_desc>
          <delta_ts>2015-09-10 11:16:37 +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>deployment</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.9</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Phlip Balister">philip</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>bogdanx.a.voiculescu</cc>
          
          <qa_contact name="Daniel Istrate">daniel.alexandrux.istrate</qa_contact>
          <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>46654</commentid>
    <comment_count>0</comment_count>
    <who name="Phlip Balister">philip</who>
    <bug_when>2014-10-29 20:31:19 +0000</bug_when>
    <thetext>I was adding IMAGE_BOOT_FILES = &quot;foo bar &lt;- note no close quote and ran wic to create an image. This gave:

[balister@thuvia build]$ wic create ../oe-core/scripts/lib/image/canned-wks/sdimage-bootpart.wks -e gnuradio-demo-image
Checking basic build environment...
Done.
 
Creating image(s)...
 
Couldn&apos;t get &apos;bitbake -e gnuradio-demo-image&apos; output.
Couldn&apos;t get bitbake environment, exiting.

Adding the closing quote solves the problem. Tyring to run bitbake gave a parsing error.

Obviously, a more descriptive error message would be helpful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46656</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-10-29 20:45:03 +0000</bug_when>
    <thetext>It may help that bitbake now puts errors out to stderr, so we could pick those up a bit more easily from external scripts such as wic. (Another alternative would be to change wic to use tinfoil to query the variable values.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50089</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-04-04 21:06:17 +0000</bug_when>
    <thetext>Added bitbake error output to wic error message: http://lists.openembedded.org/pipermail/openembedded-core/2015-April/103345.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50298</commentid>
    <comment_count>3</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-04-14 14:32:48 +0000</bug_when>
    <thetext>Fixed: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e9fcc570716e68a64f2a17c0e7aa79e1cd758f39</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53917</commentid>
    <comment_count>4</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2015-09-10 11:16:37 +0000</bug_when>
    <thetext>Verified on master c1df471feacaf2590216aa476ce242908dac38cf:

[daniel@fedora-ws poky-build]$ tail conf/local.conf 
MACHINE=&quot;genericx86-64&quot;
IMAGE_BOOT_FILES = &quot;foo bar
[daniel@fedora-ws poky-build]$ 

[daniel@fedora-ws poky-build]$ bitbake wic-image-minimal
ERROR: Unable to parse /home/daniel/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py
Traceback (most recent call last):
  File &quot;/home/daniel/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py&quot;, line 188, in feeder(lineno=251, s=&apos;IMAGE_BOOT_FILES = &quot;foo bar&apos;, fn=&apos;/media/ssd/poky-build/conf/local.conf&apos;, statements=[&lt;bb.parse.ast.DataNode object at 0x7fa2212fd210&gt;, &lt;bb.parse.ast.DataNode object at 0x7fa2212fd1d0&gt;, &lt;bb.parse.ast.DataNode object at 0x7fa2212fd250&gt;, &lt;bb.parse.ast.DataNode object at 0x7fa2212fd310&gt;, &lt;bb.parse.ast.DataNode object at 0x7fa2212fd2d0&gt;, &lt;bb.parse.ast.DataNode object at 0x7fa2212fd390&gt;, &lt;bb.parse.ast.DataNode object at 0x7fa2212fd350&gt;, &lt;bb.parse.ast.DataNode object at 0x7fa2212fd450&gt;, &lt;bb.parse.ast.DataNode object at 0x7fa2212fd410&gt;, &lt;bb.parse.ast.DataNode object at 0x7fa2212fd3d0&gt;, &lt;bb.parse.ast.DataNode object at 0x7fa2212fd490&gt;, &lt;bb.parse.ast.DataNode object at 0x7fa2212fd4d0&gt;, &lt;bb.parse.ast.DataNode object at 0x7fa2212fd590&gt;]):
     
    &gt;    raise ParseError(&quot;unparsed line: &apos;%s&apos;&quot; % s, fn, lineno);
     
ParseError: ParseError at /media/ssd/poky-build/conf/local.conf:251: unparsed line: &apos;IMAGE_BOOT_FILES = &quot;foo bar&apos;

[daniel@fedora-ws poky-build]$ 
[daniel@fedora-ws poky-build]$ 
[daniel@fedora-ws poky-build]$ wic create directdisk -e core-image-minimal
Checking basic build environment...
Done.

Couldn&apos;t get &apos;bitbake -e core-image-minimal&apos; output.
Bitbake failed with error:
ERROR: Unable to parse /home/daniel/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py
Traceback (most recent call last):
  File &quot;/home/daniel/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py&quot;, line 188, in feeder(lineno=251, s=&apos;IMAGE_BOOT_FILES = &quot;foo bar&apos;, fn=&apos;/media/ssd/poky-build/conf/local.conf&apos;, statements=[&lt;bb.parse.ast.DataNode object at 0x7fd1196cbc90&gt;, &lt;bb.parse.ast.DataNode object at 0x7fd1196a6690&gt;, &lt;bb.parse.ast.DataNode object at 0x7fd1196a6e10&gt;, &lt;bb.parse.ast.DataNode object at 0x7fd1196a6e90&gt;, &lt;bb.parse.ast.DataNode object at 0x7fd119660050&gt;, &lt;bb.parse.ast.DataNode object at 0x7fd1196600d0&gt;, &lt;bb.parse.ast.DataNode object at 0x7fd119660090&gt;, &lt;bb.parse.ast.DataNode object at 0x7fd119660190&gt;, &lt;bb.parse.ast.DataNode object at 0x7fd119660150&gt;, &lt;bb.parse.ast.DataNode object at 0x7fd119660110&gt;, &lt;bb.parse.ast.DataNode object at 0x7fd1196601d0&gt;, &lt;bb.parse.ast.DataNode object at 0x7fd119660210&gt;, &lt;bb.parse.ast.DataNode object at 0x7fd1196602d0&gt;]):
     
    &gt;    raise ParseError(&quot;unparsed line: &apos;%s&apos;&quot; % s, fn, lineno);
     
ParseError: ParseError at /media/ssd/poky-build/conf/local.conf:251: unparsed line: &apos;IMAGE_BOOT_FILES = &quot;foo bar&apos;

Couldn&apos;t get &apos;bitbake -e core-image-minimal&apos; output.
Bitbake failed with error:
ERROR: Unable to parse /home/daniel/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py
Traceback (most recent call last):
  File &quot;/home/daniel/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py&quot;, line 188, in feeder(lineno=251, s=&apos;IMAGE_BOOT_FILES = &quot;foo bar&apos;, fn=&apos;/media/ssd/poky-build/conf/local.conf&apos;, statements=[&lt;bb.parse.ast.DataNode object at 0x7fda2a45ac90&gt;, &lt;bb.parse.ast.DataNode object at 0x7fda2a435690&gt;, &lt;bb.parse.ast.DataNode object at 0x7fda2a435e10&gt;, &lt;bb.parse.ast.DataNode object at 0x7fda2a435e90&gt;, &lt;bb.parse.ast.DataNode object at 0x7fda2a3ef050&gt;, &lt;bb.parse.ast.DataNode object at 0x7fda2a3ef0d0&gt;, &lt;bb.parse.ast.DataNode object at 0x7fda2a3ef090&gt;, &lt;bb.parse.ast.DataNode object at 0x7fda2a3ef190&gt;, &lt;bb.parse.ast.DataNode object at 0x7fda2a3ef150&gt;, &lt;bb.parse.ast.DataNode object at 0x7fda2a3ef110&gt;, &lt;bb.parse.ast.DataNode object at 0x7fda2a3ef1d0&gt;, &lt;bb.parse.ast.DataNode object at 0x7fda2a3ef210&gt;, &lt;bb.parse.ast.DataNode object at 0x7fda2a3ef2d0&gt;]):
     
    &gt;    raise ParseError(&quot;unparsed line: &apos;%s&apos;&quot; % s, fn, lineno);
     
ParseError: ParseError at /media/ssd/poky-build/conf/local.conf:251: unparsed line: &apos;IMAGE_BOOT_FILES = &quot;foo bar&apos;

Couldn&apos;t get &apos;bitbake -e core-image-minimal&apos; output.
Bitbake failed with error:
ERROR: Unable to parse /home/daniel/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py
Traceback (most recent call last):
  File &quot;/home/daniel/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py&quot;, line 188, in feeder(lineno=251, s=&apos;IMAGE_BOOT_FILES = &quot;foo bar&apos;, fn=&apos;/media/ssd/poky-build/conf/local.conf&apos;, statements=[&lt;bb.parse.ast.DataNode object at 0x7f0c36d74c90&gt;, &lt;bb.parse.ast.DataNode object at 0x7f0c36d4f690&gt;, &lt;bb.parse.ast.DataNode object at 0x7f0c36d4fe10&gt;, &lt;bb.parse.ast.DataNode object at 0x7f0c36d4fe90&gt;, &lt;bb.parse.ast.DataNode object at 0x7f0c36d09050&gt;, &lt;bb.parse.ast.DataNode object at 0x7f0c36d090d0&gt;, &lt;bb.parse.ast.DataNode object at 0x7f0c36d09090&gt;, &lt;bb.parse.ast.DataNode object at 0x7f0c36d09190&gt;, &lt;bb.parse.ast.DataNode object at 0x7f0c36d09150&gt;, &lt;bb.parse.ast.DataNode object at 0x7f0c36d09110&gt;, &lt;bb.parse.ast.DataNode object at 0x7f0c36d091d0&gt;, &lt;bb.parse.ast.DataNode object at 0x7f0c36d09210&gt;, &lt;bb.parse.ast.DataNode object at 0x7f0c36d092d0&gt;]):
     
    &gt;    raise ParseError(&quot;unparsed line: &apos;%s&apos;&quot; % s, fn, lineno);
     
ParseError: ParseError at /media/ssd/poky-build/conf/local.conf:251: unparsed line: &apos;IMAGE_BOOT_FILES = &quot;foo bar&apos;

Couldn&apos;t get &apos;bitbake -e core-image-minimal&apos; output.
Bitbake failed with error:
ERROR: Unable to parse /home/daniel/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py
Traceback (most recent call last):
  File &quot;/home/daniel/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py&quot;, line 188, in feeder(lineno=251, s=&apos;IMAGE_BOOT_FILES = &quot;foo bar&apos;, fn=&apos;/media/ssd/poky-build/conf/local.conf&apos;, statements=[&lt;bb.parse.ast.DataNode object at 0x7fc9b781fc90&gt;, &lt;bb.parse.ast.DataNode object at 0x7fc9b77fa690&gt;, &lt;bb.parse.ast.DataNode object at 0x7fc9b77fae10&gt;, &lt;bb.parse.ast.DataNode object at 0x7fc9b77fae90&gt;, &lt;bb.parse.ast.DataNode object at 0x7fc9b77b4050&gt;, &lt;bb.parse.ast.DataNode object at 0x7fc9b77b40d0&gt;, &lt;bb.parse.ast.DataNode object at 0x7fc9b77b4090&gt;, &lt;bb.parse.ast.DataNode object at 0x7fc9b77b4190&gt;, &lt;bb.parse.ast.DataNode object at 0x7fc9b77b4150&gt;, &lt;bb.parse.ast.DataNode object at 0x7fc9b77b4110&gt;, &lt;bb.parse.ast.DataNode object at 0x7fc9b77b41d0&gt;, &lt;bb.parse.ast.DataNode object at 0x7fc9b77b4210&gt;, &lt;bb.parse.ast.DataNode object at 0x7fc9b77b42d0&gt;]):
     
    &gt;    raise ParseError(&quot;unparsed line: &apos;%s&apos;&quot; % s, fn, lineno);
     
ParseError: ParseError at /media/ssd/poky-build/conf/local.conf:251: unparsed line: &apos;IMAGE_BOOT_FILES = &quot;foo bar&apos;

Traceback (most recent call last):
  File &quot;/home/daniel/poky/scripts/wic&quot;, line 319, in &lt;module&gt;
    sys.exit(main(sys.argv[1:]))
  File &quot;/home/daniel/poky/scripts/wic&quot;, line 314, in main
    return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)
  File &quot;/home/daniel/poky/scripts/lib/wic/help.py&quot;, line 95, in invoke_subcommand
    subcommands.get(args[0], subcommand_error)[0](args[1:], usage)
  File &quot;/home/daniel/poky/scripts/wic&quot;, line 220, in wic_create_subcommand
    if not os.path.isdir(rootfs_dir):
  File &quot;/usr/lib64/python2.7/genericpath.py&quot;, line 41, in isdir
    st = os.stat(s)
TypeError: coercing to Unicode: need string or buffer, NoneType found
[daniel@fedora-ws poky-build]$ 


Bitbake error output passed to wic error message.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>