Bug 2027 - depexp UI fails with "No module named progress"
Summary: depexp UI fails with "No module named progress"
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-02-25 05:25 UTC by Darren Hart
Modified: 2012-02-25 11:59 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
The missing progress.py file (648 bytes, text/x-python)
2012-02-25 05:54 UTC, Joshua Lock - Disabled
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Hart 2012-02-25 05:25:18 UTC
Trying to debug a dependency chain in poky-tiny with master as of:
c9e95d3363d28ae92eb9ed1ed560ad3769482f8a

$ bitbake -u depexp -g core-image-minimal
Gtk-Message: Failed to load module "pk-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
Traceback (most recent call last):
  File "/home/dvhart/source/poky-tiny/bitbake/bin//bitbake", line 258, in <module>
    ret = main()
  File "/home/dvhart/source/poky-tiny/bitbake/bin//bitbake", line 178, in main
    ui_main = get_ui(configuration)
  File "/home/dvhart/source/poky-tiny/bitbake/bin//bitbake", line 68, in get_ui
    module = __import__("bb.ui", fromlist = [interface])
  File "/home/dvhart/source/poky-tiny/bitbake/lib/bb/ui/depexp.py", line 27, in <module>
    from bb.ui.crumbs.progress import ProgressBar
ImportError: No module named progress
Comment 1 Joshua Lock - Disabled 2012-02-25 05:51:01 UTC
Looks like the patch introducing the new hob deleted the file which includes the progressbar class implementation used by depexp.

It's enough just to copy that file back in. See 
https://github.com/incandescant/bitbake/commit/e321d0a6b4c40f0f2c13a191ae1ddf7165c45ff4
Comment 2 Joshua Lock - Disabled 2012-02-25 05:53:34 UTC
Patch submitted to the BitBake list to re-add this file
Comment 3 Joshua Lock - Disabled 2012-02-25 05:54:25 UTC
Created attachment 338 [details]
The missing progress.py file

Darren, drop this in bitbake/lib/bb/ui/crumbs to have depexp functional again
Comment 4 Darren Hart 2012-02-25 06:04:21 UTC
Thanks Joshua, works for me.