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.
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=9d788d73307d3bb1733dca3f399bf3dabedd3d2b
Verified with Yocto 2.0.1 (jethro/dd0ba9ea4a11ab15348d4fe3574e4b28784db82f) There is no traceback: $ foo -bash: foo: command not found