sourcepole / qgis-openlayers-plugin

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

ImportError: cannot import name 'OpenlayersPlugin' from 'openlayers_plugin' #71

Closed rootsmusic closed 2 years ago

rootsmusic commented 2 years ago

Traceback (most recent call last): File "C:\PROGRA~1/QGIS31~1.14/apps/qgis-ltr/./python\qgis\utils.py", line 334, 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.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] QGIS version: 3.16.14-Hannover Hannover, 42791986 Python Path: • C:/PROGRA~1/QGIS31~1.14/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/QGIS31~1.14/apps/qgis-ltr/./python/plugins • C:\Program Files\QGIS 3.16.14\bin\python39.zip • C:\PROGRA~1\QGIS31~1.14\apps\Python39\DLLs • C:\PROGRA~1\QGIS31~1.14\apps\Python39\lib • C:\Program Files\QGIS 3.16.14\bin • C:\PROGRA~1\QGIS31~1.14\apps\Python39 • C:\PROGRA~1\QGIS31~1.14\apps\Python39\lib\site-packages • C:\PROGRA~1\QGIS31~1.14\apps\Python39\lib\site-packages\GDAL-3.4.0-py3.9-win-amd64.egg • C:\PROGRA~1\QGIS31~1.14\apps\Python39\lib\site-packages\win32 • C:\PROGRA~1\QGIS31~1.14\apps\Python39\lib\site-packages\win32\lib • C:\PROGRA~1\QGIS31~1.14\apps\Python39\lib\site-packages\Pythonwin • C:/Users/admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:\Users/admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Redistricting\packages