<?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>8780</bug_id>
          
          <creation_ts>2015-12-07 16:23:27 +0000</creation_ts>
          <short_desc>wic does no start</short_desc>
          <delta_ts>2016-02-15 13:58:34 +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>Scripts and Tools</component>
          <version>2.1</version>
          <rep_platform>All</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>2.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Cristian Iorga">cristian.iorga</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>ross.burton</cc>
          
          <qa_contact name="Cristina Agurida">cristina-danielax.agurida</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>57096</commentid>
    <comment_count>0</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-12-07 16:23:27 +0000</bug_when>
    <thetext>wic does not start while simply invoking it and throws a Python backtrace:

Last line:
ImportError: No module named pysh

poky HEAD: 698c74c373110ed081a7586e21d4a27b8b44c89b

Complete backtrace:

/mnt/Yo/yoctoproject/build$ wic
Traceback (most recent call last):
  File &quot;/mnt/Yo/yoctoproject/poky/scripts/wic&quot;, line 50, in &lt;module&gt;
    from bb import cookerdata
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/__init__.py&quot;, line 77, in &lt;module&gt;
    from bb import fetch2 as fetch
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/fetch2/__init__.py&quot;, line 39, in &lt;module&gt;
    from bb import data
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/data.py&quot;, line 48, in &lt;module&gt;
    from bb import data_smart
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/data_smart.py&quot;, line 35, in &lt;module&gt;
    import bb, bb.codeparser
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/codeparser.py&quot;, line 7, in &lt;module&gt;
    from pysh import pyshyacc, pyshlex, sherrors
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/pysh/pyshyacc.py&quot;, line 657, in &lt;module&gt;
    yacc.yacc(tabmodule = &apos;pysh.pyshtables&apos;, write_tables = 0, debug = 0)
  File &quot;/usr/lib/python2.7/dist-packages/ply/yacc.py&quot;, line 3231, in yacc
    exec(&apos;import %s&apos; % pkgname)
  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
ImportError: No module named pysh
/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/event.py:118: RuntimeWarning: Parent module &apos;bb&apos; not found while handling absolute import
  from bb.msg import BBLogFormatter
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File &quot;/usr/lib/python2.7/atexit.py&quot;, line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/event.py&quot;, line 118, in print_ui_queue
    from bb.msg import BBLogFormatter
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/__init__.py&quot;, line 77, in &lt;module&gt;
    from bb import fetch2 as fetch
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/fetch2/__init__.py&quot;, line 39, in &lt;module&gt;
    from bb import data
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/data.py&quot;, line 48, in &lt;module&gt;
    from bb import data_smart
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/data_smart.py&quot;, line 35, in &lt;module&gt;
    import bb, bb.codeparser
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/codeparser.py&quot;, line 7, in &lt;module&gt;
    from pysh import pyshyacc, pyshlex, sherrors
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/pysh/pyshyacc.py&quot;, line 657, in &lt;module&gt;
    yacc.yacc(tabmodule = &apos;pysh.pyshtables&apos;, write_tables = 0, debug = 0)
  File &quot;/usr/lib/python2.7/dist-packages/ply/yacc.py&quot;, line 3231, in yacc
    exec(&apos;import %s&apos; % pkgname)
  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
ImportError: No module named pysh
Error in sys.exitfunc:
Traceback (most recent call last):
  File &quot;/usr/lib/python2.7/atexit.py&quot;, line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/event.py&quot;, line 118, in print_ui_queue
    from bb.msg import BBLogFormatter
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/__init__.py&quot;, line 77, in &lt;module&gt;
    from bb import fetch2 as fetch
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/fetch2/__init__.py&quot;, line 39, in &lt;module&gt;
    from bb import data
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/data.py&quot;, line 48, in &lt;module&gt;
    from bb import data_smart
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/data_smart.py&quot;, line 35, in &lt;module&gt;
    import bb, bb.codeparser
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/codeparser.py&quot;, line 7, in &lt;module&gt;
    from pysh import pyshyacc, pyshlex, sherrors
  File &quot;/mnt/Yo/yoctoproject/poky/bitbake/bin/../lib/bb/pysh/pyshyacc.py&quot;, line 657, in &lt;module&gt;
    yacc.yacc(tabmodule = &apos;pysh.pyshtables&apos;, write_tables = 0, debug = 0)
  File &quot;/usr/lib/python2.7/dist-packages/ply/yacc.py&quot;, line 3231, in yacc
    exec(&apos;import %s&apos; % pkgname)
  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
ImportError: No module named pysh</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57097</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-12-07 16:34:27 +0000</bug_when>
    <thetext>I think this is fixed by &quot;wic: insert local Python paths at front&quot; which is scheduled for master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57155</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-12-10 11:17:33 +0000</bug_when>
    <thetext>Cristian, can you check if Matt&apos;s change http://lists.openembedded.org/pipermail/openembedded-core/2015-December/113758.html fixes this issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57238</commentid>
    <comment_count>3</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-12-14 09:46:36 +0000</bug_when>
    <thetext>Patch has been accepted: http://cgit.openembedded.org/openembedded-core/commit/?id=59b1eefb801dfb1d4afe9640e3c8a070d4e1867f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59007</commentid>
    <comment_count>4</comment_count>
    <who name="Cristina Agurida">cristina-danielax.agurida</who>
    <bug_when>2016-02-15 13:58:34 +0000</bug_when>
    <thetext>Verified on master: 36b43b233c841b3c09fc17e04686b4b758780963
The Python backtrace is no longer present.

/poky/build$ wic
ERROR:root:No subcommand specified, exiting
Usage: 

 Create a customized OpenEmbedded image

 usage: wic [--version] | [--help] | [COMMAND [ARGS]]

 Current &apos;wic&apos; commands are:
    help              Show help for command or one of the topics (see below)
    create            Create a new OpenEmbedded image
    list              List available canned images and source plugins

 Help topics:
    overview          wic overview - General overview of wic
    plugins           wic plugins - Overview and API
    kickstart         wic kickstart - wic kickstart reference


Options:
  --version   show program&apos;s version number and exit
  -h, --help  show this help message and exit</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>