update configparser import

Bug #1760608 reported by dino99
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apt-xapian-index (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This apply to synaptic, which use it for the 'quick search' feature. Sadly Debian have orphaned that package due to a missed maintainer. That is bad as many users consider synaptic as the best managing tool for the 'gnome' DE, and 'muon' still use that index too for the KDE DE.

Actual indexing is not complete and the partial python3 port let an unknown path.

***********

oem@lapubu:~$ axi-cache info
No module named 'ConfigParser': only help functions are implemented, for the sake of help2man

Finding location
- ConfigParser.py found into /usr/lib/python2.7
- configparser.py found into /usr/lib/python3.6

As the axi-cache script request ConfigParser.py, then give it satisfaction:

oem@lapubu:~$ sudo cp /usr/lib/python3.6/configparser.py /usr/lib/python3.6/ConfigParser.py
[sudo] Mot de passe de oem :

oem@lapubu:~$ axi-cache info
Main data directory: /var/lib/apt-xapian-index
Update timestamp: /var/lib/apt-xapian-index/update-timestamp (last updated: Sat Mar 31 22:10:30 2018)
Index location: /var/lib/apt-xapian-index/index (pointing to /var/cache/apt-xapian-index/index.2)
Documentation of index contents: /var/lib/apt-xapian-index/README
Documentation of available prefixes: /var/lib/apt-xapian-index/prefixes
Documentation of available values: /var/lib/apt-xapian-index/values
Plugin directory: /usr/share/apt-xapian-index/plugins
Plugin status:
  aliases enabled, up to date (353 days, 4:00:08.159429 older than index)
  app-install enabled, up to date (933 days, 12:36:03.159429 older than index)
  apttags enabled, needs indexing (0:07:27.093989 newer than index)
  cataloged_time enabled, needs indexing (0:07:27.093989 newer than index)
  debtags disabled
  descriptions enabled, needs indexing (0:07:27.093989 newer than index)
  relations enabled, needs indexing (0:07:27.093989 newer than index)
  sections enabled, needs indexing (0:07:27.093989 newer than index)
  sizes enabled, needs indexing (0:07:27.093989 newer than index)
  template enabled, up to date
  translated-desc enabled, up to date (1:19:32.159429 older than index)
  ....
*******
So the error is gone now, but seeing some 'needs indexing'; let checking it:

oem@lapubu:~$ sudo /usr/sbin/update-apt-xapian-index --update --quiet

oem@lapubu:~$ axi-cache info
Main data directory: /var/lib/apt-xapian-index
Update timestamp: /var/lib/apt-xapian-index/update-timestamp (last updated: Sat Mar 31 22:17:57 2018)
Index location: /var/lib/apt-xapian-index/index (pointing to /var/cache/apt-xapian-index/index.2)
Documentation of index contents: /var/lib/apt-xapian-index/README
Documentation of available prefixes: /var/lib/apt-xapian-index/prefixes
Documentation of available values: /var/lib/apt-xapian-index/values
Plugin directory: /usr/share/apt-xapian-index/plugins
Plugin status:
  aliases enabled, up to date (353 days, 4:07:35.253417 older than index)
  app-install enabled, up to date (933 days, 12:43:30.253417 older than index)
  apttags enabled, up to date (0:00:00 older than index)
  cataloged_time enabled, up to date (0:00:00 older than index)
  debtags disabled
  descriptions enabled, up to date (0:00:00 older than index)
  relations enabled, up to date (0:00:00 older than index)
  sections enabled, up to date (0:00:00 older than index)
  sizes enabled, up to date (0:00:00 older than index)
  template enabled, up to date
  translated-desc enabled, up to date (1:26:59.253417 older than index)
  ....

Well all are now working as expected.

The 18.10 cycle will hopefully get the complete python3 porting done; but until this dirty hack will do the trick.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: apt-xapian-index 0.47ubuntu13
ProcVersionSignature: Ubuntu 4.15.0-13.14-generic 4.15.10
Uname: Linux 4.15.0-13-generic i686
ApportVersion: 2.20.9-0ubuntu2
Architecture: i386
CurrentDesktop: LXDE
Date: Mon Apr 2 14:39:39 2018
InstallationDate: Installed on 2013-10-21 (1624 days ago)
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
PackageArchitecture: all
SourcePackage: apt-xapian-index
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
dino99 (9d9) wrote :
description: updated
dino99 (9d9)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apt-xapian-index (Ubuntu):
status: New → Confirmed
Norbert (nrbrtx)
tags: added: artful xenial
tags: removed: i386
Revision history for this message
Norbert (nrbrtx) wrote :

For 16.04 LTS xenial the copy command should be:

`sudo cp /usr/lib/python3.5/configparser.py /usr/lib/python3.5/ConfigParser.py`

Did so. If any axi-related problem will occur - I'll report it here.

Thank you @dino99!

And if it is possible, please pull this change as SRU to all current supported releases.

Revision history for this message
Brian Murray (brian-murray) wrote :

The correct solution is to modify the import in axi-info to "from ConfigParser" to "from configparser". If someone created a debdiff I'd be happy to sponsor it.

summary: - [Tweak] Needs an indexing fix
+ update configparser import
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.