Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't load plugin, No module named 'imp' #296

Open
kudlav opened this issue Apr 26, 2024 · 1 comment
Open

Couldn't load plugin, No module named 'imp' #296

kudlav opened this issue Apr 26, 2024 · 1 comment

Comments

@kudlav
Copy link

kudlav commented Apr 26, 2024

Couldn't load plugin 'vector_tiles_reader' due to an error when calling its classFactory() method

ModuleNotFoundError: No module named 'imp' 
Traceback (most recent call last):
  File "C:\PROGRA~1/QGIS 3.36.2/apps/qgis/./python\qgis\utils.py", line 426, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/Vladan/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/QGIS 3.36.2/apps/qgis/./python\qgis\utils.py", line 923, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/Vladan/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\vector_tiles_reader\plugin\vtr_plugin.py", line 31, in 
    from .style_converter import core
  File "C:\PROGRA~1/QGIS 3.36.2/apps/qgis/./python\qgis\utils.py", line 923, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/Vladan/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\vector_tiles_reader\plugin\style_converter\core\__init__.py", line 12, in 
    from ...util.network_helper import http_get
  File "C:\PROGRA~1/QGIS 3.36.2/apps/qgis/./python\qgis\utils.py", line 923, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/Vladan/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\vector_tiles_reader\plugin\util\network_helper.py", line 10, in 
    from .log_helper import info, remove_key, warn
  File "C:\PROGRA~1/QGIS 3.36.2/apps/qgis/./python\qgis\utils.py", line 923, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/Vladan/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\vector_tiles_reader\plugin\util\log_helper.py", line 103, in 
    from imp import reload
  File "C:\PROGRA~1/QGIS 3.36.2/apps/qgis/./python\qgis\utils.py", line 923, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'imp'

Python version: 3.12.3 (main, Apr 14 2024, 17:21:43) [MSC v.1938 64 bit (AMD64)]
QGIS version: 3.36.2-Maidenhead Maidenhead, 6d250527

Python Path:

  • C:/PROGRA~1/QGIS 3.36.2/apps/qgis/./python
  • C:/Users/Vladan/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • C:/Users/Vladan/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
  • C:/PROGRA~1/QGIS 3.36.2/apps/qgis/./python/plugins
  • C:\PROGRA~1\QGIS 3.36.2\apps\grass\grass83\etc\python
  • C:\Users\Vladan\Documents
  • C:\Program Files\QGIS 3.36.2\bin\python312.zip
  • C:\PROGRA~1\QGIS 3.36.2\apps\Python312\DLLs
  • C:\PROGRA~1\QGIS 3.36.2\apps\Python312\Lib
  • C:\Program Files\QGIS 3.36.2\bin
  • C:\PROGRA~1\QGIS 3.36.2\apps\Python312
  • C:\PROGRA~1\QGIS 3.36.2\apps\Python312\Lib\site-packages
  • C:\PROGRA~1\QGIS 3.36.2\apps\Python312\Lib\site-packages\win32
  • C:\PROGRA~1\QGIS 3.36.2\apps\Python312\Lib\site-packages\win32\lib
  • C:\PROGRA~1\QGIS 3.36.2\apps\Python312\Lib\site-packages\Pythonwin
  • C:/Users/Vladan/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • C:\Users\Vladan\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\vector_tiles_reader\ext-libs
@sfkeller
Copy link

Similar issue as #295 .

I'm sorry but this plugin is deprecated and not maintained. It's redundant as Tom said: #295 (comment) .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants