[Qgis-user] Python error using OpenLayers plugin, problem with mapRenderer
Joshua Arnott
josh at snorfalorpagus.net
Sun Mar 2 10:35:47 PST 2014
Hello,
I'm getting the error below when I try to add a layer from the OpenLayers
plugin.
I think this is the same issue as here:
http://lists.osgeo.org/pipermail/qgis-developer/2013-December/029682.html
I'm using a version of QGIS I compiled myself (33a8b63) on OpenSUSE 12.3
(32-bit). I've not had problems using this previously.
The error seems to be coming from the mapRenderer function, as I get the
same if I try to enter "iface.mapCanvas().mapRenderer()" in the Python
console.
I have tried recompiling, but there is no change. Other than this QGIS
functions as expected.
Josh
An error has occured while executing Python code:
>
> Traceback (most recent call last):
> File
> "/home/snorf/.qgis2/python/plugins/openlayers_plugin/openlayers_plugin.py",
> line 50, in addLayer
> self.__plugin.addLayer(self)
> File
> "/home/snorf/.qgis2/python/plugins/openlayers_plugin/openlayers_plugin.py",
> line 202, in addLayer
> self.__setMapSrsGoogle()
> File
> "/home/snorf/.qgis2/python/plugins/openlayers_plugin/openlayers_plugin.py",
> line 253, in __setMapSrsGoogle
> mapCanvas.mapRenderer().setProjectionsEnabled(True)
> TypeError: C++ type 'const QgsMapLayer*' is not supported as type
>
> Python version:
> 2.7.3 (default, Apr 14 2012, 08:58:41) [GCC]
>
>
> QGIS version:
> 2.3.0-Master Master, 33a8b63
>
> Python path: ['/home/snorf/.qgis2/python/plugins/processing',
> '/home/snorf/apps/share/qgis/python', u'/home/snorf/.qgis2/python',
> u'/home/snorf/.qgis2/python/plugins',
> '/home/snorf/apps/share/qgis/python/plugins',
> '/usr/lib/python2.7/site-packages/elementtree-1.2.7_20070827_preview-py2.7.egg',
> '/usr/lib/python2.7/site-packages/Sphinx-1.2b3-py2.7.egg',
> '/usr/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg',
> '/usr/lib/python2.7/site-packages/docutils-0.11-py2.7.egg',
> '/usr/lib/python2.7/site-packages/Pygments-1.6-py2.7.egg',
> '/usr/lib/python2.7/site-packages/MarkupSafe-0.18-py2.7-linux-i686.egg',
> '/usr/lib/python2.7/site-packages/sphinx_intl-0.9.3-py2.7.egg',
> '/usr/lib/python2.7/site-packages/polib-1.0.3-py2.7.egg',
> '/usr/lib/python2.7/site-packages/sphinx_bootstrap_theme-0.3.2-py2.7.egg',
> '/usr/lib/python2.7/site-packages/colormath-1.0.8-py2.7.egg',
> '/usr/lib/python2.7/site-packages/webcolors-1.4-py2.7.egg',
> '/usr/lib/python2.7/site-packages/termcolor-1.1.0-py2.7.egg',
> '/home/snorf/apps/share/qgis/python',
> '/home/snorf/apps/share/qgis/python/plugins', '/home/snorf',
> '/usr/lib/python27.zip', '/usr/lib/python2.7',
> '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk',
> '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload',
> '/usr/lib/python2.7/site-packages',
> '/usr/local/lib/python2.7/site-packages',
> '/usr/lib/python2.7/site-packages/gst-0.10',
> '/usr/lib/python2.7/site-packages/gtk-2.0',
> '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info',
> '/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode',
> '/home/snorf/apps/share/qgis/python/plugins/fTools/tools',
> '/home/snorf/.qgis2/python/plugins/mmqgis/forms', '~/.qgis/python']
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20140302/0b37d990/attachment.html>
More information about the Qgis-user
mailing list