Re: [GRASS-user] fail to, compile on Buster

2020-03-31 Thread Frank David

Hi Markus,

Thank you for your reply.

Unfortunately I have no longer access to this laptop (my colleague is 
now at home because covid). But I've not seen error in the the configure 
return.


The command was :

CFLAGS="-Wall -Werror-implicit-function-declaration -fno-common -Wextra 
-Wunused" \
 CXXFLAGS="-Wall"  \
 ./configure \
  --prefix=/usr/local \
  --with-gdal --with-proj --with-proj-share=/usr/share \
  --with-glw --with-nls --with-readline \
  --with-cxx --enable-largefile \
  --with-freetype --with-freetype-includes=/usr/include/freetype2 \
  --with-sqlite --with-cairo --with-python=/usr/bin/python-config \
  --with-wxwidgets --with-geos \
  --with-blas --with-blas-includes=/usr/include/atlas/ \
  --with-lapack --with-lapack-includes=/usr/include/atlas/ \
  --with-netcdf=/usr/bin/nc-config --with-odbc=yes \
  --with-openmp=yes --with-pthread=no --with-postgres=yes \
  --with-postgres-includes=/usr/include/postgresql \
  --with-postgres-libs=/usr/lib/postgresql \
  --with-mysql=yes --with-mysql-includes=/usr/include/mysql

and I also tried the command in INSTALL file, but with the same message.

Anyway, I've installed Grass from Debian Buster repository (7.6), and it's 
enough for this laptop for the moment (at least until the end of covid crises).

Take care

Regards,
Frank

Le 30/03/2020 à 19:22, Markus Neteler a écrit :


Hi Frank,

On Sat, Mar 28, 2020 at 7:54 PM  wrote:

Hello,

I'm trying to install last release of grass (sources downloaded from
github) on a debian 10.3 (Laptop). I've followed the install steps of
https://grasswiki.osgeo.org/wiki/Compile_and_Install#GRASS_7_on_Debian_Buster
and also from install text file, and I always get :

can you post your "configure .. " command?

Do any errors show up?

Best
Markus


sudo make
include/Make/Vars.make:1: include/Make/Platform.make: Aucun fichier ou
dossier de ce type
make: *** Aucune règle pour fabriquer la cible
« include/Make/Platform.make ». Arrêt.

I have not seen error in the configure step... Any idea of the problem ?

Thanks,
Frank
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] GRASS "shell" plugin + GRASS "Add-ons" in QGIS

2020-03-31 Thread Markus Neteler
On Tue, Mar 31, 2020 at 4:16 PM Valter Albino  wrote:
>
> Hi Sajid,
>
> OK, thank you.
> In fact, i can only compute "r.mask.rast" and "r.mask.vect"

AFAIK that's a QGIS decision to represent "r.mask" as two modules with
focus on *either* raster *or* vector. Their rationale: keep it super
simple. Maybe sometimes too much :-)

Markus
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Install package for add-on in /usr/bin/python3

2020-03-31 Thread Robin Kohrs

Hi Stefan,

thank you very much for the effort and the patience in answering!
I'll definitely give this a try. I already have so many issues on my  
computer, one more doesn't matter;)


thanks again and best regards,
Robin

Citando Stefan Blumentrath :


Hi Robin,

You could try setting the GRASS_PYTHON environment variable to your  
Python installation with fmask.


import os
os.environ['GRASS_PYTHON'] = '/YOUR/PYTHON/PATH'

As Markus indicates that can cause other issues.

You may also have a look at https://github.com/zarch/grass-session  
for inspiration.


Hope that gives you at least a lead...

Cheers
Stefan


-Original Message-
From: grass-user  On Behalf Of  
Robin Kohrs

Sent: tirsdag 31. mars 2020 09:25
To: Markus Neteler 
Cc: GRASS user list 
Subject: Re: [GRASS-user] Install package for add-on in /usr/bin/python3

Hi Markus,

thank you very much for your answer and the help!
Do you have any idea what I could do to make the fmask-package  
"locatable" for the python-interpreter that grass is using?


I tried the following options, but I guess I just don't know  
sufficiently about how python and grass really work together:


My python-script looks more or less like this:
---
#!/usr/bin/env python3

import sys

print("SYS PATH")
print(sys.path)
print("")
print("SYS EXECUTABLE")
print(sys.executable)

import grass.script as grass
from rios import fileinfo # that's where it fails from fmask import fmask

---

That's why I tried until now:

- I created an environment with conda and installed python-fmask via  
"conda install -c conda-forge python-fmask". The function  
"fmask_sentinel2Stacked.py" lies in  
"/home/robin/miniconda3/bin/fmask_sentinel2Stacked.py".


- When I open an interactive python-shell and import fmask and rios  
and the type: "fmask.__file__" it gives me  
"/home/robin/miniconda3/envs/fmask/lib/python3.7/site-packages/fmask/__init__.py"


- I then added
"/home/robin/miniconda3/envs/fmask/lib/python3.7/site-packages/" to  
the variable PYTHONPATH in my .bashrc


- When I now start the interpreter that grass uses from the command  
line by typing "/usr/bin/pyton3" I can import fmask and rios


- However when I run the script with grass it always says that there  
is no package names rios. Moreover the path I added to PYTHONPATH is  
not printed when it executes "sys.path" in my grass script



I'm sorry for this little confusing question. But in case someone  
has any idea how I could make grass find fmask, would be super highly

appreciated:)

thanks a lot in advance! Cheers
Robin

Citando Markus Neteler :


Hi Robin,

On Sat, Mar 21, 2020 at 6:15 PM Robin Kohrs  wrote:



Hi everyone:)
I'm really sorry for this naive question. I'm kind of starting with
GRASS and I just can't find a solution...
The issue is, that I would like to try to write a little GRASS Add-on
and use the python-fmask package. While this package is only
downloadable via conda it always installs into
`/home/user/miniconda3/bin/python3`. Even when I did `conda
deactivate` prior to this.


I guess that mixing conda packages and "regular" ones is causing troubles.


When I then have the import statement `import fask` in the
grass-script it always throws an error, saying that fmask is not
installed. When I print the `sys.executable` in the grass-script it
tells me that the interpreter is in `usr/bin/python3`. So I thought
that I'd install the fmask-package in a way that this interpreter can
find it while executing the script. But I just don't know how. I can
add the fmask-path to sys.path, but I don't think this is the
solution. Maybe someone has a pointer what I'm not getting.


There is also the environment variable PYTHONPATH which could be set
in the session.
But again, mixing might cause problems.

Now I wanted to check
http://pythonfmask.org/en/latest/#downloads
but the server is down...


Hope everyone is good these days:)!


Good luck everyone,

Markus




___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user




___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] GRASS "shell" plugin + GRASS "Add-ons" in QGIS

2020-03-31 Thread Veronica Andreo
Hello Valter,

It works here with a single click. It just opens a new tab there with a
terminal (bash shell in my case). You first need to open a location and
mapset with the GRASS Plugin to get it activated, but I think you did,
right?

[image: image.png]

What operative system do you use?

best,
Vero

El mar., 31 mar. 2020 a las 12:53, Valter Albino ()
escribió:

> I double click and nothing happens
>
> Cumprimentos,
> *Valter Albino -* Geógrafo Físico, M.Sc.
> Modelação H / Riscos ambientais / OT
> www.valteralbino.wixsite.com/hydrodynamics
>
>
> Stefan Blumentrath  escreveu no dia terça,
> 31/03/2020 à(s) 11:46:
>
>> Yes, I think so.
>>
>> The shell should give you your OS native GRASS command line.
>>
>> Could you try out and report back?
>>
>>
>>
>> *From:* grass-user  *On Behalf Of *Valter
>> Albino
>> *Sent:* tirsdag 31. mars 2020 12:43
>> *To:* grass-user 
>> *Subject:* [GRASS-user] GRASS "shell" plugin + GRASS "Add-ons" in QGIS
>>
>>
>>
>> Good Morning
>>
>> Sorry for the naivety, but I appreciate any good answers:
>> - is "GRASS SHELL" in the plugin, in QGIS, usable with double click? Is
>> he supposed to let you write right?
>>
>> [image: imagem.png]
>>
>> - is it possible to use the GRASS "Add-ons" previously installed by
>> "GRASS GIS" through the QGIS plugin?
>>
>>
>>
>> Thanks
>>
>> Cumprimentos,
>> * Valter Albino - *Geógrafo Físico, M.Sc.
>>
>> Modelação H / Riscos ambientais / OT
>>
>> www.valteralbino.wixsite.com/hydrodynamics
>>
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] GRASS "shell" plugin + GRASS "Add-ons" in QGIS

2020-03-31 Thread Valter Albino
I double click and nothing happens

Cumprimentos,
*Valter Albino -* Geógrafo Físico, M.Sc.
Modelação H / Riscos ambientais / OT
www.valteralbino.wixsite.com/hydrodynamics


Stefan Blumentrath  escreveu no dia terça,
31/03/2020 à(s) 11:46:

> Yes, I think so.
>
> The shell should give you your OS native GRASS command line.
>
> Could you try out and report back?
>
>
>
> *From:* grass-user  *On Behalf Of *Valter
> Albino
> *Sent:* tirsdag 31. mars 2020 12:43
> *To:* grass-user 
> *Subject:* [GRASS-user] GRASS "shell" plugin + GRASS "Add-ons" in QGIS
>
>
>
> Good Morning
>
> Sorry for the naivety, but I appreciate any good answers:
> - is "GRASS SHELL" in the plugin, in QGIS, usable with double click? Is
> he supposed to let you write right?
>
> [image: imagem.png]
>
> - is it possible to use the GRASS "Add-ons" previously installed by "GRASS
> GIS" through the QGIS plugin?
>
>
>
> Thanks
>
> Cumprimentos,
> * Valter Albino - *Geógrafo Físico, M.Sc.
>
> Modelação H / Riscos ambientais / OT
>
> www.valteralbino.wixsite.com/hydrodynamics
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] GRASS "shell" plugin + GRASS "Add-ons" in QGIS

2020-03-31 Thread Stefan Blumentrath
Yes, I think so.
The shell should give you your OS native GRASS command line.
Could you try out and report back?

From: grass-user  On Behalf Of Valter Albino
Sent: tirsdag 31. mars 2020 12:43
To: grass-user 
Subject: [GRASS-user] GRASS "shell" plugin + GRASS "Add-ons" in QGIS

Good Morning

Sorry for the naivety, but I appreciate any good answers:
- is "GRASS SHELL" in the plugin, in QGIS, usable with double click? Is he 
supposed to let you write right?
[imagem.png]
- is it possible to use the GRASS "Add-ons" previously installed by "GRASS GIS" 
through the QGIS plugin?

Thanks
Cumprimentos,
Valter Albino - Geógrafo Físico, M.Sc.
Modelação H / Riscos ambientais / OT
www.valteralbino.wixsite.com/hydrodynamics
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

[GRASS-user] GRASS "shell" plugin + GRASS "Add-ons" in QGIS

2020-03-31 Thread Valter Albino
Good Morning

Sorry for the naivety, but I appreciate any good answers:
- is "GRASS SHELL" in the plugin, in QGIS, usable with double click? Is he
supposed to let you write right?
[image: imagem.png]
- is it possible to use the GRASS "Add-ons" previously installed by "GRASS
GIS" through the QGIS plugin?

Thanks
Cumprimentos,
*Valter Albino -* Geógrafo Físico, M.Sc.
Modelação H / Riscos ambientais / OT
www.valteralbino.wixsite.com/hydrodynamics
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Install package for add-on in /usr/bin/python3

2020-03-31 Thread Stefan Blumentrath
Hi Robin,

You could try setting the GRASS_PYTHON environment variable to your Python 
installation with fmask.

import os
os.environ['GRASS_PYTHON'] = '/YOUR/PYTHON/PATH'

As Markus indicates that can cause other issues.

You may also have a look at https://github.com/zarch/grass-session for 
inspiration.

Hope that gives you at least a lead...

Cheers
Stefan


-Original Message-
From: grass-user  On Behalf Of Robin Kohrs
Sent: tirsdag 31. mars 2020 09:25
To: Markus Neteler 
Cc: GRASS user list 
Subject: Re: [GRASS-user] Install package for add-on in /usr/bin/python3

Hi Markus,

thank you very much for your answer and the help!
Do you have any idea what I could do to make the fmask-package "locatable" for 
the python-interpreter that grass is using?

I tried the following options, but I guess I just don't know sufficiently about 
how python and grass really work together:

My python-script looks more or less like this:
---
#!/usr/bin/env python3

import sys

print("SYS PATH")
print(sys.path)
print("")
print("SYS EXECUTABLE")
print(sys.executable)

import grass.script as grass
from rios import fileinfo # that's where it fails from fmask import fmask

---

That's why I tried until now:

- I created an environment with conda and installed python-fmask via "conda 
install -c conda-forge python-fmask". The function "fmask_sentinel2Stacked.py" 
lies in "/home/robin/miniconda3/bin/fmask_sentinel2Stacked.py".

- When I open an interactive python-shell and import fmask and rios and the 
type: "fmask.__file__" it gives me 
"/home/robin/miniconda3/envs/fmask/lib/python3.7/site-packages/fmask/__init__.py"

- I then added
"/home/robin/miniconda3/envs/fmask/lib/python3.7/site-packages/" to the 
variable PYTHONPATH in my .bashrc

- When I now start the interpreter that grass uses from the command line by 
typing "/usr/bin/pyton3" I can import fmask and rios

- However when I run the script with grass it always says that there is no 
package names rios. Moreover the path I added to PYTHONPATH is not printed when 
it executes "sys.path" in my grass script


I'm sorry for this little confusing question. But in case someone has any idea 
how I could make grass find fmask, would be super highly
appreciated:)

thanks a lot in advance! Cheers
Robin

Citando Markus Neteler :

> Hi Robin,
>
> On Sat, Mar 21, 2020 at 6:15 PM Robin Kohrs  wrote:
>>
>>
>> Hi everyone:)
>> I'm really sorry for this naive question. I'm kind of starting with 
>> GRASS and I just can't find a solution...
>> The issue is, that I would like to try to write a little GRASS Add-on 
>> and use the python-fmask package. While this package is only 
>> downloadable via conda it always installs into 
>> `/home/user/miniconda3/bin/python3`. Even when I did `conda 
>> deactivate` prior to this.
>
> I guess that mixing conda packages and "regular" ones is causing troubles.
>
>> When I then have the import statement `import fask` in the 
>> grass-script it always throws an error, saying that fmask is not 
>> installed. When I print the `sys.executable` in the grass-script it 
>> tells me that the interpreter is in `usr/bin/python3`. So I thought 
>> that I'd install the fmask-package in a way that this interpreter can 
>> find it while executing the script. But I just don't know how. I can 
>> add the fmask-path to sys.path, but I don't think this is the 
>> solution. Maybe someone has a pointer what I'm not getting.
>
> There is also the environment variable PYTHONPATH which could be set 
> in the session.
> But again, mixing might cause problems.
>
> Now I wanted to check
> http://pythonfmask.org/en/latest/#downloads
> but the server is down...
>
>> Hope everyone is good these days:)!
>
> Good luck everyone,
>
> Markus



___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Install package for add-on in /usr/bin/python3

2020-03-31 Thread Robin Kohrs

Hi Markus,

thank you very much for your answer and the help!
Do you have any idea what I could do to make the fmask-package  
"locatable" for the python-interpreter that grass is using?


I tried the following options, but I guess I just don't know  
sufficiently about how python and grass really work together:


My python-script looks more or less like this:
---
#!/usr/bin/env python3

import sys

print("SYS PATH")
print(sys.path)
print("")
print("SYS EXECUTABLE")
print(sys.executable)

import grass.script as grass
from rios import fileinfo # that's where it fails
from fmask import fmask

---

That's why I tried until now:

- I created an environment with conda and installed python-fmask via  
"conda install -c conda-forge python-fmask". The function  
"fmask_sentinel2Stacked.py" lies in  
"/home/robin/miniconda3/bin/fmask_sentinel2Stacked.py".


- When I open an interactive python-shell and import fmask and rios  
and the type: "fmask.__file__" it gives me  
"/home/robin/miniconda3/envs/fmask/lib/python3.7/site-packages/fmask/__init__.py"


- I then added  
"/home/robin/miniconda3/envs/fmask/lib/python3.7/site-packages/" to  
the variable PYTHONPATH in my .bashrc


- When I now start the interpreter that grass uses from the command  
line by typing "/usr/bin/pyton3" I can import fmask and rios


- However when I run the script with grass it always says that there  
is no package names rios. Moreover the path I added to PYTHONPATH is  
not printed when it executes "sys.path" in my grass script



I'm sorry for this little confusing question. But in case someone has  
any idea how I could make grass find fmask, would be super highly  
appreciated:)


thanks a lot in advance! Cheers
Robin

Citando Markus Neteler :


Hi Robin,

On Sat, Mar 21, 2020 at 6:15 PM Robin Kohrs  wrote:



Hi everyone:)
I'm really sorry for this naive question. I'm kind of starting with
GRASS and I just can't find a solution...
The issue is, that I would like to try to write a little GRASS Add-on
and use the python-fmask package. While this package is only
downloadable via conda it always installs into
`/home/user/miniconda3/bin/python3`. Even when I did `conda
deactivate` prior to this.


I guess that mixing conda packages and "regular" ones is causing troubles.


When I then have the import statement `import fask` in the
grass-script it always throws an error, saying that fmask is not
installed. When I print the `sys.executable` in the grass-script it
tells me that the interpreter is in `usr/bin/python3`. So I thought
that I'd install the fmask-package in a way that this interpreter can
find it while executing the script. But I just don't know how. I can
add the fmask-path to sys.path, but I don't think this is the
solution. Maybe someone has a pointer what I'm not getting.


There is also the environment variable PYTHONPATH which could be set
in the session.
But again, mixing might cause problems.

Now I wanted to check
http://pythonfmask.org/en/latest/#downloads
but the server is down...


Hope everyone is good these days:)!


Good luck everyone,

Markus




___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user