[Bug 1502173] Re: Python warnings: modules imported without specifying a version first

if.gnu.linux if.gnu.linux at gmail.com
Wed Feb 17 19:22:00 UTC 2016


This bug still exists in apport-gtk on Ubuntu 16.04. 
To fix the issue:
1- Open apport-gtk script
                         sudo nano /usr/share/apport/apport-gtk

2- Change
                         import os.path, sys, subprocess, os, re
     line to
                         import os.path, sys, subprocess, os, re, gi

3- After 'import' line before 'from gi.repository import GLib, Wnck, GdkX11, Gdk' line, add
                         gi.require_version('Wnck', '3.0')
                         gi.require_version('GdkX11', '3.0')

LC_ALL=C apt-cache policy apport-gtk 
apport-gtk:
  Installed: 2.20-0ubuntu3
  Candidate: 2.20-0ubuntu3
  Version table:
 *** 2.20-0ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu xenial/main i386 Packages
        100 /var/lib/dpkg/status

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

Title:
  Python warnings: modules imported without specifying a version first

Status in apport package in Ubuntu:
  Confirmed

Bug description:
  Hi,

  here is the problem:

  $ /usr/share/apport/apport-gtk
  /usr/share/apport/apport-gtk:16: PyGIWarning: Wnck was imported without specifying a version first. Use gi.require_version('Wnck', '3.0') before import to ensure that the right version gets loaded.
    from gi.repository import GLib, Wnck, GdkX11, Gdk
  /usr/share/apport/apport-gtk:16: PyGIWarning: GdkX11 was imported without specifying a version first. Use gi.require_version('GdkX11', '3.0') before import to ensure that the right version gets loaded.
    from gi.repository import GLib, Wnck, GdkX11, Gdk

  ProblemType: Bug
  DistroRelease: Ubuntu 15.10
  Package: apport-gtk 2.19-0ubuntu1
  Uname: Linux 4.2.2-040202-generic x86_64
  ApportVersion: 2.19-0ubuntu1
  Architecture: amd64
  CurrentDesktop: KDE
  Date: Fri Oct  2 16:17:14 2015
  EcryptfsInUse: Yes
  PackageArchitecture: all
  SourcePackage: apport
  UpgradeStatus: Upgraded to wily on 2015-10-02 (0 days ago)

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



More information about the foundations-bugs mailing list