<?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>9136</bug_id>
          
          <creation_ts>2016-02-18 09:33:24 +0000</creation_ts>
          <short_desc>import bb error inside oeqa/utils/commands.py</short_desc>
          <delta_ts>2016-02-22 08:26:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>general</component>
          <version>2.1</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>Undecided</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Costin">costin.c.constantin</reporter>
          <assigned_to name="Alexandru Georgescu">alexandru.c.georgescu</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>richard.purdie</cc>
          
          <qa_contact name="Costin">costin.c.constantin</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>59187</commentid>
    <comment_count>0</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2016-02-18 09:33:24 +0000</bug_when>
    <thetext>Hello,

Tested on poky hash 152914f2983c5d69001de1d46ce99547fa1e75fe

All our auto-testing env. is down because of &quot;import bb&quot; inside commands.py. 
On our auto-test env. we have a script inside build dir. that uses commands.py  module.

Steps to reproduce:

1) cd to poky dir. and source env. 
2) inside build dir. edit a test.py file and insert:

sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), &apos;..&apos;, &apos;meta/lib&apos;)))
from oeqa.utils.commands import Command, runCmd, get_bb_var, get_test_layer, bitbake

3) python test.py and the result is:
&quot;
...
meta/lib/oeqa/utils/commands.py&quot;, line 21, in &lt;module&gt;
    import bb
ImportError: No module named bb
&quot;

With no &quot;import bb&quot; inside commands.py works fine (tested on an earlier commit: 5b12268f6e17574999f91628a60e21711cf62ee4)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59188</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-02-18 09:37:20 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/meta/lib/oeqa/utils/commands.py?h=ross/mut&amp;id=947e5260f9f3a68e51ccc456610bad9a8b200224 was the commit which introduced this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59190</commentid>
    <comment_count>2</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2016-02-18 10:37:06 +0000</bug_when>
    <thetext>Marking it as resolved. 
The issue was that our local script didn&apos;t had bitbake/lib in sys.path</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59191</commentid>
    <comment_count>3</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2016-02-18 10:37:23 +0000</bug_when>
    <thetext>marking as verified</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>