New aptdaemon.client breaks apps using twisted with gireactor

Bug #1035032 reported by dobey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Aptdaemon
Fix Committed
Undecided
Unassigned
aptdaemon (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Quantal by dobey

Bug Description

Discovered this while attempting to upload a new patch to ubuntuone-installer on quantal and having the tests fail with the following error:

dobey@u1-client-tarmac-trunk:~/ubuntuone-installer$ ./run-tests Traceback (most recent call last):
  File "/usr/bin/u1trial", line 40, in <module>
    main()
  File "/usr/lib/python2.7/dist-packages/ubuntuone-dev-tools/ubuntuone/devtools/runners/__init__.py", line 259, in main
    suite = test_runner.get_suite(options)
  File "/usr/lib/python2.7/dist-packages/ubuntuone-dev-tools/ubuntuone/devtools/runners/__init__.py", line 170, in get_suite
    config['ignore-paths']))
  File "/usr/lib/python2.7/dist-packages/ubuntuone-dev-tools/ubuntuone/devtools/runners/__init__.py", line 154, in _collect_tests
    module_suite = self._load_unittest(filepath)
  File "/usr/lib/python2.7/dist-packages/ubuntuone-dev-tools/ubuntuone/devtools/runners/__init__.py", line 95, in _load_unittest
    module = __import__(modpath, None, None, [""])
  File "/home/dobey/ubuntuone-installer/ubuntuone/installer/tests/test_gui.py", line 21, in <module>
    from ubuntuone.installer import gui
  File "/home/dobey/ubuntuone-installer/ubuntuone/installer/gui.py", line 19, in <module>
    import aptdaemon.client as aptclient
  File "/usr/lib/python2.7/dist-packages/aptdaemon/client.py", line 41, in <module>
    import gobject as GObject
ImportError: No module named gobject

This same issue existed on the previous version as well, but in the exact opposite manner, though was not exposed in general, as gi.repository would have been tried first then, and so apps using it would have been fine.

Related branches

dobey (dobey)
Changed in aptdaemon:
status: New → Fix Committed
dobey (dobey)
Changed in aptdaemon (Ubuntu):
status: New → 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.