Bug 3319

Summary: AttributeError: 'module' object has no attribute 'msg'
Product: [Build System, Metadata & Runtime] BitBake Reporter: Mihai Lindner <mihai.lindner>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher, sgw
Version: unspecified   
Target Milestone: 1.4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Mihai Lindner 2012-10-22 13:58:45 UTC
$ BBDEBUG=1 bitbake

Pseudo may be out of date, rebuilding pseudo before the main build
Traceback (most recent call last):
  File "/home/mihai/poky/bitbake/bin//bitbake", line 34, in <module>
    import bb
  File "/home/mihai/poky/bitbake/lib/bb/__init__.py", line 80, in <module>
    bb.msg.set_debug_level(level)
AttributeError: 'module' object has no attribute 'set_debug_level'
/home/mihai/poky/bitbake/lib/bb/event.py:104: RuntimeWarning: Parent module 'bb' not found while handling absolute import
  from bb.msg import BBLogFormatter
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python2.6/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/home/mihai/poky/bitbake/lib/bb/event.py", line 104, in print_ui_queue
    from bb.msg import BBLogFormatter
  File "/home/mihai/poky/bitbake/lib/bb/__init__.py", line 80, in <module>
    bb.msg.set_debug_level(level)
AttributeError: 'module' object has no attribute 'msg'
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.6/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/home/mihai/poky/bitbake/lib/bb/event.py", line 104, in print_ui_queue
    from bb.msg import BBLogFormatter
  File "/home/mihai/poky/bitbake/lib/bb/__init__.py", line 80, in <module>
    bb.msg.set_debug_level(level)
AttributeError: 'module' object has no attribute 'msg'
Comment 2 Mihai Lindner 2012-12-14 14:15:05 UTC
$ BBDEBUG=1 bitbake
Nothing to do.  Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.
DEBUG: Removed the following variables from the environment: PSEUDO_BINDIR, GIT_PROXY_PORT, PSEUDO_LOCALSTATEDIR, PYTHONDONTWRITEBYTECODE, LESSOPEN, SSH_CLIENT, CVS_RSH, PSEUDO_LIBDIR, LD_LIBRARY_PATH, LANG, HISTCONTROL, SHLVL, G_BROKEN_FILENAMES, HISTSIZE, EDITOR, BBFETCH2, LD_PRELOAD, VISUAL, _, PSEUDO_OPTS, SSH_CONNECTION, BUILDDIR, SOCKS5_SERVER, SSH_TTY, LC_COLLATE, HOSTNAME, PSEUDO_PREFIX, MAIL, LS_COLORS, GIT_PROXY_HOST, BBDEBUG
...

It's fine now.