Bug#896353: python3-ltfatpy: ltfatpy fails to import

Helmut Grohne helmut at subdivi.de
Fri Apr 20 21:01:29 BST 2018


Package: python3-ltfatpy
Version: 1.0.12-1
Severity: serious
User: helmutg at debian.org
Usertags: python-import

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

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/ltfatpy/__init__.py", line 131, in <module>
    from ltfatpy.gabor.instfreqplot import instfreqplot
  File "/usr/lib/python3/dist-packages/ltfatpy/gabor/instfreqplot.py", line 68, in <module>
    from ltfatpy.gabor.plotdgt import plotdgt
  File "/usr/lib/python3/dist-packages/ltfatpy/gabor/plotdgt.py", line 68, in <module>
    from ltfatpy.gabor.tfplot import tfplot
  File "/usr/lib/python3/dist-packages/ltfatpy/gabor/tfplot.py", line 67, in <module>
    import matplotlib.pyplot as plt
  File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 115, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "/usr/lib/python3/dist-packages/matplotlib/backends/__init__.py", line 62, in pylab_setup
    [backend_name], 0)
  File "/usr/lib/python3/dist-packages/matplotlib/backends/backend_tkagg.py", line 4, in <module>
    from . import tkagg  # Paint image to Tk photo blitter extension.
  File "/usr/lib/python3/dist-packages/matplotlib/backends/tkagg.py", line 5, in <module>
    from six.moves import tkinter as Tk
  File "/usr/lib/python3/dist-packages/six.py", line 92, in __get__
    result = self._resolve()
  File "/usr/lib/python3/dist-packages/six.py", line 115, in _resolve
    return _import_module(self.mod)
  File "/usr/lib/python3/dist-packages/six.py", line 82, in _import_module
    __import__(name)
ModuleNotFoundError: No module named 'tkinter'

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



More information about the debian-science-maintainers mailing list