Bug 8615

Summary: strange errors on SDK
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Robert Yang <liezhi.yang>
Component: coreAssignee: jia,fang <fang.jia>
Status: VERIFIED FIXED QA Contact: Yi Zhao <yi.zhao>
Severity: enhancement    
Priority: Medium CC: alexandru.c.georgescu, meta.mr.watcher, meta.watcher, yi.zhao
Version: 2.1   
Target Milestone: 2.1 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Robert Yang 2015-10-30 01:39:22 UTC
On Ubuntu, after source SDK's environment-setup file:

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

These strange erors would confuse the use which is caused by command not found helper. We can disable it.
Comment 2 Yi Zhao 2016-01-27 06:08:52 UTC
Verified with Yocto 2.0.1 (jethro/dd0ba9ea4a11ab15348d4fe3574e4b28784db82f)

There is no traceback:
$ foo
-bash: foo: command not found