[Qgis-user] OpenLayers plugin error

Carlos Cerdán sig.upagu at gmail.com
Tue Apr 8 05:59:11 PDT 2014


Hi Luciano:

I'm just guessing about this error ( TypeError: unable to convert a
QVariant of type 10 to a QMetaType of type 2 Python ). It led me to
http://hub.qgis.org/issues/8934 and maybe it's the decimal symbol. Maybe
you have comma as decimal symbol, so try setting it to point (maybe all the
system) ... and tell us.

Saludos amigo,

Carlos


2014-04-07 18:49 GMT-05:00 Luciano La Sala <lucianolasala at yahoo.com.ar>:

> Dear all,  I am using QGIS 2.2.0 Valmiera on Windows 8. Regardless of the
> version of QGIS I use, I've always had some sort of problem with python
> plugin OpenLayers. With this version, I succeeded in installing the plugin
> but then when I select "Plugins" >> "OpenLayers plugin" >> "Add Google
> Street Layer" or "Add Google Satellite Layer", the following error pops up
> and I can't seem to find a solution to this problem! Thank you in advance.
>  Luciano
>
>  An error has occured while executing Python code: Traceback (most recent
> call last): File
> "C:/Users/lucianolasala/.qgis2/python/plugins\openlayers_plugin\openlayers_plugin.py",
> line 50, in addLayer self.__plugin.addLayer(self) File
> "C:/Users/lucianolasala/.qgis2/python/plugins\openlayers_plugin\openlayers_plugin.py",
> line 204, in addLayer layer = OpenlayersLayer(self.iface,
> self.__coordRSGoogle, self.olLayerTypeRegistry) File
> "C:/Users/lucianolasala/.qgis2/python/plugins\openlayers_plugin\openlayers_layer.py",
> line 64, in __init__ self.page = OLWebPage() File
> "C:/Users/lucianolasala/.qgis2/python/plugins\openlayers_plugin\openlayers_layer.py",
> line 38, in __init__ proxy = getProxy() File
> "C:/Users/lucianolasala/.qgis2/python/plugins\openlayers_plugin\tools_network.py",
> line 42, in getProxy proxy.setPort(settings.value("/proxyPort", 10,
> type=int))
> TypeError: unable to convert a QVariant of type 10 to a QMetaType of type
> 2 Python version:
> 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] QGIS
> version:
> 2.2.0-Valmiera Valmiera, c3a2817 Python path:
> ['C:/PROGRA~1/QGISVA~1/apps/qgis/./python/plugins\\processing',
> 'C:/PROGRA~1/QGISVA~1/apps/qgis/./python',
> u'C:/Users/lucianolasala/.qgis2/python',
> u'C:/Users/lucianolasala/.qgis2/python/plugins',
> 'C:/PROGRA~1/QGISVA~1/apps/qgis/./python/plugins',
> 'C:\\PROGRA~1\\QGISVA~1\\bin\\python27.zip',
> 'C:\\PROGRA~1\\QGISVA~1\\apps\\Python27\\DLLs',
> 'C:\\PROGRA~1\\QGISVA~1\\apps\\Python27\\lib',
> 'C:\\PROGRA~1\\QGISVA~1\\apps\\Python27\\lib\\plat-win',
> 'C:\\PROGRA~1\\QGISVA~1\\apps\\Python27\\lib\\lib-tk',
> 'C:\\PROGRA~1\\QGISVA~1\\bin', 'C:\\PROGRA~1\\QGISVA~1\\apps\\Python27',
> 'C:\\PROGRA~1\\QGISVA~1\\apps\\Python27\\lib\\site-packages',
> 'C:\\PROGRA~1\\QGISVA~1\\apps\\Python27\\lib\\site-packages\\PIL',
> 'C:\\PROGRA~1\\QGISVA~1\\apps\\Python27\\lib\\site-packages\\win32',
> 'C:\\PROGRA~1\\QGISVA~1\\apps\\Python27\\lib\\site-packages\\win32\\lib',
> 'C:\\PROGRA~1\\QGISVA~1\\apps\\Python27\\lib\\site-packages\\Pythonwin',
> 'C:\\PROGRA~1\\QGISVA~1\\apps\\Python27\\lib\\site-packages\\Shapely-1.2.18-py2.7-win-amd64.egg',
> 'C:\\PROGRA~1\\QGISVA~1\\apps\\Python27\\lib\\site-packages\\six-1.3.0-py2.7.egg',
> 'C:\\PROGRA~1\\QGISVA~1\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode',
> 'C:\\PROGRA~1\\QGISVA~1\\apps\\Python27\\lib\\site-packages\\xlrd-0.9.2-py2.7.egg',
> 'C:\\PROGRA~1\\QGISVA~1\\apps\\Python27\\lib\\site-packages\\xlwt-0.7.5-py2.7.egg',
> 'C:\\PROGRA~1\\QGISVA~1\\apps\\qgis\\python\\plugins\\fTools\\tools']
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20140408/caeea4fe/attachment.html>


More information about the Qgis-user mailing list