[Qgis-developer] Metasearch throwing an error

Tom Kralidis tomkralidis at gmail.com
Fri Sep 25 03:36:41 PDT 2015


On Fri, Sep 25, 2015 at 5:59 AM, Paolo Cavallini <cavallini at faunalia.it> wrote:
> Hi all,
> the current version of MS returns an error when adding default servers:
> Cannot parse XML file: not well-formed (invalid token): line 11, column 129
> When reinstalling, I get:
> Impossibile caricare il plugin MetaSearch a causa di un errore chiamando
> il metodo classFactory()
>
>
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 219, in
> startPlugin
>     plugins[packageName] = package.classFactory(iface)
>   File
> "/home/paolo/Scrivania/butta/carto_qgis/python/plugins/MetaSearch/__init__.py",
> line 28, in classFactory
>     from MetaSearch.plugin import MetaSearchPlugin
>   File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 478, in
> _import
>     mod = _builtin_import(name, globals, locals, fromlist, level)
>   File
> "/home/paolo/Scrivania/butta/carto_qgis/python/plugins/MetaSearch/plugin.py",
> line 31, in
>     from MetaSearch.dialogs.maindialog import MetaSearchDialog
>   File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 478, in
> _import
>     mod = _builtin_import(name, globals, locals, fromlist, level)
>   File
> "/usr/share/qgis/python/plugins/MetaSearch/dialogs/maindialog.py", line
> 53, in
>     from MetaSearch.util import (get_connections_from_file, get_ui_class,
> ImportError: cannot import name serialize_string
> Should I open a ticket?

Hi Paolo: I was able to reproduce this issue.  The default CSW
connections list had XML errors.  I have fixed this in master and
release-2_10 branches.  I've also added this as a note on our guidance
page [1].  Can you confirm the fix works for you?

Thanks

..Tom

[1] https://hub.qgis.org/wiki/quantum-gis/MetaSearch_Default_Connections_List


More information about the Qgis-developer mailing list