Re: [QGIS-Developer] Plugin dependency with binaries: 'best' way to guide user to install?

2022-04-06 Thread Pedro Camargo via QGIS-Developer
Hey Aron,                   This does look/feel like one of those "Been there. Done that. It's hard..." type of things. VERY interesting proposal, @Hannes. Both would be awesome features if they ever came to fruition! Cheers, Pedro On Wed, 06 Apr 2022 22:01:15 +1000 Aron Gergely

Re: [QGIS-Developer] Plugin dependency with binaries: 'best' way to guide user to install?

2022-04-06 Thread Aron Gergely via QGIS-Developer
@Andrea Thank you - I posted my case to that issue. @Benjamin Thanks, wow this looks comprehensive. I thought of that shutil way but dismissed it, I'd have to try then for 'python', 'python3'. And it would not work in case user set up a shell alias (say, python3.9) for the python executable in

Re: [QGIS-Developer] Plugin dependency with binaries: 'best' way to guide user to install?

2022-04-06 Thread Benjamin Jakimow via QGIS-Developer
Hi Aron, with the EnMAP-Box plugin we are confronted with missing PIP packages quite often. Therefore we implemented a "PIP Package Installer" (screenshot below, source code here: https://bitbucket.org/hu-geomatics/enmap-box/src/develop/enmapbox/dependencycheck.py) In case of missing

Re: [QGIS-Developer] Plugin dependency with binaries: 'best' way to guide user to install?

2022-04-06 Thread Andrea Giudiceandrea via QGIS-Developer
Hi Aron, have you already read the issue report https://github.com/qgis/QGIS/issues/45646 ? Regards. Andrea Il 06/04/2022 14:01, Aron Gergely via QGIS-Developer ha scritto: @Pedro: Tried it today on Windows w OSGeo QGIS and failed right away. But in a different way: If I launch OSGeo

Re: [QGIS-Developer] Plugin dependency with binaries: 'best' way to guide user to install?

2022-04-06 Thread Aron Gergely via QGIS-Developer
@Pedro: Tried it today on Windows w OSGeo QGIS and failed right away. But in a different way: If I launch OSGeo QGIS and ask for the python executable's path (sys.executabe), I get 'C:/OSGeo4W/bin/qgis-bin.exe'. which looks like entry point is for QGIS.  So subprocess calls that and a new

[QGIS-Developer] QgsDissolveAlgorithm error LNK2001

2022-04-06 Thread SSchmidt--- via QGIS-Developer
Hello to all, for my c++ plugin I need to include the qgsalgorithmdissolve.h. Thats why I include for linking the library ..\..\analysis\RelWithDebInfo\qgis_analysis.lib and give it additional library path to: C:/Entwicklung/QuantumGIS/build/src/analysis

Re: [QGIS-Developer] Plugin dependency with binaries: 'best' way to guide user to install?

2022-04-06 Thread WhereGroup
Trying to find a smart way to install Python dependencies for the users that will not potentially not work or even break stuff is a very hard thing(tm). Check out these two QEPs for a lot of discussion and possible approaches: https://github.com/qgis/QGIS-Enhancement-Proposals/issues/202

Re: [QGIS-Developer] Unexpected results from GPKG table query using executeSql()

2022-04-06 Thread Raymond Nijssen via QGIS-Developer
Hi Alessandro, Thanks for looking into this! My QGIS-master + GDAL 3.0.4 returns the same result for that query. But in QGIS-master, when I try: q = 'SELECT *, edit_id FROM soilexc_edits ORDER BY edit_id' I get: [0, 1, PyQt5.QtCore.QDateTime(2022, 3, 1, 0, 0), 'test1', True] [1, 2,

Re: [QGIS-Developer] Unexpected results from GPKG table query using executeSql()

2022-04-06 Thread Alessandro Pasotti via QGIS-Developer
Hi Raymond, I tested your samples and I cannot reproduce the issue on QGIS master and GDAL 3.4. Here is the result of my query on your test file: In [13]: md = QgsProviderRegistry.instance().providerMetadata('ogr') ...: conn = md.createConnection('/home/x/Scaricati/soilext_db.gpkg', {})