Package: python-fake-factory
Version: 0.7.7-2
Severity: serious
User: helm...@debian.org
Usertags: python-import
After installing python-fake-factory importing the module faker
into a python interpreter fails with the following error:
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/dist-packages/faker/__init__.py", line 4, in
from faker.factory import Factory
File "/usr/lib/python2.7/dist-packages/faker/factory.py", line 10, in
from faker.config import DEFAULT_LOCALE, PROVIDERS, AVAILABLE_LOCALES
File "/usr/lib/python2.7/dist-packages/faker/config.py", line 13, in
AVAILABLE_LOCALES = find_available_locales(PROVIDERS)
File "/usr/lib/python2.7/dist-packages/faker/utils/loading.py", line 19, in
find_available_locales
provider_module = import_module(provider_path)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/usr/lib/python2.7/dist-packages/faker/providers/internet/__init__.py",
line 5, in
from ipaddress import ip_address, ip_network, IPV4LENGTH, IPV6LENGTH
ImportError: No module named ipaddress
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