https://issues.qgis.org/https://issues.qgis.org/favicon.ico2013-01-10T07:56:40ZQGIS Issue TrackingQGIS Application - Bug report #6979: Couldn't load plugin openlayers_plugin due an error when calling its initGui() methodhttps://issues.qgis.org/issues/6979?journal_id=382702013-01-10T07:56:40ZSalvatore Larosalrssvtml@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>duplicate of #6916</p>
<p>two possible workarounds at the moment:<br />1. <a class="external" href="http://goo.gl/yR0JE">http://goo.gl/yR0JE</a><br />2. apply this patch <a class="external" href="http://goo.gl/S9UkZ">http://goo.gl/S9UkZ</a></p> QGIS Application - Bug report #6979: Couldn't load plugin openlayers_plugin due an error when calling its initGui() methodhttps://issues.qgis.org/issues/6979?journal_id=382762013-01-11T05:41:11Zstefano campusskampus@gmail.com
<ul></ul><p>in my case, first method doesn't work</p>
<p>Impossibile caricare il plugin openlayers a causa di errore chiamando il metodo classFactory()</p>
<p>Traceback (most recent call last):<br /> File "C:/OSGeo4W/apps/qgis-dev/./python\\qgis\\utils.py", line 189, in startPlugin<br /> plugins[packageName] = package.classFactory(iface)<br /> File "C:/Documents and Settings/11186CS/.qgis//python/plugins\\openlayers\\__init__.py", line 48, in classFactory<br /> from openlayers_plugin import OpenlayersPlugin<br /> File "C:/OSGeo4W/apps/qgis-dev/./python\\qgis\\utils.py", line 438, in _import<br /> mod = _builtin_import(name, globals, locals, fromlist, level)<br /> File "C:/Documents and Settings/11186CS/.qgis//python/plugins\\openlayers\\openlayers_plugin.py", line 4</p>
<pre><code>^<br />SyntaxError: invalid syntax</code></pre>
<p>Versione Python:<br />2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]</p>
<p>Versione di QGIS:<br />1.9.0-Master Master, be94fb7</p> QGIS Application - Bug report #6979: Couldn't load plugin openlayers_plugin due an error when calling its initGui() methodhttps://issues.qgis.org/issues/6979?journal_id=382772013-01-11T06:48:02ZSalvatore Larosalrssvtml@gmail.com
<ul></ul><p>very odd, it should work !<br />Have you selected "Raw" before of saved the file to plugin directory ?</p> QGIS Application - Bug report #6979: Couldn't load plugin openlayers_plugin due an error when calling its initGui() methodhttps://issues.qgis.org/issues/6979?journal_id=382842013-01-12T06:53:49Zstefano campusskampus@gmail.com
<ul></ul><p>forgive me, salvatore, i don't understand wthat do you mean with "raw" <br />i see another user who has same difficulty (<a class="external" href="http://gis.stackexchange.com/questions/46645/openlayers-plugin-and-qgis-1-9-error-after-install">http://gis.stackexchange.com/questions/46645/openlayers-plugin-and-qgis-1-9-error-after-install</a>).</p> QGIS Application - Bug report #6979: Couldn't load plugin openlayers_plugin due an error when calling its initGui() methodhttps://issues.qgis.org/issues/6979?journal_id=382852013-01-12T09:14:29ZSalvatore Larosalrssvtml@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/download/5249/buttonGitHub.png">buttonGitHub.png</a> added</li><li><strong>File</strong> <a href="/attachments/download/5250/openlayers_plugin.py">openlayers_plugin.py</a><a href="/attachments/5250/openlayers_plugin.py"><img alt="Magnifier" src="/images/magnifier.png" /></a> added</li></ul><p>stefano campus wrote:</p>
<blockquote>
<p>forgive me, salvatore, i don't understand wthat do you mean with "raw"</p>
</blockquote>
<p>I am aware that was not a good advice !! :-)<br />Anyway, I meant the button on github (see attached image)</p>
<blockquote>
<p>i see another user who has same difficulty (<a class="external" href="http://gis.stackexchange.com/questions/46645/openlayers-plugin-and-qgis-1-9-error-after-install">http://gis.stackexchange.com/questions/46645/openlayers-plugin-and-qgis-1-9-error-after-install</a>).</p>
</blockquote>
<p>Could you give a try with the attached py file ?</p> QGIS Application - Bug report #6979: Couldn't load plugin openlayers_plugin due an error when calling its initGui() methodhttps://issues.qgis.org/issues/6979?journal_id=382862013-01-12T09:21:31ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Salvatore Larosa wrote:</p>
<blockquote>
<p>stefano campus wrote:</p>
<blockquote>
<p>forgive me, salvatore, i don't understand wthat do you mean with "raw"</p>
</blockquote>
<p>I am aware that was not a good advice !! :-)<br />Anyway, I meant the button on github (see attached image)</p>
<blockquote>
<p>i see another user who has same difficulty (<a class="external" href="http://gis.stackexchange.com/questions/46645/openlayers-plugin-and-qgis-1-9-error-after-install">http://gis.stackexchange.com/questions/46645/openlayers-plugin-and-qgis-1-9-error-after-install</a>).</p>
</blockquote>
<p>Could you give a try with the attached py file ?</p>
</blockquote>
<p>with the attached patched file the plugin works as expected, can someone make a push with the maintainers to have the plugin updated?</p> QGIS Application - Bug report #6979: Couldn't load plugin openlayers_plugin due an error when calling its initGui() methodhttps://issues.qgis.org/issues/6979?journal_id=382872013-01-12T09:24:03ZJürgen Fischerjef@norbit.de
<ul></ul><p>Giovanni Manghi wrote:</p>
<blockquote>
<p>with the attached patched file the plugin works as expected, can someone make a push with the maintainers to have the plugin updated?</p>
</blockquote>
<p>Please follow up in the plugin's ticket #6916 - this ticket is closed.</p>