Package: python-dcmstack
Version: 0.6.2+git33-gb43919a.1-1
Severity: serious
User: helm...@debian.org
Usertags: python-import

After installing python-dcmstack importing the module dcmstack
into a python interpreter fails with the following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/dcmstack/__init__.py", line 7, in 
<module>
    from .dcmstack import *
  File "/usr/lib/python2.7/dist-packages/dcmstack/dcmstack.py", line 7, in 
<module>
    import nibabel as nb
  File "/usr/lib/python2.7/dist-packages/nibabel/__init__.py", line 38, in 
<module>
    from . import analyze as ana
  File "/usr/lib/python2.7/dist-packages/nibabel/analyze.py", line 87, in 
<module>
    from .volumeutils import (native_code, swapped_code, make_dt_codes,
  File "/usr/lib/python2.7/dist-packages/nibabel/volumeutils.py", line 22, in 
<module>
    from .casting import (shared_range, type_info, OK_FLOATS)
  File "/usr/lib/python2.7/dist-packages/nibabel/casting.py", line 11, in 
<module>
    from .testing import setup_test  # flake8: noqa F401
  File "/usr/lib/python2.7/dist-packages/nibabel/testing/__init__.py", line 29, 
in <module>
    from six.moves import zip_longest
ImportError: No module named six.moves

The vast majority of import failures is attributed to missing dependencies.
Often times that manifests as an ImportError or ModuleNotFoundError.
Typically, dependencies should be inserted by dh-python via ${python:Depends}
or ${python3:Depends}. Thus a missing dependency can be caused by incomplete
install_requires in setup.py. Sometimes a missing dependency of a dependency
is the cause, in such cases this bug should be reassigned.

Helmut

Reply via email to