Bug 2207 - Hob does not start up on centos 6.2
Summary: Hob does not start up on centos 6.2
Status: RESOLVED FIXED
Alias: None
Product: Hob
Classification: Build System, Metadata & Runtime
Component: hob (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: High critical
Target Milestone: 1.2 M4
Assignee: Joshua Lock - Disabled
QA Contact:
URL:
Whiteboard: (P1) (1.2) Development (100% complete...
Depends on:
Blocks:
 
Reported: 2012-03-30 12:43 UTC by T OCallaghan
Modified: 2012-04-11 15:10 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description T OCallaghan 2012-03-30 12:43:28 UTC
found in poky/1.2_M4 (da6233e).

When trying to run hob from a freshly checked out poky, i get:


Traceback (most recent call last):              
  File "/home/timoc/src/yocto/mcgraw/poky/bitbake/bin/bitbake", line 258, in <module>
    ret = main()                                                                     
  File "/home/timoc/src/yocto/mcgraw/poky/bitbake/bin/bitbake", line 247, in main    
    return server.launchUI(ui_main, server_connection.connection, server_connection.events)
  File "/home/timoc/src/yocto/mcgraw/poky/bitbake/lib/bb/server/process.py", line 269, in launchUI
    return bb.cooker.server_main(self.cooker, uifunc, *args)                                      
  File "/home/timoc/src/yocto/mcgraw/poky/bitbake/lib/bb/cooker.py", line 1407, in server_main    
    ret = func(*args)                                                                             
  File "/home/timoc/src/yocto/mcgraw/poky/bitbake/lib/bb/ui/hob.py", line 59, in main             
    builder = Builder(hobHandler, recipe_model, package_model)                                    
AttributeError: 'gtk.Button' object has no attribute 'set_can_default'
Comment 1 Joshua Lock - Disabled 2012-03-30 16:16:03 UTC
Can you tell us which versions of gtk+ and pygtk are shipped with CentOS 6.2?

That specific method was new in Pygtk 2.22 but I'm certain there will be other areas where we are using "too new" API.
Comment 2 T OCallaghan 2012-04-02 06:53:07 UTC
Can i suggest that you add a command line option to hob "--for-bug-report" or similar, that will generate the kind of information you need for things like this. including what versions of API's are available etc.

I'm assuming this is what you want to know:

$ python --version
Python 2.6.6
$ gtk-config --version
1.2.10
Comment 3 Shane Wang 2012-04-04 11:58:29 UTC
Josh has some updates on Hob running on CentOS
Comment 4 T OCallaghan 2012-04-04 12:58:10 UTC
No change.
--- 
tested against commit 2b95420827aa360d8d4de680fd6f824e2cc87645
Comment 5 Joshua Lock - Disabled 2012-04-04 21:53:46 UTC
(In reply to comment #3)
> Josh has some updates on Hob running on CentOS

I've not had chance to do anything with CentOS 6.x yet, I've been looking at the state of things on CentOS 5.x.

It's my intention to look at CentOS 6.x shortly.
Comment 6 Joshua Lock - Disabled 2012-04-04 22:03:13 UTC
I need to set up a CentOS 6.x VM and determine the required version of PyGTK then ensure we aren't using API which isn't provided in that version.

Estimate 2 days development and 3 days for submission, review and merge.
Comment 7 Joshua Lock - Disabled 2012-04-05 18:36:15 UTC
Patch series submitted for review:
http://lists.linuxtogo.org/pipermail/bitbake-devel/2012-April/002648.html

Poky branch with the patch applied can be found at:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=josh/hob-centos6
Comment 8 T OCallaghan 2012-04-10 08:13:02 UTC
Tested, Fixed.