[Qgis-user] is the openlayers plugin not working?

Pirmin Kalberer pi_ml at sourcepole.com
Tue May 10 11:54:15 PDT 2011


Hi M.E.

The exception is raised when a HttpCachingProxy is configured.
I opened a bug: http://hub.qgis.org/issues/30

Regards
Pirmin

Am Dienstag, 10. Mai 2011, 09.50:50 schrieb M.E.Dodd:
> Noticed openlayers plugin stopped working some time ago but even after
> reinstalling it still does not work in qgis1.6 or 1.7.  Had used it quite
> happily with previous versions of qgis and indeed these versions.
> 
> An error has occured while executing Python code:
> 
> Traceback (most recent call last):
>   File "C:/Documents and
> Settings/med4/.qgis/python/plugins\openlayers\openlayers_plugin.py", line
> 95, in setVisible self.__initGui()
>   File "C:/Documents and
> Settings/med4/.qgis/python/plugins\openlayers\openlayers_plugin.py", line
> 82, in __initGui self.__setDocWidget()
>   File "C:/Documents and
> Settings/med4/.qgis/python/plugins\openlayers\openlayers_plugin.py", line
> 78, in __setDocWidget self.__oloWidget =
> OpenLayersOverviewWidget(self.__iface, self.__dockwidget,
> self.__olLayerTypeRegistry) File "C:/Documents and
> Settings/med4/.qgis/python/plugins\openlayers\openlayers_ovwidget.py",
> line 82, in __init__ self.__init()
>   File "C:/Documents and
> Settings/med4/.qgis/python/plugins\openlayers\openlayers_ovwidget.py",
> line 91, in __init proxy = getProxy()
>   File "C:/Documents and
> Settings/med4/.qgis/python/plugins\openlayers\tools_network.py", line 34,
> in getProxy elif proxyType in ["4","HttpCachingProxy"] and QT_VERSION >=
> 0X040400: proxy.setType(QtNetwork.QNetworkProxy.HttpCachingProxy)
> NameError: global name 'QT_VERSION' is not defined
> 
> Python version:
> 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
> 
> 
> QGIS version:
> 1.7.0-Trunk Trunk, 15229
> 
> Python path: ['C:/OSGeo4W/apps/qgis-dev/./python', 'C:/Documents and
> Settings/med4/.qgis/python', 'C:/Documents and
> Settings/med4/.qgis/python/plugins',
> 'C:/OSGeo4W/apps/qgis-dev/./python/plugins',
> 'C:\\OSGeo4W\\bin\\python25.zip', 'C:\\OSGeo4W\\apps\\Python25\\DLLs',
> 'C:\\OSGeo4W\\apps\\Python25\\lib',
> 'C:\\OSGeo4W\\apps\\Python25\\lib\\plat-win',
> 'C:\\OSGeo4W\\apps\\Python25\\lib\\lib-tk',
> 'C:\\OSGeo4W\\apps\\qgis-dev\\bin', 'C:\\OSGeo4W\\apps\\Python25',
> 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages',
> 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32',
> 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32\\lib',
> 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\Pythonwin',
> 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode',
> 'C:\\Documents and Settings\\med4\\.qgis\\python\\plugins\\fTools\\tools',
> 'C:\\Documents and Settings\\med4\\.qgis\\python\\plugins\\mmqgis/forms']


-- 
Pirmin Kalberer
Sourcepole  -  Linux & Open Source Solutions
http://www.sourcepole.com



More information about the Qgis-user mailing list