← 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 software-center - 4.1.17

---------------
software-center (4.1.17) oneiric; urgency=low

  [ Matthew McGowan ]
  * lp:~mmcg069/software-center/gtk3fix:
    - description.py, do not connect to the viewport size-allocate signal,
      i think this should prevent the wierd spazz out when resize evetns
      occur

  [ Michael Vogt ]
  * softwarecenter/utils.py:
    - really remove old gmenusearcher code that uses the static gmenu
      bindings (LP: #828535)
  * softwarecenter/ui/{gtk,gtk3}/gmenusearch.py:
    - split gmenusearch into gtk2 (static bindings) and gtk3 (gi bindings)
    - update usage
  * softwarecenter/db/history_impl/apthistory.py:
    - add conditional use of gio.File() vs Gio.File.new_for_path()
  * softwarecenter/utils.py, softwarecenter/backend/reviews.py:
    - fixes in subtle API changes for Gio vs gio
  * softwarecenter/ui/gtk3/widgets/description.py:
    - prepare for upcomming Gdk pygi changes in 2.90.x
  * debian/control:
    - add python-gmenu back to the dependencies, the dynamic bindings
      can not be used with the gtk2 version os software-center
  * utils/piston-helpers/piston_get_useful_votes_helper.py,
    utils/piston-helpers/piston_get_reviews_helper.py:
    - fix exception type now that json is used (instead of simplejson)
      LP: #828324

  [ Kiwinote ]
  * data/ui/gtk3/css/softwarecenter.css:
    - theme GtkViewports not to have a padding or a border - looks quite nice
      around the banners now
  * many:
    - transition from a status bar to internal status labels (LP: #445558)
  * softwarecenter/ui/gtk3/session/viewmanager.py:
    - show/hide search entry when needed (LP: #828790)
  * softwarecenter/ui/gtk3/views/appdetailsview_gtk.py:
    - use a Gtk.IconSize rather than an int for Gtk.Image.new_from_icon_name
  * softwarecenter/ui/gtk3/widgets/buttons.py:
    - ellipsize category text in tile to avoid warnings
    - show channel selector on button-press-event instead of
      button-release-event for consistent menu behaviour (LP: #828317)

  [ Martin Pitt ]
  * Fix some more places which need to conditionally import gobject or
    GObject. (LP: #829186)
 -- Michael Vogt <michael.vogt@xxxxxxxxxx>   Fri, 19 Aug 2011 11:59:02 +0200

** Changed in: software-center (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 “oneconf” package in Ubuntu:
  Fix Released
Status in “software-center” package in Ubuntu:
  Fix Released
Status in “ubiquity” package in Ubuntu:
  Incomplete
Status in “ubuntuone-control-panel” package in Ubuntu:
  Triaged
Status in “update-manager” 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/ubuntu/+source/oneconf/+bug/829186/+subscriptions