Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenLayers Plugin fails to use the System proxy #22595

Closed
qgib opened this issue Apr 7, 2016 · 3 comments
Closed

OpenLayers Plugin fails to use the System proxy #22595

qgib opened this issue Apr 7, 2016 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@qgib
Copy link
Contributor

qgib commented Apr 7, 2016

Author Name: Nikos Tsarmpopoulos (@ntsarb)
Original Redmine Issue: 14630
Affected QGIS version: 2.14.0
Redmine category:unknown


Hi,

QGIS 2.14.1 64bit (on Windows 7 Pro 64bit) is currently configured to use proxy for web access, with proxy type DefaultProxy.

When launching Web -> OpenLayers plugin and then any of the data sources, I get the following error.

An error has occurred while executing Python code:

TypeError: unable to convert a QVariant of type 10 to a QMetaType of type 2
Traceback (most recent call last):
File "C:/Users/username_removed/.qgis2/python/plugins\openlayers_plugin\weblayers\weblayer.py", line 97, in addLayer
self._addLayerCallback(self)
File "C:/Users/username_removed/.qgis2/python/plugins\openlayers_plugin\openlayers_plugin.py", line 130, in addLayer
layer = OpenlayersLayer(self.iface, self._olLayerTypeRegistry)
File "C:/Users/username_removed/.qgis2/python/plugins\openlayers_plugin\openlayers_layer.py", line 330, in init
self.olWebPage = OLWebPage(self)
File "C:/Users/username_removed/.qgis2/python/plugins\openlayers_plugin\openlayers_layer.py", line 48, in init
proxy = getProxy()
File "C:/Users/username_removed/.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.14.1-Essen Essen, ea85bef

Python Path:
C:/PROGRA1/QGISES1/apps/qgis/./python/plugins\processing
C:\Users\username_removed\.qgis2\python\plugins
avidata
C:/PROGRA1/QGISES1/apps/qgis/./python
C:/Users/username_removed/.qgis2/python
C:/Users/username_removed/.qgis2/python/plugins
C:/PROGRA1/QGISES1/apps/qgis/./python/plugins
C:\PROGRA1\QGISES1\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg
C:\PROGRA1\QGISES1\apps\Python27\lib\site-packages
ose-1.3.3-py2.7.egg
C:\PROGRA1\QGISES1\apps\Python27\lib\site-packages\tornado-4.0.1-py2.7-win-amd64.egg
C:\PROGRA1\QGISES1\apps\Python27\lib\site-packages\backports.ssl_match_hostname-3.4.0.2-py2.7.egg
C:\PROGRA1\QGISES1\apps\Python27\lib\site-packages\certifi-14.05.14-py2.7.egg
C:\PROGRA1\QGISES1\bin\python27.zip
C:\PROGRA1\QGISES1\apps\Python27\DLLs
C:\PROGRA1\QGISES1\apps\Python27\lib
C:\PROGRA1\QGISES1\apps\Python27\lib\plat-win
C:\PROGRA1\QGISES1\apps\Python27\lib\lib-tk
C:\PROGRA1\QGISES1\bin
C:\PROGRA1\QGISES1\apps\Python27
C:\PROGRA1\QGISES1\apps\Python27\lib\site-packages
C:\PROGRA1\QGISES1\apps\Python27\lib\site-packages\PIL
C:\PROGRA1\QGISES1\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg
C:\PROGRA1\QGISES1\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg
C:\PROGRA1\QGISES1\apps\Python27\lib\site-packages\pytz-2012j-py2.7.egg
C:\PROGRA1\QGISES1\apps\Python27\lib\site-packages\win32
C:\PROGRA1\QGISES1\apps\Python27\lib\site-packages\win32\lib
C:\PROGRA1\QGISES1\apps\Python27\lib\site-packages\Pythonwin
C:\PROGRA1\QGISES1\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg
C:\PROGRA1\QGISES1\apps\Python27\lib\site-packages\six-1.10.0-py2.7.egg
C:\PROGRA1\QGISES1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode
C:\PROGRA1\QGISES1\apps\Python27\lib\site-packages\xlrd-0.9.2-py2.7.egg
C:\PROGRA1\QGISES1\apps\Python27\lib\site-packages\xlwt-0.7.5-py2.7.egg
C:/Users/username_removed/.qgis2//python
C:\PROGRA1\QGISES1\apps\qgis\python\plugins\fTools\tools
D:/WBA 2016/GIS Model

@qgib
Copy link
Contributor Author

qgib commented Apr 7, 2016

Author Name: Nyall Dawson (@nyalldawson)


Not a bug with QGIS. Please open this issue on the open layer's plugin tracker. (Or alternatively use the quick map services plugin as it does a similar thing but with much less bugs)


  • resolution was changed from to invalid
  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Apr 7, 2016

Author Name: Nikos Tsarmpopoulos (@ntsarb)


Nyall Dawson wrote:

Not a bug with QGIS. Please open this issue on the open layer's plugin tracker. (Or alternatively use the quick map services plugin as it does a similar thing but with much less bugs)

Thanks for your response. I'm new here and just realised there's a separate tracker for the plugin. I've now reported it there.

@qgib
Copy link
Contributor Author

qgib commented Sep 22, 2017

Author Name: Jürgen Fischer (@jef-n)


  • category_id was configured as Unknown

@qgib qgib added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

1 participant