<div class="gmail_quote">2011/11/2 Paolo Cavallini <span dir="ltr"><<a href="mailto:cavallini@faunalia.it">cavallini@faunalia.it</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all.<br>
I'm getting this error. Any hint?<br>
All the best.<br>
===<br>
Errore durante l'esecuzione di codice Python:<br>
<br>
Traceback (most recent call last):<br>
File "/home/paolo/.qgis/python/plugins/GeoCoding/GeoCoding.py", line 183, in geocode<br>
chk = self.check_settings()<br>
File "/home/paolo/.qgis/python/plugins/GeoCoding/GeoCoding.py", line 291, in<br>
check_settings<br>
import simplejson<br>
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 283, in _import<br>
mod = _builtin_import(name, globals, locals, fromlist, level)<br>
File "/home/paolo/.qgis/python/plugins/GeoCoding/simplejson/__init__.py", line 240, in<br>
_default_decoder = JSONDecoder(encoding=None, object_hook=None)<br>
File "/home/paolo/.qgis/python/plugins/GeoCoding/simplejson/decoder.py", line 328,<br>
in __init__<br>
self.scan_once = make_scanner(self)<br>
AttributeError: 'JSONDecoder' object has no attribute 'object_pairs_hook'<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: ['/home/paolo/.qgis/python/plugins/GeoCoding',<br>
'/home/paolo/.qgis/python/plugins/elevation',<br>
'/home/paolo/.qgis/python/plugins/cswclient', '/usr/share/qgis/python',<br>
'/home/paolo/.qgis/python', '/home/paolo/.qgis/python/plugins',<br>
'/usr/share/qgis/python/plugins', '/usr/lib/python2.7',<br>
'/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk',<br>
'/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload',<br>
'/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages',<br>
'/usr/lib/python2.7/dist-packages/gst-0.10',<br>
'/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7',<br>
'/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode',<br>
'/home/paolo/.qgis/python/plugins/ziplayers/logic',<br>
'/home/paolo/.qgis/python/plugins/ziplayers/gui',<br>
'/usr/share/qgis/python/plugins/fTools/tools']<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'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'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>