← Back to team overview

desktop-packages team mailing list archive

[Bug 829186] Re: Mixes static and GI library bindings

 

This bug was fixed in the package jockey - 0.9.4-0ubuntu1

---------------
jockey (0.9.4-0ubuntu1) oneiric; urgency=low

  * New upstream bug fix release:
    - oslib.py: Do not encourage to report package installation failure as
      SystemError, it will appear as a backend crash
    - jockey-gtk: Fix message_type argument to Gtk.MessageBox constructor
    - jockey/ui.py: For invalid combinations of LC_MESSAGES and LC_CTYPE, force
      stdout/stderr encoding to UTF-8 instead of C. (LP: #760883)
    - Fix GLib and GObject imports to be compatible with the future pygobject
      3.0. (LP: #829186)
    - jockey/detection.py, _driverid_to_handler(): In the case that there are
      multiple matching custom handlers for a DriverID, also check that their
      "package" attribute matches.
    - tests/run: Also support specifying individual test method names
  * Add debian/testpkgs/: Scripts and equivs control files for dummy
    driver packages which are convenient for testing.
  * debian/rules: Call debian/testpkgs/clean to ensure that we don't ship
    build stuff there.
  * data/handlers/{fglrx,nvidia}.py: Prevent crash if
    get_alternative_by_name() returns nothing.
  * jockey/oslib.py, {install,remove}_package(): Capture apt's stdout/err into
    the log file, to get proper error messages when packages fail to install.
    (LP: #552300).
  * jockey/oslib.py, install_package(): Avoid raising a SystemError when a
    package fails to install in apt, as this will appear as a crash in Jockey.
    Just point out the error in the log file instead. (LP: #804709)
  * tests/oslib.py: Update test cases for above change.
  * tests/oslib.py: Fix apt initialization to work with current apt versions.
  * data/handlers/{fglrx,nvidia}.py: Also show the -updates variants of the
    drivers, which will be updated to newer upstream versions after the
    Ubuntu release. (UbuntuSpec:desktop-o-xorg-stakeholders-request)
 -- Martin Pitt <martin.pitt@xxxxxxxxxx>   Mon, 22 Aug 2011 12:08:02 +0200

** Changed in: jockey (Ubuntu)
       Status: Fix Committed => Fix Released

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

Title:
  Mixes static and GI library bindings

Status in Ubuntu One Control Panel:
  New
Status in “jockey” package in Ubuntu:
  Fix Released
Status in “oneconf” package in Ubuntu:
  Fix Released
Status in “software-center” package in Ubuntu:
  Fix Released
Status in “ubiquity” package in Ubuntu:
  Fix Committed
Status in “ubuntuone-control-panel” package in Ubuntu:
  Triaged
Status in “update-manager” package in Ubuntu:
  Fix Released
Status in “usb-creator” package in Ubuntu:
  Fix Released

Bug description:
  This is a tracking bug for fixing programs which will crash with a
  newer pygobject >= 2.90. This is now absolutely zero tolerant against
  importing both the static and the GI version of a particular library.
  This was mostly the case with 2.28 as well, but did work in some cases
  (like "import gobject; from gi.repository import Gtk", in particular
  for "glib" and "gobject"). These now cause errors as well.

  See bug 828751 for some more information for this.

  $ ubuntuone-control-panel-gtk
  Traceback (most recent call last):
    File "/usr/bin/ubuntuone-control-panel-gtk", line 33, in <module>
      from ubuntuone.controlpanel.gui.gtk import main
    File "/usr/lib/python2.7/dist-packages/ubuntuone-control-panel/ubuntuone/controlpanel/gui/gtk/__init__.py", line 28, in <module>
      from ubuntuone.controlpanel.gui.gtk.gui import main
    File "/usr/lib/python2.7/dist-packages/ubuntuone-control-panel/ubuntuone/controlpanel/gui/gtk/gui.py", line 39, in <module>
      from gi.repository import GLib
    File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 23, in <module>
      from ._gi import _API, Repository
  ImportError: could not import gobject (error was: ImportError('When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject".',))

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntuone-control-panel/+bug/829186/+subscriptions