[GRASS-windows] Re: r.basin for windows [was Re: WinGrass6.5.svn-installer with selected addons]

Margherita Di Leo diregola at gmail.com
Sun Oct 23 17:17:23 EDT 2011


Hi Helmut,

2011/10/23 Helmut Kudrnovsky <hellik at web.de>

> >- r.ipso
> >
> >       Traceback (most recent call last):
> >         File "c:\Program Files\GRASS
> >       6.5.SVN\etc\wxpython\gui_modules\prompt.py", line 804, in
> >       OnItemSelected
> >[...]
> >- r.wf:
> >
> >       Traceback (most recent call last):
> >         File "c:\Program Files\GRASS
> >       6.5.SVN\etc\wxpython\gui_modules\prompt.py", line 1098, in
> >       OnKeyPressed
> >[...]
>
> for the record, beside the python-pythonpath-pythonhome issue, by testing
> the scripts r.ipso and r.wf it has been observed that there is the
> python-lib-tk missing in the osgeo4w-based wingrass-installers and
> therefore
> matplotlib isn't correctly working.
>
> a workaround is changing the matplotlib-backend in the scripts by i.e.
>
>  import sys
>  import os
>  import matplotlib <= !!!
>  matplotlib.use('wx') <= !!!
>  import matplotlib.pyplot as plt
>  import grass.script as grass
>  import numpy as np
>

feel free to do such modification in the scripts if it solves the issue.

madi


>
> Helmut
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/WinGrass6-5-svn-installer-with-selected-addons-tp6873977p6922825.html
> Sent from the Grass - Win mailing list archive at Nabble.com.
> _______________________________________________
> grass-windows mailing list
> grass-windows at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-windows
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-windows/attachments/20111023/cffa406a/attachment.html


More information about the grass-windows mailing list