Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search error #1

Open
JogicPogic opened this issue Jan 1, 2016 · 1 comment
Open

Search error #1

JogicPogic opened this issue Jan 1, 2016 · 1 comment

Comments

@JogicPogic
Copy link

Hello.
I have QGIS 2.12, running under Windows 8.1.
I have PostGIS connection, calling in russian "Бузулукский бор".
I configure plugin as described on screenshot:
1-settings

I trying search for some text,
2-search text

but this error occurs:

Ошибка при выполнении сценария Python: 

TypeError: missing dsn and no parameters 
Traceback (most recent call last):
  File "C:/Users/Andrew/.qgis2/python/plugins\LayerMetadataSearch\geo_cat_dialog.py", line 94, in search
    cur = self._db_cur()
  File "C:/Users/Andrew/.qgis2/python/plugins\LayerMetadataSearch\geo_cat_dialog.py", line 72, in _db_cur
    con = get_connection(con_info)
  File "C:/Users/Andrew/.qgis2/python/plugins\LayerMetadataSearch\dbutils.py", line 32, in get_connection
    conn = psycopg2.connect(**conn_info)
  File "d:\PROGRA~2\QGISLY~1\apps\Python27\lib\site-packages\psycopg2\__init__.py", line 159, in connect
    raise TypeError('missing dsn and no parameters')
TypeError: missing dsn and no parameters


Версия Python: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] 
Версия: 2.12.1-Lyon Lyon, 16760fd 

Python Path:
C:/Users/Andrew/.qgis2/python/plugins\processing
d:/PROGRA~2/QGISLY~1/apps/qgis/./python
C:/Users/Andrew/.qgis2/python
C:/Users/Andrew/.qgis2/python/plugins
d:/PROGRA~2/QGISLY~1/apps/qgis/./python/plugins
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\site-packages\nose-1.3.3-py2.7.egg
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\site-packages\tornado-4.0.1-py2.7-win-amd64.egg
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\site-packages\backports.ssl_match_hostname-3.4.0.2-py2.7.egg
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\site-packages\certifi-14.05.14-py2.7.egg
d:\PROGRA~2\QGISLY~1\bin\python27.zip
d:\PROGRA~2\QGISLY~1\apps\Python27\DLLs
d:\PROGRA~2\QGISLY~1\apps\Python27\lib
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\plat-win
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\lib-tk
d:\PROGRA~2\QGISLY~1\bin
d:\PROGRA~2\QGISLY~1\apps\Python27
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\site-packages
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\site-packages\PIL
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\site-packages\pytz-2012j-py2.7.egg
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\site-packages\win32
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\site-packages\win32\lib
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\site-packages\Pythonwin
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\site-packages\six-1.3.0-py2.7.egg
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\site-packages\xlrd-0.9.2-py2.7.egg
d:\PROGRA~2\QGISLY~1\apps\Python27\lib\site-packages\xlwt-0.7.5-py2.7.egg
C:/Users/Andrew/.qgis2//python
d:\PROGRA~2\QGISLY~1\apps\qgis\python\plugins\fTools\tools
D:/Maps/PostGIS/Forestry
@mtravis
Copy link
Contributor

mtravis commented Oct 2, 2016

I tested this on and also got that error. I then restarted QGIS and found that this resolved it.

We need to find a better solution for this but for now use just restart QGIS.

erpas added a commit that referenced this issue Jan 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants