[Qgis-developer] Geocoding plugin error

Alessandro Pasotti apasotti at gmail.com
Wed Nov 2 06:12:42 EDT 2011


2011/11/2 Paolo Cavallini <cavallini at faunalia.it>

> Hi all.
> I'm getting this error. Any hint?
> All the best.
> ===
> Errore durante l'esecuzione di codice Python:
>
> Traceback (most recent call last):
>  File "/home/paolo/.qgis/python/plugins/GeoCoding/GeoCoding.py", line 183,
> in geocode
>    chk = self.check_settings()
>  File "/home/paolo/.qgis/python/plugins/GeoCoding/GeoCoding.py", line 291,
> in
> check_settings
>    import simplejson
>  File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 283, in
> _import
>    mod = _builtin_import(name, globals, locals, fromlist, level)
>  File "/home/paolo/.qgis/python/plugins/GeoCoding/simplejson/__init__.py",
> line 240, in
>    _default_decoder = JSONDecoder(encoding=None, object_hook=None)
>  File "/home/paolo/.qgis/python/plugins/GeoCoding/simplejson/decoder.py",
> line 328,
> in __init__
>    self.scan_once = make_scanner(self)
> AttributeError: 'JSONDecoder' object has no attribute 'object_pairs_hook'
>
> Versione Python:
> 2.7.2+ (default, Oct  5 2011, 11:14:48)
> [GCC 4.6.1]
>
>
> Versione di QGIS:
> 1.8.0-Trunk Trunk, 900011b
>
> Percorso Python: ['/home/paolo/.qgis/python/plugins/GeoCoding',
> '/home/paolo/.qgis/python/plugins/elevation',
> '/home/paolo/.qgis/python/plugins/cswclient', '/usr/share/qgis/python',
> '/home/paolo/.qgis/python', '/home/paolo/.qgis/python/plugins',
> '/usr/share/qgis/python/plugins', '/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/local/lib/python2.7/dist-packages',
> '/usr/lib/python2.7/dist-packages',
> '/usr/lib/python2.7/dist-packages/gst-0.10',
> '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7',
> '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode',
> '/home/paolo/.qgis/python/plugins/ziplayers/logic',
> '/home/paolo/.qgis/python/plugins/ziplayers/gui',
> '/usr/share/qgis/python/plugins/fTools/tools']
> --
>


Hi Paolo,

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.

I think that there is some conflict between yous system's simplejson
library and those provided by the GeoCoding plugin.


And yes, I agree that there should be a place for plugin's bug reports :)


-- 
Alessandro Pasotti
w3:   www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20111102/7ae54a46/attachment-0001.html


More information about the Qgis-developer mailing list