Bug#1029178: vtk-dicom: autopkgtest failure

2023-01-19 Thread Sebastian Ramacher
On 2023-01-19 08:49:00 +0200, Adrian Bunk wrote:
> On Wed, Jan 18, 2023 at 11:29:35PM +0100, Sebastian Ramacher wrote:
> > Source: vtk-dicom
> > Version: 0.8.14-3
> > Severity: serious
> > 
> > https://ci.debian.net/data/autopkgtest/testing/amd64/v/vtk-dicom/30492694/log.gz
> > 
> > autopkgtest [23:14:01]: test autodep8-python3: set -e ; for py in 
> > $(py3versions -d 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing 
> > with $py:" ; $py -c "import vtkdicom; print(vtkdicom)" ; done
> > autopkgtest [23:14:01]: test autodep8-python3: [---
> > Testing with python3.10:
> > Traceback (most recent call last):
> >   File "", line 1, in 
> >   File "/usr/lib/python3/dist-packages/vtkdicom/__init__.py", line 1, in 
> > 
> > from .vtkDICOM import *
> > ModuleNotFoundError: No module named 'vtkdicom.vtkDICOM'
> 
> I don't see how this is the fault of the package,
> or something the package could easily address.[1]

python3-vtk-dicom's Depends are incorrect. If it only builds the
extension module, it is supposed to have python3 (>= $default-version),
python3 (<< $default-version + 1) as depenedency. From the buildlog:

dpkg-gencontrol: warning: package python3-vtk-dicom: substitution variable 
${python3:Depends} unused, but is defined

Adding the substvar to python3-vtk-dicom's Depends should fix this
issue.

Cheers

> 
> The package builds a Python C extension against the default Python3 
> version only.
> 
> The autopkgtest tests this extension against the default Python3 version.
> 
> With python3/unstable the autopkgtest is passing:
> https://ci.debian.net/packages/v/vtk-dicom/
> 
> Testing against a different python3 default fails for obvious reasons.
> 
> > Cheers
> 
> cu
> Adrian
> 
> [1] Building a Python C extension against multiple Python3 versions is 
> easy for packages that build nothing else, but usually hard (and 
> rarely done) for packages that build Python bindings for a C/C++
> library as part of their normal build process.

-- 
Sebastian Ramacher



Bug#1029178: vtk-dicom: autopkgtest failure

2023-01-18 Thread Adrian Bunk
On Wed, Jan 18, 2023 at 11:29:35PM +0100, Sebastian Ramacher wrote:
> Source: vtk-dicom
> Version: 0.8.14-3
> Severity: serious
> 
> https://ci.debian.net/data/autopkgtest/testing/amd64/v/vtk-dicom/30492694/log.gz
> 
> autopkgtest [23:14:01]: test autodep8-python3: set -e ; for py in 
> $(py3versions -d 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with 
> $py:" ; $py -c "import vtkdicom; print(vtkdicom)" ; done
> autopkgtest [23:14:01]: test autodep8-python3: [---
> Testing with python3.10:
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "/usr/lib/python3/dist-packages/vtkdicom/__init__.py", line 1, in 
> 
> from .vtkDICOM import *
> ModuleNotFoundError: No module named 'vtkdicom.vtkDICOM'

I don't see how this is the fault of the package,
or something the package could easily address.[1]

The package builds a Python C extension against the default Python3 
version only.

The autopkgtest tests this extension against the default Python3 version.

With python3/unstable the autopkgtest is passing:
https://ci.debian.net/packages/v/vtk-dicom/

Testing against a different python3 default fails for obvious reasons.

> Cheers

cu
Adrian

[1] Building a Python C extension against multiple Python3 versions is 
easy for packages that build nothing else, but usually hard (and 
rarely done) for packages that build Python bindings for a C/C++
library as part of their normal build process.



Bug#1029178: vtk-dicom: autopkgtest failure

2023-01-18 Thread Sebastian Ramacher
Source: vtk-dicom
Version: 0.8.14-3
Severity: serious

https://ci.debian.net/data/autopkgtest/testing/amd64/v/vtk-dicom/30492694/log.gz

autopkgtest [23:14:01]: test autodep8-python3: set -e ; for py in $(py3versions 
-d 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py -c 
"import vtkdicom; print(vtkdicom)" ; done
autopkgtest [23:14:01]: test autodep8-python3: [---
Testing with python3.10:
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3/dist-packages/vtkdicom/__init__.py", line 1, in 

from .vtkDICOM import *
ModuleNotFoundError: No module named 'vtkdicom.vtkDICOM'

Cheers
-- 
Sebastian Ramacher