[Bug 1576193] Re: software-properties-gtk complains about Gdk being imported without a version

Miloš Pavlović 1576193 at bugs.launchpad.net
Tue May 31 14:27:18 UTC 2016


Not sure how to send a patch, I'm used to git
This is all new to me :)

What I did was to add next lines in "/usr/lib/python3/dist-
packages/softwareproperties/gtk/SoftwarePropertiesGtk.py"


from gi import require_version
require_version('Gtk', '3.0')
require_version('Gdk', '3.0')

before the next line

from gi.repository import GObject, Gdk, Gtk, Gio, GLib

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

Title:
  software-properties-gtk complains about Gdk being imported without a
  version

Status in software-properties package in Ubuntu:
  Triaged

Bug description:
  jik at jik5:~$ software-properties-gtk &
  [1] 6387
  jik at jik5:~$ /usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py:40: PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_version('Gdk', '3.0') before import to ensure that the right version gets loaded.
    from gi.repository import GObject, Gdk, Gtk, Gio, GLib

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: software-properties-gtk 0.96.20
  ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
  Uname: Linux 4.4.0-21-generic x86_64
  NonfreeKernelModules: nvidia_uvm nvidia_modeset nvidia
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Thu Apr 28 08:42:25 2016
  InstallationDate: Installed on 2016-01-16 (103 days ago)
  InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
  PackageArchitecture: all
  SourcePackage: software-properties
  UpgradeStatus: Upgraded to xenial on 2016-04-28 (0 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1576193/+subscriptions



More information about the foundations-bugs mailing list