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

2021-03-03 Thread Tim Sutton
Hi

On Wed, Mar 3, 2021 at 7:58 AM Hernán De Angelis <
variablestarli...@gmail.com> wrote:

>
> On 2021-03-03 00:12, Nyall Dawson wrote:
> > On Wed, 3 Mar 2021 at 09:10, Tim Sutton  wrote:
> >> Hi
> >>
> >> Can you check if you have python-psycopg2 installed on your system? I
> had a similar issue a month or two back which was fixed by installing it.
> (Thanks for the nudge Nyall).
> > Ah -- that was the one!  I thought it was gdal for some reason...
> > flaky memory :)
> >
> > We should really investigate why this caused a silent failure to show
> > the algorithms instead of an error...
>
> Yes, an error message could be beneficial. I remember from previous
> installations that QGIS would complain on opening that psycopg (or other
> python modules) weren't installed.
>

Yes Nyall has already taken care of it:

https://github.com/qgis/QGIS/issues/41984
https://github.com/qgis/QGIS/issues/41984

Regards

Tim

>
> /H.
>
>
>
>
> >
> > Nyall
> >
> >
> >> Regards
> >>
> >> Tim
> >>
> >> On Tue, Mar 2, 2021 at 11:19 AM Hernán De Angelis <
> variablestarli...@gmail.com> wrote:
> >>>
> >>> On 2021-03-02 10:51, Richard Duivenvoorde wrote:
>  On 3/2/21 10:41 AM, Hernán De Angelis wrote:
> > On 2021-03-02 10:21, Nyall Dawson wrote:
> >> On Tue, 2 Mar 2021 at 18:34, 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.
> >> Double check that you have the gdal python packages installed
> > Thanks for this,
> >
> > from osgeo import gdal
> >
> > just works, so I guess it is installed.
>  What is the value of
>  BINDINGS_GLOBAL_INSTALL
>  in your compile config?
> >>> The value is "YES"
>  Looks like something is not picked up with your install.
> >>> Agree
>  What if you run qgis 31.8 from the 'output/bin' dir in your build
> directory?
> >>> Behaves just the same
>  If all fails I would (I think) compile and set CMAKE_INSTALL_PREFIX
> in some local dir in your HOME
> 
>  I did in ~/bin/qgis_/3.18/debug (for debug build):
> 
>  And create a startup script like
> 
>  export
> LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
>  export PYTHONPATH=~/bin/qgis_/3.18/debug/share/qgis/python:$PYTHONPATH
>  export QGIS_DEBUG=0
>  # passing ALL parameters to qgis bin
>  # eg to be able to call a certain translation
>  # qgis --lang nl
>  ~/bin/qgis_/3.18/debug/bin/qgis "$@"
> >>> Thanks, will think about this and try it.
> >>>
> >>> Thank you again for your ansers. I see I have a sort of linking/library
> >>> problem. GRASS is installed and GRASS modules are compiled but then
> >>> these do not appear either in the menu.
> >>>
> >>>
> >>> /Hernán
> >>>
> >>>
>  Suc6
> 
>  Richard Duivenvoorde
> >>> ___
> >>> 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
> >>
> >>
> >> --
> >>
> --
> >>
> >> Tim Sutton
> >> Visit http://kartoza.com to find out about open source:
> >>   * Desktop GIS programming services
> >>   * Geospatial web development
> >> * GIS Training
> >> * Consulting Services
> >> Tim is a member of the QGIS Project Steering Committee
> >>
> ---
> >> ___
> >> 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
> ___
> 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
>


-- 
--

Tim Sutton
Visit http://kartoza.com to find out about open source:
 * Desktop GIS programming services
 * Geospatial web development
* GIS Training
* Consulting Services
Tim is a member of the QGIS Project Steering Committee
---
___
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


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

2021-03-02 Thread Hernán De Angelis


On 2021-03-03 00:12, Nyall Dawson wrote:

On Wed, 3 Mar 2021 at 09:10, Tim Sutton  wrote:

Hi

Can you check if you have python-psycopg2 installed on your system? I had a 
similar issue a month or two back which was fixed by installing it. (Thanks for 
the nudge Nyall).

Ah -- that was the one!  I thought it was gdal for some reason...
flaky memory :)

We should really investigate why this caused a silent failure to show
the algorithms instead of an error...


Yes, an error message could be beneficial. I remember from previous 
installations that QGIS would complain on opening that psycopg (or other 
python modules) weren't installed.


/H.






Nyall



Regards

Tim

On Tue, Mar 2, 2021 at 11:19 AM Hernán De Angelis  
wrote:


On 2021-03-02 10:51, Richard Duivenvoorde wrote:

On 3/2/21 10:41 AM, Hernán De Angelis wrote:

On 2021-03-02 10:21, Nyall Dawson wrote:

On Tue, 2 Mar 2021 at 18:34, 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.

Double check that you have the gdal python packages installed

Thanks for this,

from osgeo import gdal

just works, so I guess it is installed.

What is the value of
BINDINGS_GLOBAL_INSTALL
in your compile config?

The value is "YES"

Looks like something is not picked up with your install.

Agree

What if you run qgis 31.8 from the 'output/bin' dir in your build directory?

Behaves just the same

If all fails I would (I think) compile and set CMAKE_INSTALL_PREFIX in some 
local dir in your HOME

I did in ~/bin/qgis_/3.18/debug (for debug build):

And create a startup script like

export LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
export PYTHONPATH=~/bin/qgis_/3.18/debug/share/qgis/python:$PYTHONPATH
export QGIS_DEBUG=0
# passing ALL parameters to qgis bin
# eg to be able to call a certain translation
# qgis --lang nl
~/bin/qgis_/3.18/debug/bin/qgis "$@"

Thanks, will think about this and try it.

Thank you again for your ansers. I see I have a sort of linking/library
problem. GRASS is installed and GRASS modules are compiled but then
these do not appear either in the menu.


/Hernán



Suc6

Richard Duivenvoorde

___
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



--
--

Tim Sutton
Visit http://kartoza.com to find out about open source:
  * Desktop GIS programming services
  * Geospatial web development
* GIS Training
* Consulting Services
Tim is a member of the QGIS Project Steering Committee
---
___
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

___
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


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

2021-03-02 Thread Hernán De Angelis

On 2021-03-03 00:10, Tim Sutton wrote:

Hi

Can you check if you have python-psycopg2 installed on your system? I 
had a similar issue a month or two back which was fixed by installing 
it. (Thanks for the nudge Nyall).


YES! That was the problem!

Now I have all the tools, including GRASS and GDAL, and Voronoi of course.

Thank you!

Hernán





Regards

Tim

On Tue, Mar 2, 2021 at 11:19 AM Hernán De Angelis 
mailto:variablestarli...@gmail.com>> wrote:



On 2021-03-02 10:51, Richard Duivenvoorde wrote:
> On 3/2/21 10:41 AM, Hernán De Angelis wrote:
>> On 2021-03-02 10:21, Nyall Dawson wrote:
>>> On Tue, 2 Mar 2021 at 18:34, Hernán De Angelis
>>> mailto:variablestarli...@gmail.com>> 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.
>>> Double check that you have the gdal python packages installed
>> Thanks for this,
>>
>> from osgeo import gdal
>>
>> just works, so I guess it is installed.
> What is the value of
> BINDINGS_GLOBAL_INSTALL
> in your compile config?
The value is "YES"
>
> Looks like something is not picked up with your install.
Agree
>
> What if you run qgis 31.8 from the 'output/bin' dir in your
build directory?
Behaves just the same
>
> If all fails I would (I think) compile and set
CMAKE_INSTALL_PREFIX in some local dir in your HOME
>
> I did in ~/bin/qgis_/3.18/debug (for debug build):
>
> And create a startup script like
>
> export
LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
> export
PYTHONPATH=~/bin/qgis_/3.18/debug/share/qgis/python:$PYTHONPATH
> export QGIS_DEBUG=0
> # passing ALL parameters to qgis bin
> # eg to be able to call a certain translation
> # qgis --lang nl
> ~/bin/qgis_/3.18/debug/bin/qgis "$@"

Thanks, will think about this and try it.

Thank you again for your ansers. I see I have a sort of
linking/library
problem. GRASS is installed and GRASS modules are compiled but then
these do not appear either in the menu.


/Hernán


>
> Suc6
>
> Richard Duivenvoorde
___
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




--
--
​

Tim Sutton
Visit http://kartoza.com  to find out about open 
source:

 * Desktop GIS programming services
 * Geospatial web development
* GIS Training
* Consulting Services
Tim is a member of the QGIS Project Steering Committee
---
___
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


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

2021-03-02 Thread Tim Sutton
Haha, thanks! You are fixing the issue faster than I can document it :-P

Regards

Tim

On Tue, Mar 2, 2021 at 11:41 PM Nyall Dawson  wrote:

> On Wed, 3 Mar 2021 at 09:12, Nyall Dawson  wrote:
> >
> > On Wed, 3 Mar 2021 at 09:10, Tim Sutton  wrote:
> > >
> > > Hi
> > >
> > > Can you check if you have python-psycopg2 installed on your system? I
> had a similar issue a month or two back which was fixed by installing it.
> (Thanks for the nudge Nyall).
> >
> > Ah -- that was the one!  I thought it was gdal for some reason...
> > flaky memory :)
> >
> > We should really investigate why this caused a silent failure to show
> > the algorithms instead of an error...
>
> Or I could JFDI :P https://github.com/qgis/QGIS/pull/41985
>
> Nyall
>
>
> >
> > Nyall
> >
> >
> > >
> > > Regards
> > >
> > > Tim
> > >
> > > On Tue, Mar 2, 2021 at 11:19 AM Hernán De Angelis <
> variablestarli...@gmail.com> wrote:
> > >>
> > >>
> > >> On 2021-03-02 10:51, Richard Duivenvoorde wrote:
> > >> > On 3/2/21 10:41 AM, Hernán De Angelis wrote:
> > >> >> On 2021-03-02 10:21, Nyall Dawson wrote:
> > >> >>> On Tue, 2 Mar 2021 at 18:34, 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.
> > >> >>> Double check that you have the gdal python packages installed
> > >> >> Thanks for this,
> > >> >>
> > >> >> from osgeo import gdal
> > >> >>
> > >> >> just works, so I guess it is installed.
> > >> > What is the value of
> > >> > BINDINGS_GLOBAL_INSTALL
> > >> > in your compile config?
> > >> The value is "YES"
> > >> >
> > >> > Looks like something is not picked up with your install.
> > >> Agree
> > >> >
> > >> > What if you run qgis 31.8 from the 'output/bin' dir in your build
> directory?
> > >> Behaves just the same
> > >> >
> > >> > If all fails I would (I think) compile and set CMAKE_INSTALL_PREFIX
> in some local dir in your HOME
> > >> >
> > >> > I did in ~/bin/qgis_/3.18/debug (for debug build):
> > >> >
> > >> > And create a startup script like
> > >> >
> > >> > export
> LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
> > >> > export
> PYTHONPATH=~/bin/qgis_/3.18/debug/share/qgis/python:$PYTHONPATH
> > >> > export QGIS_DEBUG=0
> > >> > # passing ALL parameters to qgis bin
> > >> > # eg to be able to call a certain translation
> > >> > # qgis --lang nl
> > >> > ~/bin/qgis_/3.18/debug/bin/qgis "$@"
> > >>
> > >> Thanks, will think about this and try it.
> > >>
> > >> Thank you again for your ansers. I see I have a sort of
> linking/library
> > >> problem. GRASS is installed and GRASS modules are compiled but then
> > >> these do not appear either in the menu.
> > >>
> > >>
> > >> /Hernán
> > >>
> > >>
> > >> >
> > >> > Suc6
> > >> >
> > >> > Richard Duivenvoorde
> > >> ___
> > >> 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
> > >
> > >
> > >
> > > --
> > >
> --
> > >
> > > Tim Sutton
> > > Visit http://kartoza.com to find out about open source:
> > >  * Desktop GIS programming services
> > >  * Geospatial web development
> > > * GIS Training
> > > * Consulting Services
> > > Tim is a member of the QGIS Project Steering Committee
> > >
> ---
> > > ___
> > > 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
>


-- 
--
​

Tim Sutton
Visit http://kartoza.com to find out about open source:
 * Desktop GIS programming services
 * Geospatial web development
* GIS Training
* Consulting Services
Tim is a member of the QGIS Project Steering Committee
---
___
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


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

2021-03-02 Thread Tim Sutton
Hi

I made this so my previous noodling around to fix the issue are captured
somewhere:

https://github.com/qgis/QGIS/issues/41984

I guess QgsRuntimeProfiler.profile is just sweeping the exceptions under
the rug rather than letting them surface?

Regards

Tim

On Tue, Mar 2, 2021 at 11:12 PM Nyall Dawson  wrote:

> On Wed, 3 Mar 2021 at 09:10, Tim Sutton  wrote:
> >
> > Hi
> >
> > Can you check if you have python-psycopg2 installed on your system? I
> had a similar issue a month or two back which was fixed by installing it.
> (Thanks for the nudge Nyall).
>
> Ah -- that was the one!  I thought it was gdal for some reason...
> flaky memory :)
>
> We should really investigate why this caused a silent failure to show
> the algorithms instead of an error...
>
> Nyall
>
>
> >
> > Regards
> >
> > Tim
> >
> > On Tue, Mar 2, 2021 at 11:19 AM Hernán De Angelis <
> variablestarli...@gmail.com> wrote:
> >>
> >>
> >> On 2021-03-02 10:51, Richard Duivenvoorde wrote:
> >> > On 3/2/21 10:41 AM, Hernán De Angelis wrote:
> >> >> On 2021-03-02 10:21, Nyall Dawson wrote:
> >> >>> On Tue, 2 Mar 2021 at 18:34, 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.
> >> >>> Double check that you have the gdal python packages installed
> >> >> Thanks for this,
> >> >>
> >> >> from osgeo import gdal
> >> >>
> >> >> just works, so I guess it is installed.
> >> > What is the value of
> >> > BINDINGS_GLOBAL_INSTALL
> >> > in your compile config?
> >> The value is "YES"
> >> >
> >> > Looks like something is not picked up with your install.
> >> Agree
> >> >
> >> > What if you run qgis 31.8 from the 'output/bin' dir in your build
> directory?
> >> Behaves just the same
> >> >
> >> > If all fails I would (I think) compile and set CMAKE_INSTALL_PREFIX
> in some local dir in your HOME
> >> >
> >> > I did in ~/bin/qgis_/3.18/debug (for debug build):
> >> >
> >> > And create a startup script like
> >> >
> >> > export
> LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
> >> > export PYTHONPATH=~/bin/qgis_/3.18/debug/share/qgis/python:$PYTHONPATH
> >> > export QGIS_DEBUG=0
> >> > # passing ALL parameters to qgis bin
> >> > # eg to be able to call a certain translation
> >> > # qgis --lang nl
> >> > ~/bin/qgis_/3.18/debug/bin/qgis "$@"
> >>
> >> Thanks, will think about this and try it.
> >>
> >> Thank you again for your ansers. I see I have a sort of linking/library
> >> problem. GRASS is installed and GRASS modules are compiled but then
> >> these do not appear either in the menu.
> >>
> >>
> >> /Hernán
> >>
> >>
> >> >
> >> > Suc6
> >> >
> >> > Richard Duivenvoorde
> >> ___
> >> 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
> >
> >
> >
> > --
> >
> --
> >
> > Tim Sutton
> > Visit http://kartoza.com to find out about open source:
> >  * Desktop GIS programming services
> >  * Geospatial web development
> > * GIS Training
> > * Consulting Services
> > Tim is a member of the QGIS Project Steering Committee
> >
> ---
> > ___
> > 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
>


-- 
--

Tim Sutton
Visit http://kartoza.com to find out about open source:
 * Desktop GIS programming services
 * Geospatial web development
* GIS Training
* Consulting Services
Tim is a member of the QGIS Project Steering Committee
---
___
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


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

2021-03-02 Thread Nyall Dawson
On Wed, 3 Mar 2021 at 09:12, Nyall Dawson  wrote:
>
> On Wed, 3 Mar 2021 at 09:10, Tim Sutton  wrote:
> >
> > Hi
> >
> > Can you check if you have python-psycopg2 installed on your system? I had a 
> > similar issue a month or two back which was fixed by installing it. (Thanks 
> > for the nudge Nyall).
>
> Ah -- that was the one!  I thought it was gdal for some reason...
> flaky memory :)
>
> We should really investigate why this caused a silent failure to show
> the algorithms instead of an error...

Or I could JFDI :P https://github.com/qgis/QGIS/pull/41985

Nyall


>
> Nyall
>
>
> >
> > Regards
> >
> > Tim
> >
> > On Tue, Mar 2, 2021 at 11:19 AM Hernán De Angelis 
> >  wrote:
> >>
> >>
> >> On 2021-03-02 10:51, Richard Duivenvoorde wrote:
> >> > On 3/2/21 10:41 AM, Hernán De Angelis wrote:
> >> >> On 2021-03-02 10:21, Nyall Dawson wrote:
> >> >>> On Tue, 2 Mar 2021 at 18:34, 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.
> >> >>> Double check that you have the gdal python packages installed
> >> >> Thanks for this,
> >> >>
> >> >> from osgeo import gdal
> >> >>
> >> >> just works, so I guess it is installed.
> >> > What is the value of
> >> > BINDINGS_GLOBAL_INSTALL
> >> > in your compile config?
> >> The value is "YES"
> >> >
> >> > Looks like something is not picked up with your install.
> >> Agree
> >> >
> >> > What if you run qgis 31.8 from the 'output/bin' dir in your build 
> >> > directory?
> >> Behaves just the same
> >> >
> >> > If all fails I would (I think) compile and set CMAKE_INSTALL_PREFIX in 
> >> > some local dir in your HOME
> >> >
> >> > I did in ~/bin/qgis_/3.18/debug (for debug build):
> >> >
> >> > And create a startup script like
> >> >
> >> > export LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
> >> > export PYTHONPATH=~/bin/qgis_/3.18/debug/share/qgis/python:$PYTHONPATH
> >> > export QGIS_DEBUG=0
> >> > # passing ALL parameters to qgis bin
> >> > # eg to be able to call a certain translation
> >> > # qgis --lang nl
> >> > ~/bin/qgis_/3.18/debug/bin/qgis "$@"
> >>
> >> Thanks, will think about this and try it.
> >>
> >> Thank you again for your ansers. I see I have a sort of linking/library
> >> problem. GRASS is installed and GRASS modules are compiled but then
> >> these do not appear either in the menu.
> >>
> >>
> >> /Hernán
> >>
> >>
> >> >
> >> > Suc6
> >> >
> >> > Richard Duivenvoorde
> >> ___
> >> 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
> >
> >
> >
> > --
> > --
> >
> > Tim Sutton
> > Visit http://kartoza.com to find out about open source:
> >  * Desktop GIS programming services
> >  * Geospatial web development
> > * GIS Training
> > * Consulting Services
> > Tim is a member of the QGIS Project Steering Committee
> > ---
> > ___
> > 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
___
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


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

2021-03-02 Thread Nyall Dawson
On Wed, 3 Mar 2021 at 09:10, Tim Sutton  wrote:
>
> Hi
>
> Can you check if you have python-psycopg2 installed on your system? I had a 
> similar issue a month or two back which was fixed by installing it. (Thanks 
> for the nudge Nyall).

Ah -- that was the one!  I thought it was gdal for some reason...
flaky memory :)

We should really investigate why this caused a silent failure to show
the algorithms instead of an error...

Nyall


>
> Regards
>
> Tim
>
> On Tue, Mar 2, 2021 at 11:19 AM Hernán De Angelis 
>  wrote:
>>
>>
>> On 2021-03-02 10:51, Richard Duivenvoorde wrote:
>> > On 3/2/21 10:41 AM, Hernán De Angelis wrote:
>> >> On 2021-03-02 10:21, Nyall Dawson wrote:
>> >>> On Tue, 2 Mar 2021 at 18:34, 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.
>> >>> Double check that you have the gdal python packages installed
>> >> Thanks for this,
>> >>
>> >> from osgeo import gdal
>> >>
>> >> just works, so I guess it is installed.
>> > What is the value of
>> > BINDINGS_GLOBAL_INSTALL
>> > in your compile config?
>> The value is "YES"
>> >
>> > Looks like something is not picked up with your install.
>> Agree
>> >
>> > What if you run qgis 31.8 from the 'output/bin' dir in your build 
>> > directory?
>> Behaves just the same
>> >
>> > If all fails I would (I think) compile and set CMAKE_INSTALL_PREFIX in 
>> > some local dir in your HOME
>> >
>> > I did in ~/bin/qgis_/3.18/debug (for debug build):
>> >
>> > And create a startup script like
>> >
>> > export LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
>> > export PYTHONPATH=~/bin/qgis_/3.18/debug/share/qgis/python:$PYTHONPATH
>> > export QGIS_DEBUG=0
>> > # passing ALL parameters to qgis bin
>> > # eg to be able to call a certain translation
>> > # qgis --lang nl
>> > ~/bin/qgis_/3.18/debug/bin/qgis "$@"
>>
>> Thanks, will think about this and try it.
>>
>> Thank you again for your ansers. I see I have a sort of linking/library
>> problem. GRASS is installed and GRASS modules are compiled but then
>> these do not appear either in the menu.
>>
>>
>> /Hernán
>>
>>
>> >
>> > Suc6
>> >
>> > Richard Duivenvoorde
>> ___
>> 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
>
>
>
> --
> --
>
> Tim Sutton
> Visit http://kartoza.com to find out about open source:
>  * Desktop GIS programming services
>  * Geospatial web development
> * GIS Training
> * Consulting Services
> Tim is a member of the QGIS Project Steering Committee
> ---
> ___
> 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
___
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


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

2021-03-02 Thread Tim Sutton
Hi

Can you check if you have python-psycopg2 installed on your system? I had a
similar issue a month or two back which was fixed by installing it. (Thanks
for the nudge Nyall).

Regards

Tim

On Tue, Mar 2, 2021 at 11:19 AM Hernán De Angelis <
variablestarli...@gmail.com> wrote:

>
> On 2021-03-02 10:51, Richard Duivenvoorde wrote:
> > On 3/2/21 10:41 AM, Hernán De Angelis wrote:
> >> On 2021-03-02 10:21, Nyall Dawson wrote:
> >>> On Tue, 2 Mar 2021 at 18:34, 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.
> >>> Double check that you have the gdal python packages installed
> >> Thanks for this,
> >>
> >> from osgeo import gdal
> >>
> >> just works, so I guess it is installed.
> > What is the value of
> > BINDINGS_GLOBAL_INSTALL
> > in your compile config?
> The value is "YES"
> >
> > Looks like something is not picked up with your install.
> Agree
> >
> > What if you run qgis 31.8 from the 'output/bin' dir in your build
> directory?
> Behaves just the same
> >
> > If all fails I would (I think) compile and set CMAKE_INSTALL_PREFIX in
> some local dir in your HOME
> >
> > I did in ~/bin/qgis_/3.18/debug (for debug build):
> >
> > And create a startup script like
> >
> > export LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
> > export PYTHONPATH=~/bin/qgis_/3.18/debug/share/qgis/python:$PYTHONPATH
> > export QGIS_DEBUG=0
> > # passing ALL parameters to qgis bin
> > # eg to be able to call a certain translation
> > # qgis --lang nl
> > ~/bin/qgis_/3.18/debug/bin/qgis "$@"
>
> Thanks, will think about this and try it.
>
> Thank you again for your ansers. I see I have a sort of linking/library
> problem. GRASS is installed and GRASS modules are compiled but then
> these do not appear either in the menu.
>
>
> /Hernán
>
>
> >
> > Suc6
> >
> > Richard Duivenvoorde
> ___
> 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
>


-- 
--
​

Tim Sutton
Visit http://kartoza.com to find out about open source:
 * Desktop GIS programming services
 * Geospatial web development
* GIS Training
* Consulting Services
Tim is a member of the QGIS Project Steering Committee
---
___
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


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

2021-03-02 Thread Hernán De Angelis


On 2021-03-02 10:51, Richard Duivenvoorde wrote:

On 3/2/21 10:41 AM, Hernán De Angelis wrote:

On 2021-03-02 10:21, Nyall Dawson wrote:

On Tue, 2 Mar 2021 at 18:34, 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.

Double check that you have the gdal python packages installed

Thanks for this,

from osgeo import gdal

just works, so I guess it is installed.

What is the value of
BINDINGS_GLOBAL_INSTALL
in your compile config?

The value is "YES"


Looks like something is not picked up with your install.

Agree


What if you run qgis 31.8 from the 'output/bin' dir in your build directory?

Behaves just the same


If all fails I would (I think) compile and set CMAKE_INSTALL_PREFIX in some 
local dir in your HOME

I did in ~/bin/qgis_/3.18/debug (for debug build):

And create a startup script like

export LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
export PYTHONPATH=~/bin/qgis_/3.18/debug/share/qgis/python:$PYTHONPATH
export QGIS_DEBUG=0
# passing ALL parameters to qgis bin
# eg to be able to call a certain translation
# qgis --lang nl
~/bin/qgis_/3.18/debug/bin/qgis "$@"


Thanks, will think about this and try it.

Thank you again for your ansers. I see I have a sort of linking/library 
problem. GRASS is installed and GRASS modules are compiled but then 
these do not appear either in the menu.



/Hernán




Suc6

Richard Duivenvoorde

___
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


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

2021-03-02 Thread Hernán De Angelis

On 2021-03-02 10:45, Richard Duivenvoorde wrote:

On 3/2/21 9:51 AM, Hernán De Angelis wrote:

On 2021-03-02 09:48, Alexandre Neto wrote:

Might seem obvious, but have you tried using a brand new profile?


Yes, I just forgot to add that to the description below.

Or even a new profiles_path ?

$ qgis --help
QGIS is a user friendly Open Source Geographic Information System.
Usage: qgis [OPTION] [FILE]
   OPTION:
[--version] display version information and exit
[--snapshot filename]   emit snapshot of loaded datasets to given file
[--width width] width of snapshot to emit
[--height height]   height of snapshot to emit
[--lang language]   use language for interface text (changes 
existing override)
[--project projectfile] load the given QGIS project
[--extent xmin,ymin,xmax,ymax]  set initial map extent
[--nologo]  hide splash screen
[--noversioncheck]  don't check for new version of QGIS at startup
[--noplugins]   don't restore plugins on startup
[--nocustomization] don't apply GUI customization
[--customizationfile path]  use the given ini file as GUI 
customization
[--globalsettingsfile path] use the given ini file as Global 
Settings (defaults)
[--authdbdirectory path] use the given directory for authentication 
database
[--code path]   run the given python file on load
[--defaultui]   start by resetting user ui settings to default
[--hide-browser]hide the browser widget
[--dxf-export filename.dxf] emit dxf output of loaded datasets to 
given file
[--dxf-extent xmin,ymin,xmax,ymax]  set extent to export to dxf
[--dxf-symbology-mode none|symbollayer|feature] symbology mode for dxf 
output
[--dxf-scale-denom scale]   scale for dxf output
[--dxf-encoding encoding]   encoding to use for dxf output
[--dxf-map-theme maptheme]  map theme to use for dxf output
[--take-screenshots output_path]take screen shots for the user 
documentation
[--screenshots-categories categories]   specify the categories of 
screenshot to be used (see QgsAppScreenShots::Categories).
[--profile name]load a named profile from the users profiles 
folder.
[--profiles-path path]  path to store user profile folders. Will create 
profiles inside a {path}\profiles folder
[--version-migration]   force the settings migration from older version 
if found
[--openclprogramfolder] path to the folder containing the 
sources for OpenCL programs.
[--help]this text
[--]treat all following arguments as FILEs


So:

qgis --profiles-name /tmp/superclean

I would not know if this would help... but just in case


Thanks you Richard, but that did not work either.

Thanks Alexander and Nyall too.


This is happening in a fresh install (one month old) of openSUSE 
Tumbleweed in a new machine. No older profiles to blame here. Also I did 
delete the profiles many times.


No clue by now, will have to keep looking.

Thanks again everyone

Hernán

___
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


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

2021-03-02 Thread Richard Duivenvoorde
On 3/2/21 10:41 AM, Hernán De Angelis wrote:
> 
> On 2021-03-02 10:21, Nyall Dawson wrote:
>> On Tue, 2 Mar 2021 at 18:34, 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.
>> Double check that you have the gdal python packages installed
> 
> Thanks for this,
> 
> from osgeo import gdal
> 
> just works, so I guess it is installed.

What is the value of 
BINDINGS_GLOBAL_INSTALL
in your compile config?

Looks like something is not picked up with your install.

What if you run qgis 31.8 from the 'output/bin' dir in your build directory?

If all fails I would (I think) compile and set CMAKE_INSTALL_PREFIX in some 
local dir in your HOME

I did in ~/bin/qgis_/3.18/debug (for debug build):

And create a startup script like

export LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
export PYTHONPATH=~/bin/qgis_/3.18/debug/share/qgis/python:$PYTHONPATH
export QGIS_DEBUG=0
# passing ALL parameters to qgis bin
# eg to be able to call a certain translation
# qgis --lang nl
~/bin/qgis_/3.18/debug/bin/qgis "$@"

Suc6

Richard Duivenvoorde
___
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


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

2021-03-02 Thread Richard Duivenvoorde
On 3/2/21 9:51 AM, Hernán De Angelis wrote:
> On 2021-03-02 09:48, Alexandre Neto wrote:
>> Might seem obvious, but have you tried using a brand new profile?
>>
> Yes, I just forgot to add that to the description below.

Or even a new profiles_path ?

$ qgis --help
QGIS is a user friendly Open Source Geographic Information System.
Usage: qgis [OPTION] [FILE]
  OPTION:
[--version] display version information and exit
[--snapshot filename]   emit snapshot of loaded datasets to given file
[--width width] width of snapshot to emit
[--height height]   height of snapshot to emit
[--lang language]   use language for interface text (changes 
existing override)
[--project projectfile] load the given QGIS project
[--extent xmin,ymin,xmax,ymax]  set initial map extent
[--nologo]  hide splash screen
[--noversioncheck]  don't check for new version of QGIS at startup
[--noplugins]   don't restore plugins on startup
[--nocustomization] don't apply GUI customization
[--customizationfile path]  use the given ini file as GUI 
customization
[--globalsettingsfile path] use the given ini file as Global 
Settings (defaults)
[--authdbdirectory path] use the given directory for authentication 
database
[--code path]   run the given python file on load
[--defaultui]   start by resetting user ui settings to default
[--hide-browser]hide the browser widget
[--dxf-export filename.dxf] emit dxf output of loaded datasets to 
given file
[--dxf-extent xmin,ymin,xmax,ymax]  set extent to export to dxf
[--dxf-symbology-mode none|symbollayer|feature] symbology mode for dxf 
output
[--dxf-scale-denom scale]   scale for dxf output
[--dxf-encoding encoding]   encoding to use for dxf output
[--dxf-map-theme maptheme]  map theme to use for dxf output
[--take-screenshots output_path]take screen shots for the user 
documentation
[--screenshots-categories categories]   specify the categories of 
screenshot to be used (see QgsAppScreenShots::Categories).
[--profile name]load a named profile from the users profiles 
folder.
[--profiles-path path]  path to store user profile folders. Will create 
profiles inside a {path}\profiles folder 
[--version-migration]   force the settings migration from older version 
if found
[--openclprogramfolder] path to the folder containing the 
sources for OpenCL programs.
[--help]this text
[--]treat all following arguments as FILEs


So:

qgis --profiles-name /tmp/superclean

I would not know if this would help... but just in case

Richard
___
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


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

2021-03-02 Thread Hernán De Angelis


On 2021-03-02 10:21, Nyall Dawson wrote:

On Tue, 2 Mar 2021 at 18:34, 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.

Double check that you have the gdal python packages installed


Thanks for this,

from osgeo import gdal

just works, so I guess it is installed.




Nyall


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

I compile QGIS from source, things have gone smoothly every time and I
cannot see any obvious particular problem. I have tested with master a
couple of weeks ago, then 3.18.0 a couple of days ago, and moments ago
with 3.16.4 (after wiping all traces of previous installations) but the
problem persists.

Anyone has seen this? What could possibly be wrong here?

Thanks in advance,

Hernán


- - - - -

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
native:adduniquevalueindexfield -> Add unique value index field
native:addxyfields -> Add X/Y fields to layer
native:affinetransform -> Affine transform
native:aggregate -> Aggregate
native:angletonearest -> Align points to features
native:antimeridiansplit -> Geodesic line split at antimeridian
native:arrayoffsetlines -> Array of offset (parallel) lines
native:arraytranslatedfeatures -> Array of translated features
native:aspect -> Aspect
native:assignprojection -> Assign projection
native:atlaslayouttoimage -> Export atlas layout as image
native:atlaslayouttopdf -> Export atlas layout as PDF
native:bookmarkstolayer -> Convert spatial bookmarks to layer
native:boundary -> Boundary
native:boundingboxes -> Bounding boxes
native:buffer -> Buffer
native:bufferbym -> Variable width buffer (by M value)
native:calculatevectoroverlaps -> Overlap analysis
native:categorizeusingstyle -> Create categorized renderer from styles
native:cellstatistics -> Cell statistics
native:centroids -> Centroids
native:clip -> Clip
native:collect -> Collect geometries
native:combinestyles -> Combine style databases
native:condition -> Conditional branch
native:converttocurves -> Convert to curved geometries
native:convexhull -> Convex hull
native:countpointsinpolygon -> Count points in polygon
native:createattributeindex -> Create attribute index
native:createconstantrasterlayer -> Create constant raster layer
native:createdirectory -> Create directory
native:creategrid -> Create grid
native:createpointslayerfromtable -> Create points layer from table
native:createrandombinomialrasterlayer -> Create random raster layer
(binomial distribution)
native:createrandomexponentialrasterlayer -> Create random raster layer
(exponential distribution)
native:createrandomgammarasterlayer -> Create random raster layer (gamma
distribution)
native:createrandomgeometricrasterlayer -> Create random raster layer
(geometric distribution)
native:createrandomnegativebinomialrasterlayer -> Create random raster
layer (negative binomial distribution)
native:createrandomnormalrasterlayer -> Create random raster layer
(normal distribution)
native:createrandompoissonrasterlayer -> Create random raster layer
(poisson distribution)
native:createrandomuniformrasterlayer -> Create random raster layer
(uniform distribution)
native:createspatialindex -> Create spatial index
native:dbscanclustering -> DBSCAN clustering
native:deleteduplicategeometries -> Delete duplicate geometries
native:deleteholes -> Delete holes
native:densifygeometries -> Densify by count
native:densifygeometriesgivenaninterval -> Densify by interval
native:detectvectorchanges -> Detect dataset changes
native:difference -> Difference
native:dissolve -> Dissolve
native:dropgeometries -> Drop geometries
native:dropmzvalues -> Drop M/Z values
native:equaltofrequency -> Equal to frequency
native:explodehstorefield -> Explode HStore Field
native:explodelines -> Explode lines
native:extendlines -> Extend lines
native:extenttolayer -> Create layer from extent
native:extractbinary -> Extract binary field
native:extractbyattribute -> Extract 

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

2021-03-02 Thread Hernán De Angelis

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


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

2021-03-02 Thread Nyall Dawson
On Tue, 2 Mar 2021 at 18:34, 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.

Double check that you have the gdal python packages installed

Nyall

>
> 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
>
> I compile QGIS from source, things have gone smoothly every time and I
> cannot see any obvious particular problem. I have tested with master a
> couple of weeks ago, then 3.18.0 a couple of days ago, and moments ago
> with 3.16.4 (after wiping all traces of previous installations) but the
> problem persists.
>
> Anyone has seen this? What could possibly be wrong here?
>
> Thanks in advance,
>
> Hernán
>
>
> - - - - -
>
> 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
> native:adduniquevalueindexfield -> Add unique value index field
> native:addxyfields -> Add X/Y fields to layer
> native:affinetransform -> Affine transform
> native:aggregate -> Aggregate
> native:angletonearest -> Align points to features
> native:antimeridiansplit -> Geodesic line split at antimeridian
> native:arrayoffsetlines -> Array of offset (parallel) lines
> native:arraytranslatedfeatures -> Array of translated features
> native:aspect -> Aspect
> native:assignprojection -> Assign projection
> native:atlaslayouttoimage -> Export atlas layout as image
> native:atlaslayouttopdf -> Export atlas layout as PDF
> native:bookmarkstolayer -> Convert spatial bookmarks to layer
> native:boundary -> Boundary
> native:boundingboxes -> Bounding boxes
> native:buffer -> Buffer
> native:bufferbym -> Variable width buffer (by M value)
> native:calculatevectoroverlaps -> Overlap analysis
> native:categorizeusingstyle -> Create categorized renderer from styles
> native:cellstatistics -> Cell statistics
> native:centroids -> Centroids
> native:clip -> Clip
> native:collect -> Collect geometries
> native:combinestyles -> Combine style databases
> native:condition -> Conditional branch
> native:converttocurves -> Convert to curved geometries
> native:convexhull -> Convex hull
> native:countpointsinpolygon -> Count points in polygon
> native:createattributeindex -> Create attribute index
> native:createconstantrasterlayer -> Create constant raster layer
> native:createdirectory -> Create directory
> native:creategrid -> Create grid
> native:createpointslayerfromtable -> Create points layer from table
> native:createrandombinomialrasterlayer -> Create random raster layer
> (binomial distribution)
> native:createrandomexponentialrasterlayer -> Create random raster layer
> (exponential distribution)
> native:createrandomgammarasterlayer -> Create random raster layer (gamma
> distribution)
> native:createrandomgeometricrasterlayer -> Create random raster layer
> (geometric distribution)
> native:createrandomnegativebinomialrasterlayer -> Create random raster
> layer (negative binomial distribution)
> native:createrandomnormalrasterlayer -> Create random raster layer
> (normal distribution)
> native:createrandompoissonrasterlayer -> Create random raster layer
> (poisson distribution)
> native:createrandomuniformrasterlayer -> Create random raster layer
> (uniform distribution)
> native:createspatialindex -> Create spatial index
> native:dbscanclustering -> DBSCAN clustering
> native:deleteduplicategeometries -> Delete duplicate geometries
> native:deleteholes -> Delete holes
> native:densifygeometries -> Densify by count
> native:densifygeometriesgivenaninterval -> Densify by interval
> native:detectvectorchanges -> Detect dataset changes
> native:difference -> Difference
> native:dissolve -> Dissolve
> native:dropgeometries -> Drop geometries
> native:dropmzvalues -> Drop M/Z values
> native:equaltofrequency -> Equal to frequency
> native:explodehstorefield -> Explode HStore Field
> native:explodelines -> Explode lines
> native:extendlines -> Extend lines
> native:extenttolayer -> Create layer from extent
> 

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

2021-03-02 Thread Richard Duivenvoorde
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
___
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


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

2021-03-02 Thread Hernán De Angelis

On 2021-03-02 09:48, Alexandre Neto wrote:

Might seem obvious, but have you tried using a brand new profile?


Yes, I just forgot to add that to the description below.

/H.


A terça, 2/03/2021, 08:34, Hernán De Angelis 
mailto:variablestarli...@gmail.com>> 
escreveu:


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

I compile QGIS from source, things have gone smoothly every time
and I
cannot see any obvious particular problem. I have tested with
master a
couple of weeks ago, then 3.18.0 a couple of days ago, and moments
ago
with 3.16.4 (after wiping all traces of previous installations)
but the
problem persists.

Anyone has seen this? What could possibly be wrong here?

Thanks in advance,

Hernán


- - - - -

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
native:adduniquevalueindexfield -> Add unique value index field
native:addxyfields -> Add X/Y fields to layer
native:affinetransform -> Affine transform
native:aggregate -> Aggregate
native:angletonearest -> Align points to features
native:antimeridiansplit -> Geodesic line split at antimeridian
native:arrayoffsetlines -> Array of offset (parallel) lines
native:arraytranslatedfeatures -> Array of translated features
native:aspect -> Aspect
native:assignprojection -> Assign projection
native:atlaslayouttoimage -> Export atlas layout as image
native:atlaslayouttopdf -> Export atlas layout as PDF
native:bookmarkstolayer -> Convert spatial bookmarks to layer
native:boundary -> Boundary
native:boundingboxes -> Bounding boxes
native:buffer -> Buffer
native:bufferbym -> Variable width buffer (by M value)
native:calculatevectoroverlaps -> Overlap analysis
native:categorizeusingstyle -> Create categorized renderer from styles
native:cellstatistics -> Cell statistics
native:centroids -> Centroids
native:clip -> Clip
native:collect -> Collect geometries
native:combinestyles -> Combine style databases
native:condition -> Conditional branch
native:converttocurves -> Convert to curved geometries
native:convexhull -> Convex hull
native:countpointsinpolygon -> Count points in polygon
native:createattributeindex -> Create attribute index
native:createconstantrasterlayer -> Create constant raster layer
native:createdirectory -> Create directory
native:creategrid -> Create grid
native:createpointslayerfromtable -> Create points layer from table
native:createrandombinomialrasterlayer -> Create random raster layer
(binomial distribution)
native:createrandomexponentialrasterlayer -> Create random raster
layer
(exponential distribution)
native:createrandomgammarasterlayer -> Create random raster layer
(gamma
distribution)
native:createrandomgeometricrasterlayer -> Create random raster layer
(geometric distribution)
native:createrandomnegativebinomialrasterlayer -> Create random
raster
layer (negative binomial distribution)
native:createrandomnormalrasterlayer -> Create random raster layer
(normal distribution)
native:createrandompoissonrasterlayer -> Create random raster layer
(poisson distribution)
native:createrandomuniformrasterlayer -> Create random raster layer
(uniform distribution)
native:createspatialindex -> Create spatial index
native:dbscanclustering -> DBSCAN clustering
native:deleteduplicategeometries -> Delete duplicate geometries
native:deleteholes -> Delete holes
native:densifygeometries -> Densify by count
native:densifygeometriesgivenaninterval -> Densify by interval
native:detectvectorchanges -> Detect dataset changes
native:difference 

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

2021-03-02 Thread Alexandre Neto
Might seem obvious, but have you tried using a brand new profile?

A terça, 2/03/2021, 08:34, Hernán De Angelis 
escreveu:

> 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
>
> I compile QGIS from source, things have gone smoothly every time and I
> cannot see any obvious particular problem. I have tested with master a
> couple of weeks ago, then 3.18.0 a couple of days ago, and moments ago
> with 3.16.4 (after wiping all traces of previous installations) but the
> problem persists.
>
> Anyone has seen this? What could possibly be wrong here?
>
> Thanks in advance,
>
> Hernán
>
>
> - - - - -
>
> 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
> native:adduniquevalueindexfield -> Add unique value index field
> native:addxyfields -> Add X/Y fields to layer
> native:affinetransform -> Affine transform
> native:aggregate -> Aggregate
> native:angletonearest -> Align points to features
> native:antimeridiansplit -> Geodesic line split at antimeridian
> native:arrayoffsetlines -> Array of offset (parallel) lines
> native:arraytranslatedfeatures -> Array of translated features
> native:aspect -> Aspect
> native:assignprojection -> Assign projection
> native:atlaslayouttoimage -> Export atlas layout as image
> native:atlaslayouttopdf -> Export atlas layout as PDF
> native:bookmarkstolayer -> Convert spatial bookmarks to layer
> native:boundary -> Boundary
> native:boundingboxes -> Bounding boxes
> native:buffer -> Buffer
> native:bufferbym -> Variable width buffer (by M value)
> native:calculatevectoroverlaps -> Overlap analysis
> native:categorizeusingstyle -> Create categorized renderer from styles
> native:cellstatistics -> Cell statistics
> native:centroids -> Centroids
> native:clip -> Clip
> native:collect -> Collect geometries
> native:combinestyles -> Combine style databases
> native:condition -> Conditional branch
> native:converttocurves -> Convert to curved geometries
> native:convexhull -> Convex hull
> native:countpointsinpolygon -> Count points in polygon
> native:createattributeindex -> Create attribute index
> native:createconstantrasterlayer -> Create constant raster layer
> native:createdirectory -> Create directory
> native:creategrid -> Create grid
> native:createpointslayerfromtable -> Create points layer from table
> native:createrandombinomialrasterlayer -> Create random raster layer
> (binomial distribution)
> native:createrandomexponentialrasterlayer -> Create random raster layer
> (exponential distribution)
> native:createrandomgammarasterlayer -> Create random raster layer (gamma
> distribution)
> native:createrandomgeometricrasterlayer -> Create random raster layer
> (geometric distribution)
> native:createrandomnegativebinomialrasterlayer -> Create random raster
> layer (negative binomial distribution)
> native:createrandomnormalrasterlayer -> Create random raster layer
> (normal distribution)
> native:createrandompoissonrasterlayer -> Create random raster layer
> (poisson distribution)
> native:createrandomuniformrasterlayer -> Create random raster layer
> (uniform distribution)
> native:createspatialindex -> Create spatial index
> native:dbscanclustering -> DBSCAN clustering
> native:deleteduplicategeometries -> Delete duplicate geometries
> native:deleteholes -> Delete holes
> native:densifygeometries -> Densify by count
> native:densifygeometriesgivenaninterval -> Densify by interval
> native:detectvectorchanges -> Detect dataset changes
> native:difference -> Difference
> native:dissolve -> Dissolve
> native:dropgeometries -> Drop geometries
> native:dropmzvalues -> Drop M/Z values
> native:equaltofrequency -> Equal to frequency
> native:explodehstorefield -> Explode HStore Field
> native:explodelines -> Explode lines
> native:extendlines -> Extend lines
> native:extenttolayer -> Create layer from extent
>