** Description changed:
+ [Description]
+ Users receive warnings about importing of python modules with a version being
specified. While this isn't a big deal in itself we get lots of bug reports
from people about this issue since it is so obvious. Given that Ubuntu 16.04
is an LTS release we should fix this and prevent further reporting of the issue.
+
+ [Test Case]
+ 1) run /usr/share/apport-gtk in a terminal
+ 2) Observe the following
+
+ /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
+
+ with the version of apport in -proposed you'll no longer receive the
+ warning.
+
+ [Regression Potential]
+ As with any SRU this could cause a regression in the software if the fix is
typo'ed so review it carefully. If there isn't a typo and then the chance of a
regression is very very very low.
+
+ Original 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
+ 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
+ from gi.repository import GLib, Wnck, GdkX11, Gdk
- ProblemType: Bug
- DistroRelease: Ubuntu 15.10
+ ProblemType: BugDistroRelease: 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
+ PackageArchitecture: allSourcePackage: apport
UpgradeStatus: Upgraded to wily on 2015-10-02 (0 days ago)
** Description changed:
[Description]
Users receive warnings about importing of python modules with a version being
specified. While this isn't a big deal in itself we get lots of bug reports
from people about this issue since it is so obvious. Given that Ubuntu 16.04
is an LTS release we should fix this and prevent further reporting of the issue.
[Test Case]
- 1) run /usr/share/apport-gtk in a terminal
+ 1) run /usr/share/apport/apport-gtk in a terminal
2) Observe the following
/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
+ 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
+ from gi.repository import GLib, Wnck, GdkX11, Gdk
with the version of apport in -proposed you'll no longer receive the
warning.
[Regression Potential]
As with any SRU this could cause a regression in the software if the fix is
typo'ed so review it carefully. If there isn't a typo and then the chance of a
regression is very very very low.
Original 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: BugDistroRelease: 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: allSourcePackage: apport
UpgradeStatus: Upgraded to wily on 2015-10-02 (0 days ago)
** Changed in: apport (Ubuntu Xenial)
Status: Triaged => In Progress
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1502173
Title:
Python warnings: modules imported without specifying a version first
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1502173/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs