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

Pirmin Kalberer pi_ml at sourcepole.com
Wed May 11 06:42:52 PDT 2011


Michael,

PyQT is included in the QGIS Python support.
Google Mercator projection is automatically activated.
The problem is caused by your Proxy settings, as mentionend earlier. I will fix 
the bug this week.

Pirmin

Am Mittwoch, 11. Mai 2011, 10.28:53 schrieb Michael Spencer:
> I have python, but not python QT, as far as I know. It doesn't show up in
> my installed programs list (windows xp), so unless it came bundled with
> the QGIS installer then no.
> 
> Should I install it?
> Michael
> 
> > Date: Tue, 10 May 2011 13:46:32 -0700
> > From: Matt C <mattwigway at gmail.com>
> > 
> > Yes, setting the projection to Google Mercator (EPSG:900913) is very
> > important (you can use the "Enable 'on the fly' CRS transformation" box
> > to reproject your data, assuming the projection for your data is set
> > correctly). This error looks like a QT problem, though.  Do you have
> > qt-python installed?
> > -Matt
> > 
> > On 05/10/2011 03:19 AM, Michael Spencer wrote:
> > > I find it quite temperamental (v1.6), but generally only if I have
> > > data already loaded that is in a different projection. Starting a
> > > project using google mercator seems to be fine. Although often after
> > > adding the data I have to drag the map about before it refreshes and
> > > then it zooms out to the whole world.
> > > 
> > > Michael
> > > 
> > > > Date: Tue, 10 May 2011 08:50:50 +0100
> > > > 
> > > > 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