Public bug reported:

This happens now, at least in tests, thanks to the new twisted in Ubuntu
13.04 using pygtkcompat:

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 277, in main
    suite = test_runner.get_suite(options)
  File 
"/usr/lib/python2.7/dist-packages/ubuntuone-dev-tools/ubuntuone/devtools/runners/__init__.py",
 line 173, in get_suite
    config['ignore-paths']))
  File 
"/usr/lib/python2.7/dist-packages/ubuntuone-dev-tools/ubuntuone/devtools/runners/__init__.py",
 line 157, 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 98, in _load_unittest
    module = __import__(modpath, None, None, [""])
  File 
"/mnt/tarmac/cache/ubuntuone-client/trunk/tests/platform/os_helper/test_linux.py",
 line 39, in <module>
    GIO_NOT_SUPPORTED = gio.ERROR_NOT_SUPPORTED
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 316, in __getattr__
    return getattr(self._introspection_module, name)
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 135, in __getattr__
    self.__name__, name))
AttributeError: 'gi.repository.Gio' object has no attribute 
'ERROR_NOT_SUPPORTED'

This is because we check for the old API being loaded first, and use gi
only when it isn't in use. However, use of pygtkcompat in twisted's
gireactor now, means that the things we were checking for are set in
sys.modules, but actually point to the new APIs, which are not
compatible.

** Affects: ubuntuone-client
     Importance: Critical
     Assignee: Rodney Dawes (dobey)
         Status: In Progress

** Affects: ubuntuone-client/stable-4-2
     Importance: High
     Assignee: Rodney Dawes (dobey)
         Status: Triaged

** Affects: ubuntuone-client/trunk
     Importance: Critical
     Assignee: Rodney Dawes (dobey)
         Status: In Progress

** Affects: ubuntuone-client (Ubuntu)
     Importance: Undecided
     Assignee: Rodney Dawes (dobey)
         Status: Triaged

** Affects: ubuntuone-client (Ubuntu Raring)
     Importance: Undecided
     Assignee: Rodney Dawes (dobey)
         Status: Triaged

** Also affects: ubuntuone-client/stable-4-2
   Importance: Undecided
       Status: New

** Also affects: ubuntuone-client/trunk
   Importance: Undecided
       Status: New

** Changed in: ubuntuone-client/trunk
       Status: New => In Progress

** Changed in: ubuntuone-client/trunk
     Assignee: (unassigned) => Rodney Dawes (dobey)

** Changed in: ubuntuone-client/stable-4-2
       Status: New => Triaged

** Changed in: ubuntuone-client/trunk
   Importance: Undecided => Critical

** Changed in: ubuntuone-client/stable-4-2
   Importance: Undecided => High

** Changed in: ubuntuone-client/stable-4-2
     Assignee: (unassigned) => Rodney Dawes (dobey)

** Changed in: ubuntuone-client/stable-4-2
    Milestone: None => 4.1.90

** Also affects: ubuntuone-client (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: ubuntuone-client (Ubuntu Raring)
   Importance: Undecided
       Status: New

** Changed in: ubuntuone-client (Ubuntu Raring)
       Status: New => Triaged

** Changed in: ubuntuone-client (Ubuntu Raring)
     Assignee: (unassigned) => Rodney Dawes (dobey)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1108036

Title:
  Twisted use of pygtkcompat breaks support of old pygobject APIS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntuone-client/+bug/1108036/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to