[osgeo4w-dev] OSGeo4W: python libraries missing when installing plugins
Müller, Andreas, Dr. phil.
muellea at uni-trier.de
Fri Sep 20 11:34:12 PDT 2019
Reads like a good idea!
And there is code, we already can use:
It is still in python2, but does update, installs etc. in the same way the installer does.
Another approach: using osgeo4w-setup.exe by its command line
My spontanous thoughts: how can a plugin developer check, which packages are missing? A processing script or calling another plugin?
Then embed apt or call setup to manage dependencies...
What do you think?
Dr. Andreas Müller, FB VI, Kartographie
Am 20. Sep. 2019, um 18:37, Tobias Wendorff <tobias.wendorff at tu-dortmund.de<mailto:tobias.wendorff at tu-dortmund.de>> schrieb:
sorry for the cross-post, but I believe, that both sides should work
together on this issue.
When installing QGIS on Windows the normal way (which doesn't need
the user get to know about all those expert settings and libraries),
you'll quickly run into the problem of missing Python libraries when
installing a plugin. Numpy, SciPy or mathlib are the most common
ones, but there's also well know ones, which can't get installed
automatically on Windows.
Perhaps we should setup rules for plugin developers to inform OSGeo4W,
which plugins might be required. Perhaps we should just "grep" through
all the repositories and find all the imports?
But even then, QGIS on Windows doesn't automatically install the missing
libraries. And even if QGIS would do (setuptools, pip, whatever), the
OSGeo4W-install would lose track about this and we even might get into
So we need a bi-directional way between QGIS and OSGeo4W installer.
Perhaps QGIS (or an additional QGIS plugin, hehe) could trigger
OSGeo4W installer silently to download the packages needed. So it might
keep track of it.
Right now, it's often hard work, since not all the libraries needed
have been added to OSGeo4W. Sure, the girls & guys do their best work
to add the missing libs upon request, but even then, you need to be
aware, WHICH plugin you need and you need to install it outside of
QGIS (at best practice, even BEFORE the installation in QGIS stars
because it might make QGIS instable, crash or both).
How can I help?
osgeo4w-dev mailing list
osgeo4w-dev at lists.osgeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the osgeo4w-dev