王大大和王小小 · 2019-06-17 15:11
安装的时候会出现一下情况:
无法载入插件“openlayers_plugin”因在调用其classFactory()方法时发生错误
ImportError: cannot import name 'OpenlayersPlugin' from 'openlayers_plugin' (C:/Users/Lenovo/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\openlayers_plugin\__init__.py)
Traceback (most recent call last):
File "C:/PROGRA~1/QGIS3~1.6/apps/qgis/./python\qgis\utils.py", line 335, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:/Users/Lenovo/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/Lenovo/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\openlayers_plugin\__init__.py)
Python版本: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
QGIS版本: 3.6.3-Noosa Noosa, 0c5774c068