我已经使用QGIS一段时间了,但是自从使用QGIS 2以来,OpenLayers插件在我的家用PC上不起作用。但是,我已经在工作场所成功安装了相同版本。我浏览了其他帖子,并尝试设置CRS并允许即时运行,但这对我不起作用。
谁能提供其他指导?
我也尝试过卸载/重新安装。
错误代码如下:
执行Python代码时发生错误:
追溯(最近一次通话最近):在addLayer自身中,文件“ C:\ Users \ Lee / .qgis2 / python / plugins \ openlayers_plugin \ openlayers_plugin.py”,第48行。plugin.addLayer(self)文件“ C:\ Users \ Lee / .qgis2 / python / plugins \ openlayers_plugin \ openlayers_plugin.py”,行194,位于addLayer层= OpenlayersLayer(self.iface,self .__ coordRSGoogle,self.olLayerTypeRegistry) __init self.page = OLWebPage()中的文件“ C:\ Users \ Lee / .qgis2 / python / plugins \ openlayers_plugin \ openlayers_layer.py”,第64行,文件“ C:\ Users \ Lee / .qgis2 / python / plugins \ openlayers_plugin \ openlayers_layer.py”,第38行,init proxy = getProxy()文件“ C:\ Users \ Lee / .qgis2 / python / plugins \ openlayers_plugin \ tools_network.py”,第42行,位于getProxy proxy.setPort(settings.value(“ / proxyPort”,10,type = int))TypeError:无法将类型10的QVariant转换为类型2的QMetaType
Python版本:2.7.5(默认值,2013年5月15日,22:44:16)[MSC v.1500 64位(AMD64)]
QGIS版本:2.0.1-Dufour Dufour,d94c044
Python路径:['C:/ PROGRA〜1 / QGISDU〜1 / apps / qgis /./ python / plugins \ processing','C:\ Users \ Lee \ .qgis2 \ python \ plugins \ GeoCoding','C: /PROGRA~1/QGISDU~1/apps/qgis/./python','C:\ Users \ Lee / .qgis2 / python','C:\ Users \ Lee / .qgis2 / python / plugins','C :/ PROGRA〜1 / QGISDU〜1 / apps / qgis /./ python / plugins','C:\ PROGRA〜1 \ QGISDU〜1 \ bin \ python27.zip','C:\ PROGRA〜1 \ QGISDU〜 1 \ apps \ Python27 \ DLLs','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ plat-win' ,'C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ lib-tk','C:\ PROGRA〜1 \ QGISDU〜1 \ bin','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ PIL','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ win32','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ win32 \ lib',' C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ Pythonwin','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ Shapely-1.2。 18-py2.7-win-amd64.egg','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ six-1.3.0-py2.7.egg','C :\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ wx-2.8-msw-unicode','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ xlrd-0.9.2-py2.7.egg','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ xlwt-0.7.5-py2.7.egg',' C:\ Users \ Lee \ .qgis2 \ python \ plugins \ mmqgis / forms','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ qgis \ python \ plugins \ fTools \ tools']\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ win32 \ lib','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ Pythonwin',' C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ Shapely-1.2.18-py2.7-win-amd64.egg','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ six-1.3.0-py2.7.egg','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ wx-2.8-msw -unicode','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ xlrd-0.9.2-py2.7.egg','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ xlwt-0.7.5-py2.7.egg','C:\ Users \ Lee \ .qgis2 \ python \ plugins \ mmqgis / forms','C:\ PROGRA〜 1 \ QGISDU〜1 \ apps \ qgis \ python \ plugins \ fTools \ tools']\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ win32 \ lib','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ Pythonwin',' C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ Shapely-1.2.18-py2.7-win-amd64.egg','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ six-1.3.0-py2.7.egg','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ wx-2.8-msw -unicode','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ xlrd-0.9.2-py2.7.egg','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ xlwt-0.7.5-py2.7.egg','C:\ Users \ Lee \ .qgis2 \ python \ plugins \ mmqgis / forms','C:\ PROGRA〜 1 \ QGISDU〜1 \ apps \ qgis \ python \ plugins \ fTools \ tools']2.18-py2.7-win-amd64.egg','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ six-1.3.0-py2.7.egg','C :\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ wx-2.8-msw-unicode','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ xlrd-0.9.2-py2.7.egg','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ xlwt-0.7.5-py2.7.egg',' C:\ Users \ Lee \ .qgis2 \ python \ plugins \ mmqgis / forms','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ qgis \ python \ plugins \ fTools \ tools']2.18-py2.7-win-amd64.egg','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ six-1.3.0-py2.7.egg','C :\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ wx-2.8-msw-unicode','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ xlrd-0.9.2-py2.7.egg','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ Python27 \ lib \ site-packages \ xlwt-0.7.5-py2.7.egg',' C:\ Users \ Lee \ .qgis2 \ python \ plugins \ mmqgis / forms','C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ qgis \ python \ plugins \ fTools \ tools']egg”,“ C:\ Users \ Lee \ .qgis2 \ python \ plugins \ mmqgis / forms”,“ C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ qgis \ python \ plugins \ fTools \ tools”]egg”,“ C:\ Users \ Lee \ .qgis2 \ python \ plugins \ mmqgis / forms”,“ C:\ PROGRA〜1 \ QGISDU〜1 \ apps \ qgis \ python \ plugins \ fTools \ tools”]