[GRASS-windows] Re: r.basin for windows [was Re:
WinGrass6.5.svn-installer with selected addons]
Helmut Kudrnovsky
hellik at web.de
Sun Oct 23 15:48:32 EDT 2011
>- 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
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.
More information about the grass-windows
mailing list