[Bug 1579834] Re: update-apt-xapian-index-dbus fails because of wrong import

Carlo Vanini silhusk at gmail.com
Tue Aug 2 16:18:05 UTC 2016


Hi Brian,

apt-xapian-index/0.47ubuntu8.1 does fix the bug described in this
report, but exposes another one that still causes update-apt-xapian-
index-dbus to fail. That is,

* string.split() was deprecated and has been removed from python3
* the subprocess stdout has to be opened as text, otherwise readline() returns bytes instead of text

I changed the existing 05_python3.patch to fix them, and attach an
updated debdiff including these changes. (or would you like me to split
them?)


** Patch added: "apt-xapian-index_0.47ubuntu8.1.debdiff"
   https://bugs.launchpad.net/ubuntu/xenial/+source/apt-xapian-index/+bug/1579834/+attachment/4712454/+files/apt-xapian-index_0.47ubuntu8.1.debdiff

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

Title:
  update-apt-xapian-index-dbus fails because of wrong import

Status in apt-xapian-index package in Ubuntu:
  Fix Released
Status in apt-xapian-index source package in Xenial:
  Fix Committed

Bug description:
  [Test Case]
  1) run /usr/share/apt-xapian-index/update-apt-xapian-index-dbus
  2) Observe it terminate with an error and does not update the index
     "Failed to import 'No module named 'glib'', can not use dbus"

  With the version from proposed it should not exit with this error.

  [Regression Potential]
  It doesn't work at all, so this'll be an improvement.

  -----------------------------------------------------------------

  Mai 09 15:42:10 bear dbus[1017]: [system] Activating service name='org.debian.AptXapianIndex' (using servicehelper)
  Mai 09 15:42:10 bear org.debian.AptXapianIndex[1017]: Failed to import 'No module named 'glib'', can not use dbus
  Mai 09 15:42:11 bear dbus[1017]: [system] Activated service 'org.debian.AptXapianIndex' failed: Launch helper exited with unknown return code 1

  The correct import should be:

      from gi.repository import GLib as glib
      from gi.repository import GObject as gobject

  ProblemType: BugDistroRelease: Ubuntu 16.04
  Package: apt-xapian-index 0.47ubuntu8 [modified: usr/share/apt-xapian-index/update-apt-xapian-index-dbus]
  ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
  Uname: Linux 4.4.0-21-generic x86_64
  NonfreeKernelModules: wl
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  CurrentDesktop: KDE
  Date: Mon May  9 17:52:17 2016
  InstallationDate: Installed on 2015-05-04 (370 days ago)
  InstallationMedia: Kubuntu 15.04 "Vivid Vervet" - Beta amd64 (20150326)
  PackageArchitecture: allSourcePackage: apt-xapian-index
  UpgradeStatus: Upgraded to xenial on 2016-05-04 (4 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-xapian-index/+bug/1579834/+subscriptions



More information about the foundations-bugs mailing list