sugarbot's aim is to provide testing and automation facilities for the OLPC Project's Sugar GUI. The project must first identify and evaluate possible implementation options, and then implement the best choice. Although it has a Sugar focus, sugarbot should be easily extensible to other Python-based GUI's.

Monday, July 7, 2008

Buildbot is [almost] working

So I got buildbot up-and-running last night, and have been troubleshooting a few problems with importing some of the Sugar functionality.

Here is what I get: link (don't want to clutter the blog with a huge output). Essentially, test_sugarbot, test_sbgui, and test_widgetIdentifier are totally skipped. What is unique to these files is that the files they import from rely on Sugar (for example, importing sugar.activity.Activity or The issue is the same line in each case:

File "/usr/lib/python2.5/site-packages/sugar/graphics/", line 38, in _get_screen_dpi
xft_dpi = gtk.settings_get_default().get_property('gtk-xft-dpi')
AttributeError: 'NoneType' object has no attribute 'get_property'

Unfortunately, that doesn't tell me much. I can speculate that the issue is that the buildbot-user does not have an actual X display allocated, and that Sugar is choking trying to figure out the DPI of the screen. This is pretty evident when looking above the errors:

/var/lib/python-support/python2.5/gtk-2.0/gtk/ GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)

Unfortunately, my Google-fu fails me finding anything that is relevant regarding gtk-xft-dpi, and there are way too many results for "GtkWarning: could not open display".

No comments: