Package: python3-tower-cli
Version: 3.2.0-2
Severity: serious
User: helm...@debian.org
Usertags: python-import
Control: affects -1 + ansible-tower-cli

After installing 'python3-tower-cli' in a minimal system
importing the module 'tower_cli.resources.setting' into a
python interpreter fails with the following error:

$ python3 -c 'import tower_cli.resources.setting'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/tower_cli/resources/setting.py", line 
17, in <module>
    from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils.util'

This makes /usr/bin/tower-cli from ansible-tower-cli fail to start.

As of python3.6, distutils moved from libpython3.X-stdlib to python3-distutils.

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.


Cheers,

Andreas

Reply via email to