lutraconsulting / qgis-geocat-plugin

Plugin for loading PostGIS layers based on a metadata search
GNU General Public License v2.0
5 stars 1 forks source link

Feature/search plus #26

Closed mostlyAtNight closed 5 years ago

mostlyAtNight commented 5 years ago

Merging latest advanced search and custom fields features

mtravis commented 5 years ago

Testing out the new plugin and getting this error after selecting Postgis Connection.

Traceback (most recent call last):
  File "C:/PROGRA~1/QGISES~1/apps/qgis-ltr/./python/plugins\qgis-geocat-plugin-master\geo_cat_config_dialog.py", line 157, in on_connection_changed
    self.refresh_schemas()
  File "C:/PROGRA~1/QGISES~1/apps/qgis-ltr/./python/plugins\qgis-geocat-plugin-master\geo_cat_config_dialog.py", line 269, in refresh_schemas
    cur = self._get_cur()
  File "C:/PROGRA~1/QGISES~1/apps/qgis-ltr/./python/plugins\qgis-geocat-plugin-master\geo_cat_config_dialog.py", line 167, in _get_cur
    cur = get_connection(ci).cursor()
  File "C:/PROGRA~1/QGISES~1/apps/qgis-ltr/./python/plugins\qgis-geocat-plugin-master\dbutils.py", line 32, in get_connection
    conn = psycopg2.connect(**conn_info)
TypeError: argument 1 must be string, not None
mostlyAtNight commented 5 years ago

Hi Matt,

I believe this was fixed a few commits ago - can you try the latest version and see if it persists?

KR, Pete

On 9 July 2018 at 13:22, Matt Travis notifications@github.com wrote:

Testing out the new plugin and getting this error after selecting Postgis Connection.

Traceback (most recent call last): File "C:/PROGRA1/QGISES1/apps/qgis-ltr/./python/plugins\qgis- geocat-plugin-master\geo_cat_config_dialog.py", line 157, in on_connection_changed self.refresh_schemas() File "C:/PROGRA1/QGISES1/apps/qgis-ltr/./python/plugins\qgis- geocat-plugin-master\geo_cat_config_dialog.py", line 269, in refresh_schemas cur = self._get_cur() File "C:/PROGRA1/QGISES1/apps/qgis-ltr/./python/plugins\qgis- geocat-plugin-master\geo_cat_config_dialog.py", line 167, in _get_cur cur = get_connection(ci).cursor() File "C:/PROGRA1/QGISES1/apps/qgis-ltr/./python/plugins\qgis- geocat-plugin-master\dbutils.py", line 32, in get_connection conn = psycopg2.connect(**conn_info) TypeError: argument 1 must be string, not None

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/lutraconsulting/qgis-geocat-plugin/pull/26#issuecomment-403460354, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2A2k21pNPyImnwCfTYveh77-Ob0ovMks5uE0r_gaJpZM4VHDF4 .

--

Kind regards,

Pete

Peter Wells

Lutra Consulting 23 Chestnut Close, Burgess Hill, RH15 8HN www.lutraconsulting.co.uk Tel: +44 (0)1444 848012 Mob: +44 (0)7704 781683