axi-cache conversion to python3 broke the script
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt-xapian-index (Ubuntu) |
Fix Released
|
High
|
serge sidorov |
Bug Description
axi-cache, the script command line in apt-xapian-index, is now converted to python3.
In python3 afaik module ConfigParser is now renamed in configparser.
running axi-cache, throw an error:
mizio@sammiz:~$ axi-cache
No module named 'ConfigParser': only help functions are implemented, for the sake of help2man
if I edit axi-cache, fixing the module name (row 50, "from configparser import RawConfigParser" instead of "from ConfigParser..." all seems ok:
mizio@sammiz:~$ axi-cache
Usage: axi-cache [options] command [args]
Query the Apt Xapian index.
Commands:
<...>
But this fix isn't sufficient. The script not seems to me really python3 compatible, ie:
mizio@sammiz:~$ axi-cache search brasero
4 results found.
Results 1-4:
100% b'brasero-cdrkit' - (unknown by apt)
98% b'brasero-common' - (unknown by apt)
77% b'gir1.
71% b'brasero' - (unknown by apt)
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/bin/
return f(self.args)
File "/usr/bin/
self.
File "/usr/bin/
sugg = self.clean_
File "/usr/bin/
return self.enquire.
File "/usr/bin/
return term[0].islower()
AttributeError: 'int' object has no attribute 'islower'
for this reason I suggest to revert the "python3 conversion" or ask the upstream to convert the script.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: apt-xapian-index 0.47ubuntu8.1 [modified: usr/bin/axi-cache]
ProcVersionSign
Uname: Linux 4.4.0-35-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: GNOME
Date: Sat Aug 13 14:39:38 2016
InstallationDate: Installed on 2010-05-06 (2290 days ago)
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
PackageArchitec
SourcePackage: apt-xapian-index
UpgradeStatus: Upgraded to xenial on 2016-08-12 (0 days ago)
Changed in apt-xapian-index (Ubuntu): | |
importance: | Undecided → Medium |
tags: | removed: package-from-proposed |
tags: | added: artful |
tags: |
added: bionic removed: amd64 |
tags: | removed: zesty |
tags: | added: eoan |
Changed in apt-xapian-index (Ubuntu): | |
importance: | Medium → High |
tags: | added: rls-ee-incoming |
tags: | added: rls-bb-incoming |
tags: |
added: rls-bb-notfixing rls-ee-notfixing removed: rls-bb-incoming rls-ee-incoming |
Changed in apt-xapian-index (Ubuntu): | |
assignee: | nobody → serge sidorov (sergesidorovv) |
Status changed to 'Confirmed' because the bug affects multiple users.