← Back to team overview

desktop-packages team mailing list archive

[Bug 798734] Re: Cannot import Gio after importing pynotify

 

New pygobject doesn't allow to mix static and GI bindings, so it's not
possible to do such imports.

** Changed in: pygobject (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pygobject in Ubuntu.
https://bugs.launchpad.net/bugs/798734

Title:
  Cannot import Gio after importing pynotify

Status in “pygobject” package in Ubuntu:
  Invalid

Bug description:
  I think this trace will be self-explanatory.

  Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24) 
  [GCC 4.5.2] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import pynotify
  >>> from gi.repository import Gio
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/usr/lib/python2.7/dist-packages/gi/importer.py", line 76, in load_module
      dynamic_module._load()
    File "/usr/lib/python2.7/dist-packages/gi/module.py", line 249, in _load
      overrides_modules = __import__('gi.overrides', fromlist=[self._namespace])
    File "/usr/lib/python2.7/dist-packages/gi/overrides/Gio.py", line 48, in <module>
      FileEnumerator = override(FileEnumerator)
    File "/usr/lib/python2.7/dist-packages/gi/overrides/__init__.py", line 63, in override
      registry.register(type_)
    File "/usr/lib/python2.7/dist-packages/gi/overrides/__init__.py", line 38, in register
      self[override_class] = override_class
    File "/usr/lib/python2.7/dist-packages/gi/overrides/__init__.py", line 20, in __setitem__
      info = getattr(value, '__info__')
  AttributeError: type object 'FileEnumerator' has no attribute '__info__'
  >>>

  ProblemType: Bug
  DistroRelease: Ubuntu 11.04
  Package: python-gobject 2.28.3-1ubuntu1.1
  ProcVersionSignature: Ubuntu 2.6.38-10.44-generic 2.6.38.7
  Uname: Linux 2.6.38-10-generic i686
  Architecture: i386
  Date: Fri Jun 17 18:31:46 2011
  InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta i386 (20100318)
  ProcEnviron:
   LANGUAGE=ru:en
   LANG=ru_RU.UTF-8
   SHELL=/bin/bash
  SourcePackage: pygobject
  UpgradeStatus: Upgraded to natty on 2011-04-11 (66 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pygobject/+bug/798734/+subscriptions