Markus Neteler wrote:

> The issue is this:
> 
> GRASS 7.1.svn (nc_spm_08_grass7):~ > g.region rast=lsat7_2002_30
> GRASS 7.1.svn (nc_spm_08_grass7):~ > d.correlate 
> map=lsat7_2002_30,lsat7_2002_40
> ERROR: No graphics device selected. Use d.mon to select graphics device.
> Traceback (most recent call last):
>   File 
> "/home/neteler/software/grass71/dist.x86_64-unknown-linux-gnu/scripts/d.correlate",
> line 104, in <module>
>     main()
>   File 
> "/home/neteler/software/grass71/dist.x86_64-unknown-linux-gnu/scripts/d.correlate",
> line 46, in main
>     grass.write_command('d.text', color = 'black', size = 4, line = 1,
> stdin = "CORRELATION")
>   File 
> "/home/neteler/software/grass71/dist.x86_64-unknown-linux-gnu/etc/python/grass/script/core.py",
> line 483, in write_command
>     return handle_errors(returncode, returncode, args, kwargs)
>   File 
> "/home/neteler/software/grass71/dist.x86_64-unknown-linux-gnu/etc/python/grass/script/core.py",
> line 308, in handle_errors
>     returncode=returncode)
> grass.exceptions.CalledModuleError: Module run None ['d.text',
> 'color=black', 'line=1', 'stdin=CORRELATION', 'size=4'] ended with
> error
> Process ended with non-zero return code 1. See errors in the (error) output.

I can't reproduce the problem. And I'm not even sure how d.text can
exit with a non-zero return code without printing any error message.

In any case, display commands don't need any "graphics device" to be
selected.

-- 
Glynn Clements <gl...@gclements.plus.com>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to