Thanks for your detailed answer, Richard.

On 2021-03-02 10:16, Richard Duivenvoorde wrote:
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

Good



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?

I see, I only have the "native" ones ...



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)
import sys
print(sys.path)

['/usr/local/share/qgis/python', '/home/hernan/.local/share/QGIS/QGIS3/profiles/default/python', '/home/hernan/.local/share/QGIS/QGIS3/profiles/default/python/plugins', '/usr/local/share/qgis/python/plugins', '/usr/lib/python38.zip', '/usr/lib64/python3.8', '/usr/lib64/python3.8/lib-dynload', '/usr/lib64/python3.8/site-packages', '/usr/lib64/python3.8/_import_failed', '/usr/lib/python3.8/site-packages', '/usr/local/lib64/python3.8/site-packages', '/home/hernan/.local/share/QGIS/QGIS3/profiles/default/python']


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?

Yes, I install in default /usr/local




_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to