Bug#1059671: ropgadget: autopkgtest failure with Python 3.12

2024-01-03 Thread Timo Röhling

Control: reassign -1 python3-capstone
Control: retitle -1 python3-capstone: Python 3.12 has no module named 
'distutils'

On Fri, 29 Dec 2023 23:25:28 +0200 Graham Inggs  
wrote:

 36s from capstone import *
 36s   File "/usr/lib/python3/dist-packages/capstone/__init__.py",
line 266, in 
 36s import distutils.sysconfig
 36s ModuleNotFoundError: No module named 'distutils'
 37s autopkgtest [20:09:36]: test autodep8-python3: ---]
 37s autodep8-python3 FAIL non-zero exit status 1


The distutils import happens in python3-capstone, reassigning.


Cheers
Timo

--
⢀⣴⠾⠻⢶⣦⠀   ╭╮
⣾⠁⢠⠒⠀⣿⡁   │ Timo Röhling   │
⢿⡄⠘⠷⠚⠋⠀   │ 9B03 EBB9 8300 DF97 C2B1  23BF CC8C 6BDD 1403 F4CA │
⠈⠳⣄   ╰╯


signature.asc
Description: PGP signature


Bug#1059671: ropgadget: autopkgtest failure with Python 3.12

2023-12-29 Thread Graham Inggs
Source: ropgadget
Version: 7.4+dfsg-1
Severity: serious
User: debian-pyt...@lists.debian.org
Usertags: python3.12

Hi Maintainer

ropgadget's autopkgtests fail with Python 3.12 [1].  I've copied what
I hope is the relevant part of the log below.

Regards
Graham


[1] https://ci.debian.net/packages/r/ropgadget/testing/amd64/


 36s autopkgtest [20:09:35]: test autodep8-python3: [---
 36s Testing with python3.12:
 36s Traceback (most recent call last):
 36s   File "", line 1, in 
 36s   File "/usr/lib/python3/dist-packages/ropgadget/__init__.py",
line 10, in 
 36s import ropgadget.binary
 36s   File "/usr/lib/python3/dist-packages/ropgadget/binary.py", line
11, in 
 36s from ropgadget.loaders.elf import *
 36s   File "/usr/lib/python3/dist-packages/ropgadget/loaders/__init__.py",
line 9, in 
 36s import ropgadget.loaders.elf
 36s   File "/usr/lib/python3/dist-packages/ropgadget/loaders/elf.py",
line 11, in 
 36s from capstone import *
 36s   File "/usr/lib/python3/dist-packages/capstone/__init__.py",
line 266, in 
 36s import distutils.sysconfig
 36s ModuleNotFoundError: No module named 'distutils'
 37s autopkgtest [20:09:36]: test autodep8-python3: ---]
 37s autodep8-python3 FAIL non-zero exit status 1