ERROR importer:51 - Could not find any typelib for Gdk

Bug #1202609 reported by Martin Pitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Autopilot
Fix Released
Undecided
Christopher Lee
autopilot (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Spotted in several autopilot logs, such as http://10.97.0.1:8080/job/saucy-touch-mako-smoke-phone-app-autopilot/10/console:

Jul 18 09:24:11 ubuntu-phablet utah: Running command: utah-autopilot run -v phone_app.tests.test_call_panel.TestCallPanel.test_keypad
Jul 18 09:24:12 ubuntu-phablet utah: Loading tests from: /usr/lib/python2.7/dist-packages#012
Jul 18 09:24:12 ubuntu-phablet utah: 09:24:12.227 ERROR importer:51 - Could not find any typelib for Gdk
Jul 18 09:24:12 ubuntu-phablet kernel: [ 98.286006] input: autopilot-finger as /devices/virtual/input/input6
Jul 18 09:24:12 ubuntu-phablet utah: 09:24:12.391 INFO globals:49 - ************************************************************
Jul 18 09:24:12 ubuntu-phablet utah: 09:24:12.392 INFO globals:50 - Starting test phone_app.tests.test_call_panel.TestCallPanel.test_keypad (with touch)

I. e. the "ERROR importer:51 - Could not find any typelib for Gdk". It seems it is mostly harmless, but it looks odd in logs. This seems to come from http://bazaar.launchpad.net/~autopilot/autopilot/trunk/view/head:/autopilot/display/_X11.py

If this is ok to ignore, I suggest catching the ImportError there and outputting a warning (if there is reduced functionality).
If this is important functionality, I suggest that autopilot should grow a dependency to python-gi and gir1.2-gtk-3.0. Alternatively this could also drop the usage of Gdk and instead just query xrandr.

Related branches

Changed in autopilot:
assignee: nobody → Thomi Richards (thomir)
assignee: Thomi Richards (thomir) → Chris Gagnon (chris.gagnon)
Revision history for this message
Chris Gagnon (chris.gagnon) wrote :

"ERROR importer:51 - Could not find any typelib for Gdk" is expected on the phone, it's first looking for the _x11 backend, when that doesn't work it looks for the ubuntu platform api backend and uses that.

Revision history for this message
Chris Gagnon (chris.gagnon) wrote :

I couldn't reproduce this bug, where can I find instructions on running utah-autopilot?

Revision history for this message
Francis Ginther (fginther) wrote :

Chris Lee was able to reproduce and confirm root cause. The fix is to just suppress the error message.

Changed in autopilot:
assignee: Chris Gagnon (chris.gagnon) → Christopher Lee (veebers)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:autopilot at revision 275, scheduled for release in autopilot, milestone 1.3.2

Changed in autopilot:
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopilot - 1.3.1+13.10.20130722-0ubuntu1

---------------
autopilot (1.3.1+13.10.20130722-0ubuntu1) saucy; urgency=low

  [ Christopher Lee ]
  * Silence non fatal error message from logs when attempting to import
    Gdk. (LP: #1202609)
  * Update autopilot desktop depends gir gtk from 2.0 -> 3.0.

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 276
 -- Ubuntu daily release <email address hidden> Mon, 22 Jul 2013 00:02:15 +0000

Changed in autopilot (Ubuntu):
status: New → Fix Released
Changed in autopilot:
milestone: none → 1.4
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.