[GRASS-user] Troubles using t.create

Hi,

As I need to work with space time raster data serie, I am trying to use the t.create function (the first step to build a strds as indicated in tutorials) but unlike other functions that seem to work (I am new to GRASS), this one keeps returning errors that my more advanced users co-workers and I can’t explain.

→ Here is an exemple of the error i get when I try it on a local computer

*(base) fworme@SW-031:~> t.create type=strds temporaltype=absolute *

*> output=precipitation_monthly *

*> title=“Monthly precipitation” *

> description=“Dataset with monthly precipitation”

Traceback (most recent call last):

File “/usr/lib64/grass78/scripts/t.create”, line 92, in

main()

File “/usr/lib64/grass78/scripts/t.create”, line 74, in main

import grass.temporal as tgis

File “/usr/lib64/grass78/etc/python/grass/temporal/init.py”, line 3, in

from .core import *

File “/usr/lib64/grass78/etc/python/grass/temporal/core.py”, line 39, in

from .c_libraries_interface import *

File “/usr/lib64/grass78/etc/python/grass/temporal/c_libraries_interface.py”, line 20, in

import grass.lib.gis as libgis

File “/usr/lib64/grass78/etc/python/grass/lib/gis.py”, line 23, in

_libs[“grass_gis.7.8”] = load_library(“grass_gis.7.8”)

File “/usr/lib64/grass78/etc/python/grass/lib/ctypes_loader.py”, line 64, in load_library

raise ImportError(“%s not found.” % libname)

ImportError: grass_gis.7.8 not found.

The thing is: finding grass_gis 7.8 shouldn’t be a problem, and other grass functions are working

→ And here is what I get when I try to run it on mundialis/grass-py3-pdal:latest grass - Docker

Starting GRASS GIS…

Creating new GRASS GIS location …

Cleaning up temporary files…

Executing <bash /data/grass.sh> … (grass.sh containting the same exemple I tryed on a local computer)

Default TGIS driver / database set to:

driver: sqlite

database: $GISDBASE/$LOCATION_NAME/$MAPSET/tgis/sqlite.db

WARNING: Temporal database connection defined as:

/tmp/grass7-root-1/tmploc/PERMANENT/tgis/sqlite.db

But database file does not exist.

Creating temporal database:

/tmp/grass7-root-1/tmploc/PERMANENT/tgis/sqlite.db

Traceback (most recent call last):

File “/usr/local/grass/scripts/t.create”, line 92, in

main()

File “/usr/local/grass/scripts/t.create”, line 85, in main

tgis.init()

File “/usr/local/grass/etc/python/grass/temporal/core.py”, line 707, in init

create_temporal_database(dbif)

File “/usr/local/grass/etc/python/grass/temporal/core.py”, line 843, in create_temporal_database

self._create_temporal_database_views(dbif)

NameError: name ‘self’ is not defined

Execution of <bash /data/grass.sh> finished.

Cleaning up temporary files…

If anyone has any idea about where does the problem come from…

Thank you for your help / your time.


Ce message et toutes les pièces jointes (ci-après le “message”) sont établis à l’intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur ou s’il ne vous est pas destiné, merci de le détruire ainsi que toute copie de votre système et d’en avertir immédiatement l’expéditeur. Toute lecture non autorisée, toute utilisation de ce message qui n’est pas conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite. L’Internet ne permettant pas d’assurer l’intégrité de ce message électronique susceptible d’altération, l’expéditeur (et ses filiales) décline(nt) toute responsabilité au titre de ce message dans l’hypothèse où il aurait été modifié ou falsifié.

This message and any attachments (the “message”) is intended solely for the intended recipient(s) and is confidential. If you receive this message in error, or are not the intended recipient(s), please delete it and any copies from your systems and immediately notify the sender. Any unauthorized view, use that does not comply with its purpose, dissemination or disclosure, either whole or partial, is prohibited. Since the internet cannot guarantee the integrity of this message which may not be reliable, the sender (and its subsidiaries) shall not be liable for the message if modified or falsified.

Hello

I can’t reproduce the error with GRASS 7.8.2. No idea what can be the problem at your end… The parameter semantictype is required and not set in your example… It has a default value though… but maybe worth a try

best,
Vero

El mar., 5 may. 2020 a las 16:01, Worme Florian (SIRS) (<Florian.Worme@sirs-fr.com>) escribió:

Hi,

As I need to work with space time raster data serie, I am trying to use the t.create function (the first step to build a strds as indicated in tutorials) but unlike other functions that seem to work (I am new to GRASS), this one keeps returning errors that my more advanced users co-workers and I can’t explain.

→ Here is an exemple of the error i get when I try it on a local computer

*(base) fworme@SW-031:~> t.create type=strds temporaltype=absolute *

*> output=precipitation_monthly *

*> title=“Monthly precipitation” *

> description=“Dataset with monthly precipitation”

Traceback (most recent call last):

File “/usr/lib64/grass78/scripts/t.create”, line 92, in

main()

File “/usr/lib64/grass78/scripts/t.create”, line 74, in main

import grass.temporal as tgis

File “/usr/lib64/grass78/etc/python/grass/temporal/init.py”, line 3, in

from .core import *

File “/usr/lib64/grass78/etc/python/grass/temporal/core.py”, line 39, in

from .c_libraries_interface import *

File “/usr/lib64/grass78/etc/python/grass/temporal/c_libraries_interface.py”, line 20, in

import grass.lib.gis as libgis

File “/usr/lib64/grass78/etc/python/grass/lib/gis.py”, line 23, in

_libs[“grass_gis.7.8”] = load_library(“grass_gis.7.8”)

File “/usr/lib64/grass78/etc/python/grass/lib/ctypes_loader.py”, line 64, in load_library

raise ImportError(“%s not found.” % libname)

ImportError: grass_gis.7.8 not found.

The thing is: finding grass_gis 7.8 shouldn’t be a problem, and other grass functions are working

→ And here is what I get when I try to run it on mundialis/grass-py3-pdal:latest grass - Docker

Starting GRASS GIS…

Creating new GRASS GIS location …

Cleaning up temporary files…

Executing <bash /data/grass.sh> … (grass.sh containting the same exemple I tryed on a local computer)

Default TGIS driver / database set to:

driver: sqlite

database: $GISDBASE/$LOCATION_NAME/$MAPSET/tgis/sqlite.db

WARNING: Temporal database connection defined as:

/tmp/grass7-root-1/tmploc/PERMANENT/tgis/sqlite.db

But database file does not exist.

Creating temporal database:

/tmp/grass7-root-1/tmploc/PERMANENT/tgis/sqlite.db

Traceback (most recent call last):

File “/usr/local/grass/scripts/t.create”, line 92, in

main()

File “/usr/local/grass/scripts/t.create”, line 85, in main

tgis.init()

File “/usr/local/grass/etc/python/grass/temporal/core.py”, line 707, in init

create_temporal_database(dbif)

File “/usr/local/grass/etc/python/grass/temporal/core.py”, line 843, in create_temporal_database

self._create_temporal_database_views(dbif)

NameError: name ‘self’ is not defined

Execution of <bash /data/grass.sh> finished.

Cleaning up temporary files…

If anyone has any idea about where does the problem come from…

Thank you for your help / your time.


Ce message et toutes les pièces jointes (ci-après le “message”) sont établis à l’intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur ou s’il ne vous est pas destiné, merci de le détruire ainsi que toute copie de votre système et d’en avertir immédiatement l’expéditeur. Toute lecture non autorisée, toute utilisation de ce message qui n’est pas conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite. L’Internet ne permettant pas d’assurer l’intégrité de ce message électronique susceptible d’altération, l’expéditeur (et ses filiales) décline(nt) toute responsabilité au titre de ce message dans l’hypothèse où il aurait été modifié ou falsifié.

This message and any attachments (the “message”) is intended solely for the intended recipient(s) and is confidential. If you receive this message in error, or are not the intended recipient(s), please delete it and any copies from your systems and immediately notify the sender. Any unauthorized view, use that does not comply with its purpose, dissemination or disclosure, either whole or partial, is prohibited. Since the internet cannot guarantee the integrity of this message which may not be reliable, the sender (and its subsidiaries) shall not be liable for the message if modified or falsified.


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

Hi, the second mentioned problem was in master only, but should be fixed now. Not sure about the first one.
Anna

On Tue, May 5, 2020 at 6:44 PM Veronica Andreo <veroandreo@gmail.com> wrote:

Hello

I can’t reproduce the error with GRASS 7.8.2. No idea what can be the problem at your end… The parameter semantictype is required and not set in your example… It has a default value though… but maybe worth a try

best,
Vero

El mar., 5 may. 2020 a las 16:01, Worme Florian (SIRS) (<Florian.Worme@sirs-fr.com>) escribió:

Hi,

As I need to work with space time raster data serie, I am trying to use the t.create function (the first step to build a strds as indicated in tutorials) but unlike other functions that seem to work (I am new to GRASS), this one keeps returning errors that my more advanced users co-workers and I can’t explain.

→ Here is an exemple of the error i get when I try it on a local computer

*(base) fworme@SW-031:~> t.create type=strds temporaltype=absolute *

*> output=precipitation_monthly *

*> title=“Monthly precipitation” *

> description=“Dataset with monthly precipitation”

Traceback (most recent call last):

File “/usr/lib64/grass78/scripts/t.create”, line 92, in

main()

File “/usr/lib64/grass78/scripts/t.create”, line 74, in main

import grass.temporal as tgis

File “/usr/lib64/grass78/etc/python/grass/temporal/init.py”, line 3, in

from .core import *

File “/usr/lib64/grass78/etc/python/grass/temporal/core.py”, line 39, in

from .c_libraries_interface import *

File “/usr/lib64/grass78/etc/python/grass/temporal/c_libraries_interface.py”, line 20, in

import grass.lib.gis as libgis

File “/usr/lib64/grass78/etc/python/grass/lib/gis.py”, line 23, in

_libs[“grass_gis.7.8”] = load_library(“grass_gis.7.8”)

File “/usr/lib64/grass78/etc/python/grass/lib/ctypes_loader.py”, line 64, in load_library

raise ImportError(“%s not found.” % libname)

ImportError: grass_gis.7.8 not found.

The thing is: finding grass_gis 7.8 shouldn’t be a problem, and other grass functions are working

→ And here is what I get when I try to run it on mundialis/grass-py3-pdal:latest grass - Docker

Starting GRASS GIS…

Creating new GRASS GIS location …

Cleaning up temporary files…

Executing <bash /data/grass.sh> … (grass.sh containting the same exemple I tryed on a local computer)

Default TGIS driver / database set to:

driver: sqlite

database: $GISDBASE/$LOCATION_NAME/$MAPSET/tgis/sqlite.db

WARNING: Temporal database connection defined as:

/tmp/grass7-root-1/tmploc/PERMANENT/tgis/sqlite.db

But database file does not exist.

Creating temporal database:

/tmp/grass7-root-1/tmploc/PERMANENT/tgis/sqlite.db

Traceback (most recent call last):

File “/usr/local/grass/scripts/t.create”, line 92, in

main()

File “/usr/local/grass/scripts/t.create”, line 85, in main

tgis.init()

File “/usr/local/grass/etc/python/grass/temporal/core.py”, line 707, in init

create_temporal_database(dbif)

File “/usr/local/grass/etc/python/grass/temporal/core.py”, line 843, in create_temporal_database

self._create_temporal_database_views(dbif)

NameError: name ‘self’ is not defined

Execution of <bash /data/grass.sh> finished.

Cleaning up temporary files…

If anyone has any idea about where does the problem come from…

Thank you for your help / your time.


Ce message et toutes les pièces jointes (ci-après le “message”) sont établis à l’intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur ou s’il ne vous est pas destiné, merci de le détruire ainsi que toute copie de votre système et d’en avertir immédiatement l’expéditeur. Toute lecture non autorisée, toute utilisation de ce message qui n’est pas conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite. L’Internet ne permettant pas d’assurer l’intégrité de ce message électronique susceptible d’altération, l’expéditeur (et ses filiales) décline(nt) toute responsabilité au titre de ce message dans l’hypothèse où il aurait été modifié ou falsifié.

This message and any attachments (the “message”) is intended solely for the intended recipient(s) and is confidential. If you receive this message in error, or are not the intended recipient(s), please delete it and any copies from your systems and immediately notify the sender. Any unauthorized view, use that does not comply with its purpose, dissemination or disclosure, either whole or partial, is prohibited. Since the internet cannot guarantee the integrity of this message which may not be reliable, the sender (and its subsidiaries) shall not be liable for the message if modified or falsified.


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