Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

With QGIS 2.4 Quick Finder 3.01 Adding a new search throws error Error #19

Closed
mgiana opened this issue Jul 18, 2014 · 10 comments
Closed

Comments

@mgiana
Copy link

mgiana commented Jul 18, 2014

Hi Installed plugin Quick Finder 3.0.1 into QGIS 2.4 from the qis repository.
After install go to
Plugins -> Quick Finder -> Settings
Select Project Search
Click add button.
Set layer and field.
When I click the OK button the following error occurs

An error has occured while executing Python code:

Traceback (most recent call last):
File "C:/Users/marco.giana.DMS/.qgis2/python/plugins\quickfinder\gui\projectsearchdialog.py", line 71, in process
self.projectSearch = self.projectSearchModel.addSearch(searchName, layer, expression, priority)
File "C:/Users/marco.giana.DMS/.qgis2/python/plugins\quickfinder\gui\projectsearchmodel.py", line 54, in addSearch
self.searches[searchId] = projectSearch
TypeError: list indices must be integers, not unicode

Python version:
2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]

QGIS version:
2.4.0-Chugiak Chugiak, 8fdd08a

Python path: ['C:/OSGeo4W/apps/qgis/./python/plugins\processing', 'C:/OSGeo4W/apps/qgis/./python', u'C:/Users/marco.giana.DMS/.qgis2/python', u'C:/Users/marco.giana.DMS/.qgis2/python/plugins', 'C:/OSGeo4W/apps/qgis/./python/plugins', 'C:\OSGeo4W\apps\Python27\lib\site-packages\setuptools-3.4.1-py2.7.egg', 'C:\OSGeo4W\apps\Python27\lib\site-packages\pip-1.5.4-py2.7.egg', 'C:\OSGeo4W\apps\qgis\python', 'C:\OSGeo4W\apps%QGISNAME%\python', 'C:%QGIS%\python', 'C:%PYTHONPATH%', 'C:\OSGeo4W\bin\python27.zip', 'C:\OSGeo4W\apps\Python27\DLLs', 'C:\OSGeo4W\apps\Python27\lib', 'C:\OSGeo4W\apps\Python27\lib\plat-win', 'C:\OSGeo4W\apps\Python27\lib\lib-tk', 'C:\OSGeo4W\bin', 'C:\OSGeo4W\apps\Python27', 'c:\osgeo4w\apps\python27\lib\site-packages\gdal-1.11.0-py2.7-win32.egg', 'c:\osgeo4w\apps\python27\lib\site-packages\jinja2-2.7.2-py2.7.egg', 'c:\osgeo4w\apps\python27\lib\site-packages\markupsafe-0.23-py2.7-win32.egg', 'c:\osgeo4w\apps\python27\lib\site-packages\python_dateutil-2.2-py2.7.egg', 'c:\osgeo4w\apps\python27\lib\site-packages\pytz-2014.2-py2.7.egg', 'c:\osgeo4w\apps\python27\lib\site-packages\six-1.6.1-py2.7.egg', 'C:\OSGeo4W\apps\Python27\lib\site-packages', 'C:\OSGeo4W\apps\Python27\lib\site-packages\PIL', 'C:\OSGeo4W\apps\Python27\lib\site-packages\win32', 'C:\OSGeo4W\apps\Python27\lib\site-packages\win32\lib', 'C:\OSGeo4W\apps\Python27\lib\site-packages\Pythonwin', 'C:\OSGeo4W\apps\Python27\lib\site-packages\wx-2.8-msw-unicode', 'C:\Users\marco.giana.DMS.qgis2\python\plugins\DigitizingTools\tools', 'C:\Users\marco.giana.DMS.qgis2\python\plugins\intramaps_qgis\ui', 'C:\OSGeo4W\apps\qgis\python\plugins\fTools\tools', 'D:/Data/South Perth/Demo']

image

Kind Regards

Marco

@3nids 3nids closed this as completed in 5482257 Jul 18, 2014
@surkul
Copy link

surkul commented Jul 20, 2014

Thanks for fixing that. Now I am having an issue at the next stage where I am actually performing search.

An error has occured while executing Python code:

Traceback (most recent call last):
File "C:/Users/kulks1/.qgis2/python/plugins\quickfinder\core\osmfinder.py", line 61, in replyFinished
data = json.loads(reply.readAll().data())
File "C:\PROGRA1\QGISCH1\apps\Python27\lib\json__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "C:\PROGRA1\QGISCH1\apps\Python27\lib\json\decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\PROGRA1\QGISCH1\apps\Python27\lib\json\decoder.py", line 383, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Python version:
2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]

QGIS version:
2.4.0-Chugiak Chugiak, 8fdd08a

Python path: ['C:/PROGRA1/QGISCH1/apps/qgis/./python/plugins\processing', 'C:/PROGRA1/QGISCH1/apps/qgis/./python', u'C:/Users/kulks1/.qgis2/python', u'C:/Users/kulks1/.qgis2/python/plugins', 'C:/PROGRA1/QGISCH1/apps/qgis/./python/plugins', 'C:\PROGRA1\QGISCH1\bin\python27.zip', 'C:\PROGRA1\QGISCH1\apps\Python27\DLLs', 'C:\PROGRA1\QGISCH1\apps\Python27\lib', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\plat-win', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\lib-tk', 'C:\PROGRA1\QGISCH1\bin', 'C:\PROGRA1\QGISCH1\apps\Python27', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\GDAL-1.11.0-py2.7-win32.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\PIL', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win32.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\python_dateutil-2.2-py2.7.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\pytz-2014.2-py2.7.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\win32', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\win32\lib', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\Pythonwin', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win32.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\six-1.6.1-py2.7.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode', 'C:\PROGRA1\QGISCH1\apps\qgis\python\plugins\fTools\tools', 'H:/QGIS/Projects/Generic']

@surkul
Copy link

surkul commented Jul 20, 2014

There was a red message bar on top which read as following.
Quick Finder. The proxy requires authentication in order to honour the request but did not accept any credentials offered (if any)

@3nids
Copy link
Owner

3nids commented Jul 21, 2014

@arnaud-morvan can you have a look at this?

@surkul
Copy link

surkul commented Jul 22, 2014

HiI have just upgraded my plugin and I am still getting the error this time the red bad does not appear but I get the error as following
An error has occured while executing Python code:

Traceback (most recent call last):
File "C:/Users/kulks1/.qgis2/python/plugins\quickfinder\gui\finderbox.py", line 99, in search
self.resultModel.setLoading(True)
File "C:/Users/kulks1/.qgis2/python/plugins\quickfinder\gui\resultmodel.py", line 94, in setLoading
item.setIcon(icon)
AttributeError: 'NoneType' object has no attribute 'setIcon'

Python version:
2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]

QGIS version:
2.4.0-Chugiak Chugiak, 8fdd08a

Python path: ['C:/PROGRA1/QGISCH1/apps/qgis/./python/plugins\processing', 'C:/PROGRA1/QGISCH1/apps/qgis/./python', u'C:/Users/kulks1/.qgis2/python', u'C:/Users/kulks1/.qgis2/python/plugins', 'C:/PROGRA1/QGISCH1/apps/qgis/./python/plugins', 'C:\PROGRA1\QGISCH1\bin\python27.zip', 'C:\PROGRA1\QGISCH1\apps\Python27\DLLs', 'C:\PROGRA1\QGISCH1\apps\Python27\lib', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\plat-win', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\lib-tk', 'C:\PROGRA1\QGISCH1\bin', 'C:\PROGRA1\QGISCH1\apps\Python27', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\GDAL-1.11.0-py2.7-win32.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\PIL', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win32.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\python_dateutil-2.2-py2.7.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\pytz-2014.2-py2.7.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\win32', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\win32\lib', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\Pythonwin', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win32.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\six-1.6.1-py2.7.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode', 'C:\PROGRA1\QGISCH1\apps\qgis\python\plugins\fTools\tools']

@3nids 3nids reopened this Jul 23, 2014
@3nids
Copy link
Owner

3nids commented Jul 23, 2014

Hi,
Thanks for reporting.
It would really helpful if you could use a new issue for each new problem, and maybe explain how you reach the error (after which action).
Can you create a new error for this one?

Do you still have the proxy problem?

@arnaud-morvan
Copy link
Collaborator

The proxy issue should be resolved.
Another person has mail me about the item.setIcon(icon) issue, I've tried with windows 32 and 64 bits installers, but I can't reproduce the error.

@arnaud-morvan
Copy link
Collaborator

For the setIcon issue, I've done a workaround.
But the original problem should be due to invalid historyLength value from settings, 0 instead of >= 1. The dialog do not permit to set this setting to 0.

@3nids
Copy link
Owner

3nids commented Sep 23, 2014

can this be closed?

@arnaud-morvan
Copy link
Collaborator

Je pense que oui, les trois issues semblent réglées

@arnaud-morvan
Copy link
Collaborator

après reflexion, il doit tout de même rester un problème de compatibilité avec certaines versions sous windows, impossible de récupérer une référence sur les items de l'historique de recherche, que je n'ai pas réussi à reproduire. Si le problème persiste avec la 2.6 nous ouvrirons un nouveau ticket.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants