Hi,
I'm fairly new to Yocto, several web article recommend the use of Chris 
Larson's 'bb' utility. I understand 'bb' is not part of Yocto, but perhaps 
someone here knows the answer to my problem. Running 'bb log' in my build 
directory results in:

[siegel@xxx junk]$ bb log
Traceback (most recent call last):
  File "/home/siegel/oe/dist/bin/bb/libexec/bb-log", line 10, in <module>
    import bbcmd
  File "/home/siegel/oe/dist/bin/bb/libexec/bbcmd.py", line 18, in <module>
    import bb.cache
  File "/home/siegel/poky/bitbake/bin/../lib/bb/__init__.py", line 77, in 
<module>
    import bb.msg
  File "/home/siegel/poky/bitbake/bin/../lib/bb/msg.py", line 32, in <module>
    import bb.event
  File "/home/siegel/poky/bitbake/bin/../lib/bb/event.py", line 35, in <module>
    import bb.utils
  File "/home/siegel/poky/bitbake/bin/../lib/bb/utils.py", line 37, in <module>
    from commands import getstatusoutput
ImportError: No module named 'commands'

'bb' Python source contains shebang path '/usr/bin/env python3' , which means 
it expects to be run by a Python 3.x interpreter. But then it imports python 
code from bitbake/lib, and bitbake/Yocto use Python 2.7.x.  'bb' fails upon 
trying to import 'commands', which is a non-existent module in Python3.

Any suggestions? I have installed 'bb' according to its directions, put in my 
.bashrc:
eval "$(~/oe/dist/bin/bb/bin/bb init -)"

Regards,
Jeff

-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to