Re: [QGIS-Developer] createvectorTable error: Could not retrieve driver for connection

2022-12-04 Thread Raymond Nijssen via QGIS-Developer
Thanks Nyall, will try this today! Raymond On 05-12-2022 00:53, Nyall Dawson wrote: On Fri, 2 Dec 2022 at 23:05, Richard Duivenvoorde via QGIS-Developer wrote: Ok, I think I found the crux! With your code QGIS 3.26 will CREATE a new geopackage... (if it is not there yet) After which QGIS

Re: [QGIS-Developer] createvectorTable error: Could not retrieve driver for connection

2022-12-04 Thread Nyall Dawson via QGIS-Developer
On Fri, 2 Dec 2022 at 23:05, Richard Duivenvoorde via QGIS-Developer wrote: > > Ok, I think I found the crux! > > With your code QGIS 3.26 will CREATE a new geopackage... (if it is not there > yet) > After which QGIS master is fine > > BUT QGIS master apparently does NOT create a new geopackage w

Re: [QGIS-Developer] createvectorTable error: Could not retrieve driver for connection

2022-12-02 Thread Richard Duivenvoorde via QGIS-Developer
Ok, I think I found the crux! With your code QGIS 3.26 will CREATE a new geopackage... (if it is not there yet) After which QGIS master is fine BUT QGIS master apparently does NOT create a new geopackage with your code... So IF there is an excisting test.gpkg, all is fine IF there is not one, i

Re: [QGIS-Developer] createvectorTable error: Could not retrieve driver for connection

2022-12-02 Thread Richard Duivenvoorde via QGIS-Developer
Hi Raymond, I've updated your test script a little: gpkg_fn = '/tmp/test.gpkg' try: print(QgsProviderRegistry.instance().providerList()) md = QgsProviderRegistry.instance().providerMetadata('ogr') print(f'md = {md}') conn = md.createConnection(gpkg_fn, {}) print(f'conn = {con

Re: [QGIS-Developer] createvectorTable error: Could not retrieve driver for connection

2022-12-02 Thread Raymond Nijssen via QGIS-Developer
No one having a clue? Should I create an issue? Raymond On 30-11-2022 18:08, Raymond Nijssen via QGIS-Developer wrote: Hi developers, Recently some users of my plugin started getting errors in the code that creates a .gpkg file with a table. I wrote a piece of test code: gpkg_fn = '/home/r

[QGIS-Developer] createvectorTable error: Could not retrieve driver for connection

2022-11-30 Thread Raymond Nijssen via QGIS-Developer
Hi developers, Recently some users of my plugin started getting errors in the code that creates a .gpkg file with a table. I wrote a piece of test code: gpkg_fn = '/home/raymond/tmp/test.gpkg' md = QgsProviderRegistry.instance().providerMetadata('ogr') conn = md.createConnection(gpkg_fn, {}) f