ModuleNotFoundError: No module named 'vtkdicom.vtkDICOM'
Dear Mentors,
I am looking for help on vtk-dicom package. Current issue is here (1),
repeated here:
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 "<string>", line 1, in <module>
File "/usr/lib/python3/dist-packages/vtkdicom/__init__.py", line 1,
in <module>
from .vtkDICOM import *
ModuleNotFoundError: No module named 'vtkdicom.vtkDICOM'
I did talk with upstream and I am using the correct python module
name. Indeed from my current sid64 schroot:
% python3
Python 3.11.1 (main, Dec 31 2022, 10:23:59) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import vtkdicom
>>> print(vtkdicom)
<module 'vtkdicom' from '/usr/lib/python3/dist-packages/vtkdicom/__init__.py'>
with
% apt-cache policy python3-vtk-dicom
python3-vtk-dicom:
Installed: 0.8.14-3
Candidate: 0.8.14-3
Version table:
*** 0.8.14-3 500
500 http://deb.debian.org/debian sid/main amd64 Packages
100 /var/lib/dpkg/status
autopkg test seems to be using python *3.10* while the python module
is built using *3.11*:
[...]
/usr/lib/python3/dist-packages/vtkdicom/vtkDICOM.cpython-311-x86_64-linux-gnu.so
[...]
What am I missing here ? My understanding of python module is quite limited.
Thanks !
(1) https://ci.debian.net/data/autopkgtest/testing/amd64/v/vtk-dicom/30492694/log.gz
Reply to: