[Debian-med-packaging] Bug#988745: vtk-dicom: autodep8-python3 autopkgtest failure
Étienne Mollier
etienne.mollier at mailoo.org
Tue May 18 22:33:48 BST 2021
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 <etienne.mollier at mailoo.org>
Fingerprint: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da
Sent from /dev/pts/1, please excuse my verbosity.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20210518/1ddbff87/attachment.sig>
More information about the Debian-med-packaging
mailing list