<?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>8615</bug_id>
          
          <creation_ts>2015-10-30 01:39:22 +0000</creation_ts>
          <short_desc>strange errors on SDK</short_desc>
          <delta_ts>2016-01-27 06:08:52 +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>core</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>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.1 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="jia,fang">fang.jia</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>yi.zhao</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>56022</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-10-30 01:39:22 +0000</bug_when>
    <thetext>On Ubuntu, after source SDK&apos;s environment-setup file:

$ foo (command doesn&apos;t exist)
Traceback (most recent call last):
  File &quot;/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/site.py&quot;, line 553, in &lt;module&gt;
    main()
  File &quot;/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/site.py&quot;, line 535, in main
    known_paths = addusersitepackages(known_paths)
  File &quot;/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/site.py&quot;, line 266, in addusersitepackages
    user_site = getusersitepackages()
  File &quot;/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/site.py&quot;, line 241, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File &quot;/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/site.py&quot;, line 230, in getuserbase
    from sysconfig import get_config_var
  File &quot;/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/sysconfig.py&quot;, line 10, in &lt;module&gt;
    &apos;stdlib&apos;: &apos;{base}/&apos;+sys.lib+&apos;/python{py_version_short}&apos;,
AttributeError: &apos;module&apos; object has no attribute &apos;lib&apos;

These strange erors would confuse the use which is caused by command not found helper. We can disable it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57494</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-12-31 02:10:08 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=9d788d73307d3bb1733dca3f399bf3dabedd3d2b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58259</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2016-01-27 06:08:52 +0000</bug_when>
    <thetext>Verified with Yocto 2.0.1 (jethro/dd0ba9ea4a11ab15348d4fe3574e4b28784db82f)

There is no traceback:
$ foo
-bash: foo: command not found</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>