Bug#1063412: virulencefinder fails autopkg tests with Python 3.12

2024-02-08 Thread Andreas Tille
Control: tags -1 moreinfo

Am Wed, Feb 07, 2024 at 09:13:52PM +0100 schrieb Matthias Klose:
> Package: src:virulencefinder
> Version: 2.0.4-4

I have 

 $ dpkg -l virulencefinder | grep ^ii
 ii  virulencefinder 2.0.4-4  all  identify virulence genes in 
total or partial sequenced isolates of bacteria

> Severity: important
> Tags: sid trixie ftbfs
> User: debian-pyt...@lists.debian.org
> Usertags: python3.12
> 
> [...]
> 692s autopkgtest [16:44:14]: test run-unit-test: [---
> 699s Traceback (most recent call last):
> 699s   File "/usr/bin/virulencefinder.py", line 7, in 
> 699s from distutils.spawn import find_executable
> 699s ModuleNotFoundError: No module named 'distutils'

This was fixed in 2.0.4-4 by closing bug #1061856.

$ grep distutils /usr/bin/virulencefinder.py

$ head -n8 /usr/bin/virulencefinder.py
#! /usr/bin/python3
from __future__ import division
from argparse import ArgumentParser
from tabulate import tabulate
from cgecore.blaster import Blaster
from cgecore.cgefinder import CGEFinder
import shutil
import sys

--> Line 7 has shutil and not distutils.spawn.

Seems something is wrong at your side.  Did you by chance used an old
version but used the version number of the latest version in the bug
report?

Kind regards
Andreas.

-- 
http://fam-tille.de



Bug#1063412: virulencefinder fails autopkg tests with Python 3.12

2024-02-07 Thread Matthias Klose

Package: src:virulencefinder
Version: 2.0.4-4
Severity: important
Tags: sid trixie ftbfs
User: debian-pyt...@lists.debian.org
Usertags: python3.12

[...]
692s autopkgtest [16:44:14]: test run-unit-test: [---
699s Traceback (most recent call last):
699s   File "/usr/bin/virulencefinder.py", line 7, in 
699s from distutils.spawn import find_executable
699s ModuleNotFoundError: No module named 'distutils'
699s autopkgtest [16:44:21]: test run-unit-test: ---]
700s autopkgtest [16:44:22]: test run-unit-test:  - - - - - - - - - - 
results - - - - - - - - - -

700s run-unit-testFAIL non-zero exit status 1
700s autopkgtest [16:44:22]:  summary
700s run-unit-testFAIL non-zero exit status 1