Bug#1001291: binoculars: autopkgtest tests for all supported python3 versions but vtk7 extensions don't exist for all

2022-01-31 Thread Graham Inggs
Control: reopen -1

debian/tests/control still contains:

Test-Command: set -efu
 ; cp -r tests examples "$AUTOPKGTEST_TMP"
 ; for py in $(py3versions -r 2>/dev/null)
 ; do cd "$AUTOPKGTEST_TMP"
 ; echo "Testing with $py:"
 ; $py -m unittest discover -s tests -v
 ; done

...and the test still fails with python 3.10 as a supported version:

autopkgtest [06:13:31]: test command1: set -efu ; cp -r tests examples
"$AUTOPKGTEST_TMP" ; for py in $(py3versions -r 2>/dev/null) ; do cd
"$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py -m unittest
discover -s tests -v ; done
autopkgtest [06:13:31]: test command1: [---
Testing with python3.10:
test_IO (test_cfg.TestCase) ... ok
test_id03 (unittest.loader._FailedTest) ... ERROR
test_metadata (unittest.loader._FailedTest) ... ERROR

==
ERROR: test_id03 (unittest.loader._FailedTest)
--
ImportError: Failed to import test module: test_id03
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/vtk/vtkCommonCore.py", line 5,
in 
from .vtkCommonCorePython import *
ModuleNotFoundError: No module named 'vtk.vtkCommonCorePython'



Bug#1001291: binoculars: autopkgtest tests for all supported python3 versions but vtk7 extensions don't exist for all

2021-12-07 Thread Paul Gevers

Source: binoculars
Version: 0.0.6-1
Severity: serious
X-Debbugs-CC: debian...@lists.debian.org
Tags: sid bookworm
User: debian...@lists.debian.org
Usertags: needs-update
Control: affects -1 src:python3-defaults

Dear maintainer(s),

With a recent upload of python3-defaults the autopkgtest of binoculars 
fails in testing when that autopkgtest is run with the binary packages 
of python3-defaults from unstable. It passes when run with only packages 
from testing. In tabular form:


   passfail
python3-defaults   from testing3.9.8-1
binoculars from testing0.0.6-1
all others from testingfrom testing

I copied some of the output at the bottom of this report. It seems 
you're testing for all supported Python3 version in Debian, but one of 
your dependencies doesn't provide the required extensions (bug #951300). 
Either convince the maintainer of that package to build the extensions, 
or only test with the default Python3 version.


Currently this regression is blocking the migration of python3-defaults 
to testing [1].


More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=python3-defaults

https://ci.debian.net/data/autopkgtest/testing/amd64/b/binoculars/17344284/log.gz

Testing with python3.10:
test_IO (test_cfg.TestCase) ... ok
test_id03 (unittest.loader._FailedTest) ... ERROR
test_metadata (unittest.loader._FailedTest) ... ERROR

==
ERROR: test_id03 (unittest.loader._FailedTest)
--
ImportError: Failed to import test module: test_id03
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/vtk/vtkCommonCore.py", line 5, 
in 

from .vtkCommonCorePython import *
ModuleNotFoundError: No module named 'vtk.vtkCommonCorePython'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/unittest/loader.py", line 436, in 
_find_test_path

module = self._get_module_from_name(name)
  File "/usr/lib/python3.10/unittest/loader.py", line 377, in 
_get_module_from_name

__import__(name)
  File 
"/tmp/autopkgtest-lxc.73x5fv_7/downtmp/autopkgtest_tmp/tests/test_id03.py", 
line 1, in 

from binoculars.backends import id03
  File "/usr/lib/python3/dist-packages/binoculars/backends/id03.py", 
line 10, in 

from .. import backend, errors, util
  File "/usr/lib/python3/dist-packages/binoculars/backend.py", line 1, 
in 

from . import util, errors, dispatcher
  File "/usr/lib/python3/dist-packages/binoculars/dispatcher.py", line 
9, in 

from . import util, errors, space
  File "/usr/lib/python3/dist-packages/binoculars/space.py", line 13, 
in 

from vtk import vtkImageData, vtkXMLImageDataWriter
  File "/usr/lib/python3/dist-packages/vtk/__init__.py", line 41, in 


from .vtkCommonCore import *
  File "/usr/lib/python3/dist-packages/vtk/vtkCommonCore.py", line 9, 
in 

from vtkCommonCorePython import *
ModuleNotFoundError: No module named 'vtkCommonCorePython'


==
ERROR: test_metadata (unittest.loader._FailedTest)
--
ImportError: Failed to import test module: test_metadata
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/vtk/vtkCommonCore.py", line 5, 
in 

from .vtkCommonCorePython import *
ModuleNotFoundError: No module named 'vtk.vtkCommonCorePython'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/unittest/loader.py", line 436, in 
_find_test_path

module = self._get_module_from_name(name)
  File "/usr/lib/python3.10/unittest/loader.py", line 377, in 
_get_module_from_name

__import__(name)
  File 
"/tmp/autopkgtest-lxc.73x5fv_7/downtmp/autopkgtest_tmp/tests/test_metadata.py", 
line 2, in 

import binoculars.space
  File "/usr/lib/python3/dist-packages/binoculars/space.py", line 13, 
in 

from vtk import vtkImageData, vtkXMLImageDataWriter
  File "/usr/lib/python3/dist-packages/vtk/__init__.py", line 41, in 


from .vtkCommonCore import *
  File "/usr/lib/python3/dist-packages/vtk/vtkCommonCore.py", line 9, 
in 

from vtkCommonCorePython import *
ModuleNotFoundError: No module named 'vtkCommonCorePython'


--
Ran 3 tests in 0.022s

FAILED (errors=2)
ConfigFile{
  [dispatcher]
destination = b'demo_{first}-{last}.hdf5'
overwrite = b'true'
type = b'local'
  [projection]
resolution = b'0.002, 0.002, 1'
type = b'id03:hklprojection'
  [input]
centralpixel = b'40, 255'
imagefolder =