[Qgis-developer] Error in MetaSearch

Richard Duivenvoorde rdmailings at duif.net
Tue Jun 24 05:01:26 PDT 2014


Hi Tom,

I can reproduce it sometimes. Reading the mail I tested, and had Paolo's
error.

In the Log Console (tab 'Python warning')  I had a warning (sorry cannot
copy from the Log Console??):
... csw.py:356:UserWarning: CSW Server did not supply a nextRecord value
(it is optional), so the client should page througt the results in
another way.""

But NOW I cannot reproduce it anymore....
I tried both the latest dev and the latest stable version :-(

@paolo: is it still reproducable by you?

Regards,

Richard Duivenvoorde





On 24-06-14 13:19, Tom Kralidis wrote:
> 
> Paolo: I can't reproduce this error.  Can you provide a use case (i.e.
> keyword used)?
> 
> Thanks
> 
> ..Tom
> 
> 
> On Tue, 24 Jun 2014, Paolo Cavallini wrote:
> 
>> Date: Tue, 24 Jun 2014 11:04:11 +0200
>> From: Paolo Cavallini <cavallini at faunalia.it>
>> To: qgis-developer <qgis-developer at lists.osgeo.org>
>> Subject: [Qgis-developer] Error in MetaSearch
>>
>> Errore durante l'esecuzione di codice Python:
>>
>>
>> Hi all.
>> Adding the Italian CSW (http://www.rndt.gov.it/RNDT/CSW) to
>> MetaSearch, and searching
>> for a common keyword, I get > 10 records. Only 5 are displayed, even
>> if the dialog
>> reports "1-10 of 21 shown". If I click on the Next arrow, I get an
>> error (see below).
>> Should I open a ticket?
>> All the best.
>> ===
>> Traceback (most recent call last):
>>  File
>> "/usr/share/qgis/python/plugins/MetaSearch/dialogs/maindialog.py",
>> line 644,
>> in navigate
>>    startposition=self.startfrom, esn='full')
>>  File "/usr/share/qgis/python/owslib/csw.py", line 348, in getrecords2
>>    self.results['matches'] = int(util.testXMLValue(val, True))
>> TypeError: int() argument must be a string or a number, not 'NoneType'
>>
>>
>> Versione Python:
>> 2.7.7 (default, Jun  3 2014, 16:19:10)
>> [GCC 4.8.3]
>>
>>
>> Versione di QGIS:
>> 2.3.0-Master Master, exported
>>
>> Percorso Python:
>> ['/home/paolo/.qgis2/python/plugins/processinglwgeomprovider',
>> '/home/paolo/.qgis2/python/plugins/sextante_animove',
>> '/home/paolo/.qgis2/python/plugins/processing',
>> '/home/paolo/.qgis2/python/plugins/LecoS',
>> '/home/paolo/.qgis2/python/plugins/GeoCoding', '/usr/share/qgis/python',
>> u'/home/paolo/.qgis2/python', u'/home/paolo/.qgis2/python/plugins',
>> '/usr/share/qgis/python/plugins', '/usr/lib/python2.7',
>> '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/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/PILcompat',
>> '/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/.qgis2/python/plugins/mmqgis/forms',
>> '/home/paolo/.qgis2/python/plugins/QuickMultiAttributeEdit/forms',
>> '/usr/share/qgis/python/plugins/fTools/tools',
>> '/home/paolo/.qgis2/python/plugins/DigitizingTools/tools']
>> -- 
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer



More information about the Qgis-developer mailing list