Hi Luca,
please call

tgis.init()

before any temporal operation is performed.

Best regards
Soeren

2014-06-24 10:51 GMT+02:00 Luca Delucchi <lucadel...@gmail.com>:
> Hi everybody,
>
> if I run python inside a GRASS session and after try to connect to the
> database I obtain an error
>
>>>> import grass.temporal as tgis
>>>> dbif = tgis.SQLDatabaseInterfaceConnection()
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File 
> "/home/lucadelu/compilati/grass_trunk/dist.x86_64-unknown-linux-gnu/etc/python/grass/temporal/core.py",
> line 786, in __init__
>     self.msgr.debug(1, "SQLDatabaseInterfaceConnection constructor")
> AttributeError: 'NoneType' object has no attribute 'debug'
>
> If I run the same code in a script I didn't obtain any error, some
> advice to solve the problem?
>
> --
> ciao
> Luca
>
> http://gis.cri.fmach.it/delucchi/
> www.lucadelu.org
> _______________________________________________
> grass-dev mailing list
> grass-dev@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to