[GRASS-user] Troubles using t.create

Worme Florian (SIRS) Florian.Worme at sirs-fr.com
Tue May 5 07:01:06 PDT 2020


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 at 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 <module>
    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 <module>
    from .core import *
  File "/usr/lib64/grass78/etc/python/grass/temporal/core.py", line 39, in <module>
    from .c_libraries_interface import *
  File "/usr/lib64/grass78/etc/python/grass/temporal/c_libraries_interface.py", line 20, in <module>
    import grass.lib.gis as libgis
  File "/usr/lib64/grass78/etc/python/grass/lib/gis.py", line 23, in <module>
    _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 <tmploc>...
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 <module>
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20200505/0bafe800/attachment.html>


More information about the grass-user mailing list