<div dir="ltr">Hi Enrique,<div><br></div><div>Thanks. It worked great.</div><div><br></div><div>-Leo</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 27, 2015 at 4:49 PM, Enrique <span dir="ltr"><<a href="mailto:filonio@gmail.com" target="_blank">filonio@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>It seems a bug of the plugin. I have found this workaround (QGIS 2.10.1 Pisa, Win7) when you have Internet Access <span lang="en"><span>through proxy</span></span>:<br><br></div><div>1. Settings>Options>Network>Use proxy for web access>Select httpproxy (or Sockets, i.e.)> Set any port value (i.e. 9)<br></div><div>2. Select again DefaultProxy>OK<br><br></div><div>Go!<br></div><div></div><br></div><div>This workaround is only required for the first load of OSM layers.<br></div><div><br></div>Enrique.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2015-08-27 4:02 GMT+02:00 Leo Kris Palao <span dir="ltr"><<a href="mailto:lk.palao@gmail.com" target="_blank">lk.palao@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>Hi Guys,</div><div><br></div><div>I want to use OpenLayers plugin in my QGIS 2.10 Pisa but getting an error message. This error started when I upgraded my QGIS to version 2.8 Wien, and until now, in my QGIS 2.10 still have this. Can I have some advise how to solve this issue?</div><div><br></div><div>I am using Windows 7 OS.</div><div><br></div><div>Thanks in advance,</div><div>-Leo</div><div><br></div><div><p style="margin:0px"><span style="color:rgb(255,0,0)">An error has occured while executing Python code:</span><br><br></p>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex" class="gmail_quote"><span style="font-family:'Courier New,courier'">Traceback (most recent call last):<br></span><span style="font-family:'Courier New,courier'">  File "C:/Users/lpalao/.qgis2/python/plugins\openlayers_plugin\weblayers\weblayer.py", line 97, in addLayer<br></span><span style="font-family:'Courier New,courier'">    self._addLayerCallback(self)<br></span><span style="font-family:'Courier New,courier'">  File "C:/Users/lpalao/.qgis2/python/plugins\openlayers_plugin\openlayers_plugin.py", line 130, in addLayer<br></span><span style="font-family:'Courier New,courier'">    layer = OpenlayersLayer(self.iface, self._olLayerTypeRegistry)<br></span><span style="font-family:'Courier New,courier'">  File "C:/Users/lpalao/.qgis2/python/plugins\openlayers_plugin\openlayers_layer.py", line 330, in __init__<br></span><span style="font-family:'Courier New,courier'">    self.olWebPage = OLWebPage(self)<br></span><span style="font-family:'Courier New,courier'">  File "C:/Users/lpalao/.qgis2/python/plugins\openlayers_plugin\openlayers_layer.py", line 48, in __init__<br></span><span style="font-family:'Courier New,courier'">    proxy = getProxy()<br></span><span style="font-family:'Courier New,courier'">  File "C:/Users/lpalao/.qgis2/python/plugins\openlayers_plugin\tools_network.py", line 42, in getProxy<br></span><span style="font-family:'Courier New,courier'">    proxy.setPort(settings.value("/proxyPort", 10, type=int))<br></span><span style="font-family:'Courier New,courier'">TypeError: unable to convert a QVariant of type 10 to a QMetaType of type 2</span><br>Python version:<br>2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]<br><br>QGIS version:<br>2.10.1-Pisa Pisa, d20c5b7<br>Python path: ['C:/PROGRA~1/QGISPI~1/apps/qgis/./python/plugins\\processing', 'C:/PROGRA~1/QGISPI~1/apps/qgis/./python', u'C:/Users/lpalao/.qgis2/python', u'C:/Users/lpalao/.qgis2/python/plugins', 'C:/PROGRA~1/QGISPI~1/apps/qgis/./python/plugins', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\matplotlib-1.3.1-py2.7-win-amd64.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\nose-1.3.3-py2.7.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\tornado-4.0.1-py2.7-win-amd64.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\backports.ssl_match_hostname-3.4.0.2-py2.7.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\certifi-14.05.14-py2.7.egg', 'C:\\OSGeo4W\\apps\\Python27', 'C:\\OSGeo4W\\apps\\qgis\\bin', 'C:\\OSGeo4W\\apps\\qgis\\python', 'C:\\Python27\\Python2.7.9', 'C:\\Python27\\Python2.7.9\\Scripts', 'C:\\PROGRA~1\\QGISPI~1\\bin\\python27.zip', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\DLLs', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\plat-win', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\lib-tk', 'C:\\PROGRA~1\\QGISPI~1\\bin', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\PIL', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\jinja2-2.7.2-py2.7.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\markupsafe-0.23-py2.7-win-amd64.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\pytz-2012j-py2.7.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\win32', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\win32\\lib', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\Pythonwin', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\Shapely-1.2.18-py2.7-win-amd64.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\six-1.3.0-py2.7.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\xlrd-0.9.2-py2.7.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\xlwt-0.7.5-py2.7.egg', u'C:/Users/lpalao/.qgis2//python', 'C:\\Users\\lpalao\\.qgis2\\python\\plugins\\mmqgis/forms', 'C:\\PROGRA~1\\QGISPI~1\\apps\\qgis\\python\\plugins\\fTools\\tools']</blockquote>
</div></div>
<br></div></div>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>
</blockquote></div><br></div>