Source: vtk-dicom Version: 0.8.12-1+b2 Severity: serious Tags: patch Greetings,
While looking up the unrelated bug #988643, I noticed that the
package triggered an autodep8 python3 autopkgtest failure:
autopkgtest [21:45:13]: test autodep8-python3: set -e ; for py in
$(py3versions -d 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with
$py:" ; $py -c "import vtk_dicom; print(vtk_dicom)" ; done
autopkgtest [21:45:13]: test autodep8-python3: [-----------------------
Testing with python3.9:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'vtk_dicom'
autopkgtest [21:45:13]: test autodep8-python3: -----------------------]
This crash is due to a mismatch between the module name derived
from the package name, and the actual Python module name, which
is vtkDICOMPython:
>>> import vtk_dicom
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'vtk_dicom'
>>> import vtkDICOMPython
>>> print(vtkDICOMPython)
<module 'vtkDICOMPython' from
'/usr/lib/python3/dist-packages/vtkDICOMPython.cpython-39-x86_64-linux-gnu.so'>
The fix would be to override the import name, with a file
debian/tests/autopkgtest-pkg-python.conf containing the
following statement, hence the "patch" tag:
import_name = vtkDICOMPython
Albeit superficial, the autopkgtest failure would prevent
migration to testing, hence the severity.
Have a nice day, :)
--
Étienne Mollier <[email protected]>
Fingerprint: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da
Sent from /dev/pts/1, please excuse my verbosity.
signature.asc
Description: PGP signature

