apt-xapian-index: not compatible with Python 3.12

Bug #2055272 reported by Graham Inggs
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apt-xapian-index (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

$ sudo apt install apt-xapian-index
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  apt-xapian-index
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 43.2 kB of archives.
After this operation, 288 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu noble/universe amd64 apt-xapian-index all 0.51ubuntu1 [43.2 kB]
Fetched 43.2 kB in 1s (80.0 kB/s)
Selecting previously unselected package apt-xapian-index.
(Reading database ... 309447 files and directories currently installed.)
Preparing to unpack .../apt-xapian-index_0.51ubuntu1_all.deb ...
Unpacking apt-xapian-index (0.51ubuntu1) ...
Setting up apt-xapian-index (0.51ubuntu1) ...
/usr/lib/python3/dist-packages/axi/__init__.py:53: SyntaxWarning: invalid escape sequence '\s'
  re_empty = re.compile("^\s*(?:#.*)?$")
/usr/lib/python3/dist-packages/axi/__init__.py:54: SyntaxWarning: invalid escape sequence '\S'
  re_value = re.compile("^(\S+)\s+(\d+)(?:\s*#\s*(.+))?$")
apt-xapian-index: Building new index in background...
Processing triggers for man-db (2.12.0-3) ...
Traceback (most recent call last):
  File "/usr/sbin/update-apt-xapian-index", line 66, in <module>
    import axi.indexer
  File "/usr/lib/python3/dist-packages/axi/indexer.py", line 27, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'

Revision history for this message
Graham Inggs (ginggs) wrote :

$ axi-cache info
Traceback (most recent call last):
  File "/usr/bin/axi-cache", line 864, in <module>
    sys.exit(ui.perform())
             ^^^^^^^^^^^^
  File "/usr/bin/axi-cache", line 855, in perform
    return f(self.args)
           ^^^^^^^^^^^^
  File "/usr/bin/axi-cache", line 411, in do_info
    import axi.indexer
  File "/usr/lib/python3/dist-packages/axi/indexer.py", line 27, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt-xapian-index - 0.54ubuntu1

---------------
apt-xapian-index (0.54ubuntu1) noble; urgency=medium

  * Merge from Debian unstable (LP: #2055203). Remaining changes:
    - Prefer native packages over foreign packages.
    - Do not crash if the DB is already locked.
    - Do not modify the DB "in-place" with --update
    - debian/patches/01_axi_cjk_support.patch:
      - Activate the CJK support when indexing the database.
    - debian/patches/02_axi-pkgname-mangled-term.patch:
      - add XPM term that contains a mangled version of the pkgname.
    - plugins/app-install.py:
      - Ignore file not found errors due to a race condition.
    - debian/patches/06_32bit_sizes.patch: Watch out for package sizes that
      don't fit in 32 bits.
    - debian/patches/07_glib_import.patch: Fix the import of GLib and GObject.
    - Build with quilt
  * Dropped changes, no longer applicable:
    - Bump the minimum version for removal of the dbus service
  * debian/patches/python3.12.patch: Python 3.12 compatibility
    (LP: #2055272)

apt-xapian-index (0.54) unstable; urgency=low

  * QA upload.

  * remove undeclared need for python3-six (Closes: #1032332, #1039456)
  * bump to debhelper 13 & some forward compatibility with 14/15
  * migrate from python3-nose to python3-nose2 (Closes: #1018310)
  * fix "unowned files after purge" (Closes: #863959)
  * remove old references to deprecated debian_bundle
  * fix remaining old Python2 "print" (Closes: #968060)
  * provide a native systemd timer matching the cron job
  * fix Py2->3 fallout: "rdetails fails: TypeError:" (Closes: #940987)
  * review with mypy, remove more Python2 hybridation
  * set Rules-Requires-Root: no
  * d/control: remove redundant dh-python

  [ Debian Janitor ]
  * Remove constraints unnecessary since stretch:
    + Build-Depends-Indep: Drop versioned constraint on bash-completion.

  [ Gioele Barabucci ]
  * d/post{inst,rm},preinst: Remove code for ancient versions

apt-xapian-index (0.53) unstable; urgency=medium

  * QA upload.
  * Add the missing build dependency on python3-six. (Closes: #997109)
  * Remove the dead Homepage. (Closes: #974718)

apt-xapian-index (0.52) unstable; urgency=medium

  * QA upload.

  [ Debian Janitor ]
  * Use set -e rather than passing -e on the shebang-line.

 -- Graham Inggs <email address hidden> Wed, 28 Feb 2024 11:26:43 +0000

Changed in apt-xapian-index (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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