Package: python-nipy Version: 0.4.2-1 Severity: serious User: helm...@debian.org Usertags: python-import
After installing python-nipy importing the module nipy 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/nipy/__init__.py", line 32, in <module> from nipy.io.api import load_image, save_image, as_image File "/usr/lib/python2.7/dist-packages/nipy/io/api.py", line 3, in <module> from .files import load as load_image, save as save_image, as_image File "/usr/lib/python2.7/dist-packages/nipy/io/files.py", line 19, in <module> import nibabel as nib 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