[GRASS-user] grass-python scripting error

Milton wrote:

Here you have the results on a AMD64/Vista:
C:\Python25>python
Python 2.5.4 (r254:67916, Dec 23 2008, 15:19:34) [MSC
v.1400 64 bit (AMD64)] on
win32
Type "help", "copyright",
"credits" or "license" for more
information.

>>> import sys
>>> sys.platform
'win32'
>>> import os
>>> os.name
'nt'
>>> os.environ['OS']
'Windows_NT'

>>> import platform
>>> platform.system()
'Windows'
>>>

ok, so it still reports 'win32' and so that's not the problem...

info added to
http://grass.osgeo.org/wiki/WxPython-based_GUI_for_GRASS#Platform_specific

are you able to run 'g.region -p' from the GRASS command line?
(maybe you get to see extra error messages there that are hidden by
the GUI)

thanks,
Hamish

Dear Hamish,

I tryed to start grass64R4 with -text to test your suggestion
but I don’t know why I get error on starting comand line version:


famiglia@FAMIGLIA-PC ~
$ /c/OSGeo4W/apps/grass/bin/grass64 -text
Cleaning up temporary files …
Starting GRASS …

Redirection is not supported.

I also can’t start with -wx

Any idea?!

Cheers

milton

2009/5/29 Hamish <hamish_b@yahoo.com>

Milton wrote:

Here you have the results on a AMD64/Vista:
C:\Python25>python
Python 2.5.4 (r254:67916, Dec 23 2008, 15:19:34) [MSC
v.1400 64 bit (AMD64)] on
win32
Type “help”, “copyright”,
“credits” or “license” for more
information.

import sys
sys.platform
‘win32’
import os
os.name
‘nt’
os.environ[‘OS’]
‘Windows_NT’

import platform
platform.system()
‘Windows’

ok, so it still reports ‘win32’ and so that’s not the problem…

info added to
http://grass.osgeo.org/wiki/WxPython-based_GUI_for_GRASS#Platform_specific

are you able to run ‘g.region -p’ from the GRASS command line?
(maybe you get to see extra error messages there that are hidden by
the GUI)

thanks,
Hamish