Hello, Tested on poky hash 152914f2983c5d69001de1d46ce99547fa1e75fe All our auto-testing env. is down because of "import bb" 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__), '..', 'meta/lib'))) from oeqa.utils.commands import Command, runCmd, get_bb_var, get_test_layer, bitbake 3) python test.py and the result is: " ... meta/lib/oeqa/utils/commands.py", line 21, in <module> import bb ImportError: No module named bb " With no "import bb" inside commands.py works fine (tested on an earlier commit: 5b12268f6e17574999f91628a60e21711cf62ee4)
http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/meta/lib/oeqa/utils/commands.py?h=ross/mut&id=947e5260f9f3a68e51ccc456610bad9a8b200224 was the commit which introduced this.
Marking it as resolved. The issue was that our local script didn't had bitbake/lib in sys.path
marking as verified