<div class="gmail_quote">2011/11/2 Paolo Cavallini <span dir="ltr">&lt;<a href="mailto:cavallini@faunalia.it">cavallini@faunalia.it</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all.<br>
I&#39;m getting this error. Any hint?<br>
All the best.<br>
===<br>
Errore durante l&#39;esecuzione di codice Python:<br>
<br>
Traceback (most recent call last):<br>
  File &quot;/home/paolo/.qgis/python/plugins/GeoCoding/GeoCoding.py&quot;, line 183, in geocode<br>
    chk = self.check_settings()<br>
  File &quot;/home/paolo/.qgis/python/plugins/GeoCoding/GeoCoding.py&quot;, line 291, in<br>
check_settings<br>
    import simplejson<br>
  File &quot;/usr/lib/python2.7/dist-packages/qgis/utils.py&quot;, line 283, in _import<br>
    mod = _builtin_import(name, globals, locals, fromlist, level)<br>
  File &quot;/home/paolo/.qgis/python/plugins/GeoCoding/simplejson/__init__.py&quot;, line 240, in<br>
    _default_decoder = JSONDecoder(encoding=None, object_hook=None)<br>
  File &quot;/home/paolo/.qgis/python/plugins/GeoCoding/simplejson/decoder.py&quot;, line 328,<br>
in __init__<br>
    self.scan_once = make_scanner(self)<br>
AttributeError: &#39;JSONDecoder&#39; object has no attribute &#39;object_pairs_hook&#39;<br>
<br>
Versione Python:<br>
2.7.2+ (default, Oct  5 2011, 11:14:48)<br>
[GCC 4.6.1]<br>
<br>
<br>
Versione di QGIS:<br>
1.8.0-Trunk Trunk, 900011b<br>
<br>
Percorso Python: [&#39;/home/paolo/.qgis/python/plugins/GeoCoding&#39;,<br>
&#39;/home/paolo/.qgis/python/plugins/elevation&#39;,<br>
&#39;/home/paolo/.qgis/python/plugins/cswclient&#39;, &#39;/usr/share/qgis/python&#39;,<br>
&#39;/home/paolo/.qgis/python&#39;, &#39;/home/paolo/.qgis/python/plugins&#39;,<br>
&#39;/usr/share/qgis/python/plugins&#39;, &#39;/usr/lib/python2.7&#39;,<br>
&#39;/usr/lib/python2.7/plat-linux2&#39;, &#39;/usr/lib/python2.7/lib-tk&#39;,<br>
&#39;/usr/lib/python2.7/lib-old&#39;, &#39;/usr/lib/python2.7/lib-dynload&#39;,<br>
&#39;/usr/local/lib/python2.7/dist-packages&#39;, &#39;/usr/lib/python2.7/dist-packages&#39;,<br>
&#39;/usr/lib/python2.7/dist-packages/gst-0.10&#39;,<br>
&#39;/usr/lib/python2.7/dist-packages/gtk-2.0&#39;, &#39;/usr/lib/pymodules/python2.7&#39;,<br>
&#39;/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode&#39;,<br>
&#39;/home/paolo/.qgis/python/plugins/ziplayers/logic&#39;,<br>
&#39;/home/paolo/.qgis/python/plugins/ziplayers/gui&#39;,<br>
&#39;/usr/share/qgis/python/plugins/fTools/tools&#39;]<br>
<span class="HOEnZb"><font color="#888888">--<br></font></span></blockquote><div><br></div><div><br></div><div>Hi Paolo,</div><div><br></div><div>it might be something with Python 2.7 (I never tested the plugin with Python 2.7), it seems like  object_pairs_hook was introduced in 2.7.</div>
<div><br></div><div>I think that there is some conflict between yous system&#39;s simplejson library and those provided by the GeoCoding plugin.</div><div><br></div><div><br></div><div>And yes, I agree that there should be a place for plugin&#39;s bug reports :)</div>
</div><br clear="all"><div><br></div>-- <br>Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it">www.itopen.it</a><br>