Bug#896350: python3-mapbox-vector-tile: mapbox_vector_tile fails to import

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


Package: python3-mapbox-vector-tile
Version: 0.5.0+ds-4
Severity: serious
User: helmutg at debian.org
Usertags: python-import

After installing python3-mapbox-vector-tile importing the module mapbox_vector_tile
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/mapbox_vector_tile/__init__.py", line 1, in <module>
    from . import encoder
  File "/usr/lib/python3/dist-packages/mapbox_vector_tile/encoder.py", line 3, in <module>
    from past.builtins import long
  File "/usr/lib/python3/dist-packages/past/__init__.py", line 88, in <module>
    from past.translation import install_hooks as autotranslate
  File "/usr/lib/python3/dist-packages/past/translation/__init__.py", line 41, in <module>
    from lib2to3.pgen2.parse import ParseError
ModuleNotFoundError: No module named 'lib2to3'

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 Pkg-grass-devel mailing list