sourcepole / qgis-openlayers-plugin

Openlayers plugin for QGIS
GNU General Public License v2.0
172 stars 108 forks source link

Qgis throwing import error while installing the plugin #73

Open mm5m opened 1 month ago

mm5m commented 1 month ago

Other plugins are being installed without any issue. plz see the log below.

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

ImportError: cannot import name 'OpenlayersPlugin' from 'openlayers_plugin' (C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\openlayers_plugin__init.py) Traceback (most recent call last): File "C:\PROGRA~1/QGIS33~1.6/apps/qgis-ltr/./python\qgis\utils.py", line 423, in _startPlugin plugins[packageName] = package.classFactory(iface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\openlayers_plugin__init__.py", line 25, in classFactory from openlayers_plugin import OpenlayersPlugin ImportError: cannot import name 'OpenlayersPlugin' from 'openlayers_plugin' (C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\openlayers_plugin\init__.py)

Python version: 3.12.3 (main, Apr 14 2024, 17:21:43) [MSC v.1938 64 bit (AMD64)] QGIS version: 3.34.6-Prizren Prizren, 623828f5

Python Path: C:/PROGRA~1/QGIS33~1.6/apps/qgis-ltr/./python C:/Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:/Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins C:/PROGRA~1/QGIS33~1.6/apps/qgis-ltr/./python/plugins C:\PROGRA~1\QGIS33~1.6\apps\grass\grass83\etc\python C:\Users\Admin\Documents C:\Program Files\QGIS 3.34.6\bin\python312.zip C:\PROGRA~1\QGIS33~1.6\apps\Python312\DLLs C:\PROGRA~1\QGIS33~1.6\apps\Python312\Lib C:\Program Files\QGIS 3.34.6\bin C:\PROGRA~1\QGIS33~1.6\apps\Python312 C:\PROGRA~1\QGIS33~1.6\apps\Python312\Lib\site-packages C:\PROGRA~1\QGIS33~1.6\apps\Python312\Lib\site-packages\win32 C:\PROGRA~1\QGIS33~1.6\apps\Python312\Lib\site-packages\win32\lib C:\PROGRA~1\QGIS33~1.6\apps\Python312\Lib\site-packages\Pythonwin C:/Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python D:/Projects/QgisProjects