BRGM / gml_application_schema_toolbox

GML Application Schema toolbox is a QGIS plugin allowing to manipulate OGC Complex Features
https://brgm.github.io/gml_application_schema_toolbox/
GNU General Public License v2.0
27 stars 18 forks source link

V 1.3.0 - GMLAS Mode - Creating SQL file - 'DatabaseWidget' object has no attribute 'format' #129

Closed sgrellet closed 3 years ago

sgrellet commented 3 years ago

Environment

Description

To Reproduce

Follow https://brgm.github.io/gml_application_schema_toolbox/testing/scenario_mode_gmlas_local.html Do step 1 as described

Expected behavior

Additional context

Logs

AttributeError: 'DatabaseWidget' object has no attribute 'format' 
Traceback (most recent call last):
  File "C:/Users/grellets/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gml_application_schema_toolbox\gui\load_wizard.py", line 180, in validatePage
    self._panel.do_load()
  File "C:/Users/grellets/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gml_application_schema_toolbox\gui\import_gmlas_panel.py", line 315, in do_load
    if dest == "" and self.databaseWidget.format() == "SQLite":
AttributeError: 'DatabaseWidget' object has no attribute 'format'
jgrocha commented 3 years ago

Confirmed. I'm not able to export to SQLite.

Exporting to Postgresql is not working too (issue #126).

2021-03-07T15:56:23     WARNING    Traceback (most recent call last):
              File "/home/jgr/.local/share/QGIS/QGIS3/profiles/biomedica/python/plugins/gml_application_schema_toolbox/gui/database_widget.py", line 111, in on_pgsqlConnectionsBox_currentIndexChanged
              self._pgsql_db = GmlasPostgisDB.from_name(
              File "/home/jgr/.local/share/QGIS/QGIS3/profiles/biomedica/python/plugins/gml_application_schema_toolbox/extlibs/qgis_processing_postgis.py", line 192, in from_name
              return cls(uri=uri)
             TypeError: __init__() got an unexpected keyword argument 'uri'

As far I was able to test, there is no way to export the data right now, since both the SQLite and PostgreSQl export are failing.

sgrellet commented 3 years ago

Works fine now with plugin version: 1.3.1