geometalab / Vector-Tiles-Reader-QGIS-Plugin

Vector Tiles Reader QGIS-Plugin - QGIS Python plugin which reads Mapbox Vector Tiles from a server, a local MBTiles file or a directory
http://plugins.qgis.org/plugins/vector_tiles_reader/
GNU General Public License v2.0
149 stars 30 forks source link

Uncaught AttributeError: 'WindowsPath' object has no attribute 'rstrip' #265

Open willyqgis opened 5 years ago

willyqgis commented 5 years ago

No se pudo cargar el complemento 'vector_tiles_reader' debido a un error al llamar a su método classFactory() Steps to reproduce

  1. First
  2. Second
  3. Third
Traceback (most recent call last):
  File "C:/PROGRA~1/QGIS3~1.4/apps/qgis-ltr/./python\qgis\utils.py", line 335, in startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "C:/Users/HP/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\vector_tiles_reader\__init__.py", line 25, in classFactory
    from .plugin.vtr_plugin import VtrPlugin
  File "C:/PROGRA~1/QGIS3~1.4/apps/qgis-ltr/./python\qgis\utils.py", line 685, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/HP/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\vector_tiles_reader\plugin\vtr_plugin.py", line 51, in <module>
    from .vt_reader import VtReader
  File "C:/PROGRA~1/QGIS3~1.4/apps/qgis-ltr/./python\qgis\utils.py", line 685, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/HP/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\vector_tiles_reader\plugin\vt_reader.py", line 34, in <module>
    from .util.mp_helper import decode_tile_native, decode_tile_python, native_decoding_supported, unload_lib
  File "C:/PROGRA~1/QGIS3~1.4/apps/qgis-ltr/./python\qgis\utils.py", line 685, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/HP/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\vector_tiles_reader\plugin\util\mp_helper.py", line 7, in <module>
    import mapbox_vector_tile
  File "C:/PROGRA~1/QGIS3~1.4/apps/qgis-ltr/./python\qgis\utils.py", line 685, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\Users\HP\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\vector_tiles_reader\ext-libs\mapbox_vector_tile\__init__.py", line 1, in <module>
    from . import encoder
  File "C:/PROGRA~1/QGIS3~1.4/apps/qgis-ltr/./python\qgis\utils.py", line 685, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\Users\HP\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\vector_tiles_reader\ext-libs\mapbox_vector_tile\encoder.py", line 13, in <module>
    from .compat import PY3, vector_tile, apply_map
  File "C:/PROGRA~1/QGIS3~1.4/apps/qgis-ltr/./python\qgis\utils.py", line 685, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\Users\HP\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\vector_tiles_reader\ext-libs\mapbox_vector_tile\compat.py", line 7, in <module>
    from .Mapbox import vector_tile_pb2_p3
  File "C:/PROGRA~1/QGIS3~1.4/apps/qgis-ltr/./python\qgis\utils.py", line 685, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\Users\HP\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\vector_tiles_reader\ext-libs\mapbox_vector_tile\Mapbox\vector_tile_pb2_p3.py", line 4, in <module>
    from google.protobuf import descriptor as _descriptor
  File "C:/PROGRA~1/QGIS3~1.4/apps/qgis-ltr/./python\qgis\utils.py", line 685, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\Users\HP\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\vector_tiles_reader\ext-libs\google\__init__.py", line 2, in <module>
    __import__('pkg_resources').declare_namespace(__name__)
  File "C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\site-packages\pkg_resources\__init__.py", line 2176, in declare_namespace
    _handle_ns(packageName, path_item)
  File "C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\site-packages\pkg_resources\__init__.py", line 2096, in _handle_ns
    loader = importer.find_module(packageName)
  File "<frozen importlib._bootstrap_external>", line 431, in _find_module_shim
  File "<frozen importlib._bootstrap_external>", line 1346, in find_loader
  File "<frozen importlib._bootstrap_external>", line 1391, in find_spec
  File "<frozen importlib._bootstrap_external>", line 59, in _path_join
  File "<frozen importlib._bootstrap_external>", line 59, in <listcomp>
AttributeError: 'WindowsPath' object has no attribute 'rstrip'

vector_tiles_reader 3.0.5, QGIS 3.4.13-Madeira on Windows 10