[QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

Richard Duivenvoorde rdmailings at duif.net
Tue Mar 2 01:16:15 PST 2021


On 3/2/21 9:34 AM, Hernán De Angelis wrote:
> Hi,
> 
> I wrote about this a few days ago in the user list but I still have the problem and can find neither a cause nor a solution. I thus post it in this list in the hope that some developer may have a hint on what is going wrong here.
> 
> In my installation the Voronoi Polygon tool is missing from the Processing menu, both from the bar (vector geometry dialog) and the processing panel. It is also not listed in the Python console (see below whole listing).
> 
> But, the code seems to be present in the /usr/local/share... folder, where other plugins live as well:
> 
> localhost:/usr/local # find ./share -name *oronoi*
> ./share/qgis/python/plugins/processing/algs/grass7/description/v.voronoi.skeleton.txt
> ./share/qgis/python/plugins/processing/algs/grass7/description/v.voronoi.txt
> ./share/qgis/python/plugins/processing/algs/grass7/ext/v_voronoi.py
> ./share/qgis/python/plugins/processing/algs/qgis/VoronoiPolygons.py
> ./share/qgis/python/plugins/processing/algs/qgis/voronoi.py

With me your find-output looks exactly the same

> from qgis import processing
> for alg in QgsApplication.processingRegistry().algorithms():
>     print(alg.id(), "->", alg.displayName())
> 
> native:addautoincrementalfield -> Add autoincremental field
> native:addfieldtoattributestable -> Add field to attributes table

With me your python code shows voronoi in the 'qgis' group instead of the 'native' one:

qgis:voronoipolygons -> Voronoi polygons

I do have like 58 algorithms in the 'qgis' group. Are you missing all qgis ones? Or just voronoi?

And in processing it just shows up with me (see screenie)

Some things to check:

-1- is the /usr/local/share/qgis/python/plugins/ dir in your PYTHONPATH ?

With me (installed QGIS in /home/richard/bin/qgis_/3.18/debug) these to are in my PYTHONPATH:
/home/richard/bin/qgis_/3.18/debug/share/qgis/python
/home/richard/bin/qgis_/3.18/debug/share/qgis/python/plugins

import sys
print(sys.path)

or is there other 'cruft' in it?

-2- is your LD_LIBRARY_PATH ok? To me (installing in my homedir), I have to add the debug/lib dir to my LD_LIBRARY_PATH.
adding:
export LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
to my startup of qgis 3.18

I think if you install in default locations (like you do) then this should not be a problem, but maybe the QGIS python code can not load the right c++-libs?



Regards,

Richard Duivenvoorde
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot-20210302100041-317x201.png
Type: image/png
Size: 23858 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20210302/5e50a04b/attachment-0001.png>


More information about the QGIS-Developer mailing list