Re: [GRASS-user] grass-python scripting error

2009-05-30 Thread Hamish
Milton wrote: > 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: > > > famig...@famiglia-pc > ~ > $ /c/OSGeo4W/apps/grass/bin/grass64 -text > Cleaning up temporary files ... > Starting GR

Re: [GRASS-user] grass-python scripting error

2009-05-29 Thread Milton Cezar Ribeiro
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: famig...@famiglia-pc ~ $ /c/OSGeo4W/apps/grass/bin/grass64 -text Cleaning up temporary files ... Starting GRASS ... Redirection

Re: [GRASS-user] grass-python scripting error

2009-05-29 Thread Hamish
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'

Re: [GRASS-user] grass-python scripting error

2009-05-29 Thread Milton Cezar Ribeiro
Dear friends Sorry for my delay: 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' >>>

Re: [GRASS-user] grass-python scripting error

2009-05-26 Thread Glynn Clements
Milton Cezar Ribeiro wrote: > and I need to compile the grass (or grass.py) again, or is just update this > file with newst one?! You don't need to compile anything; just update the file. -- Glynn Clements ___ grass-user mailing list grass-user@list

Re: [GRASS-user] grass-python scripting error

2009-05-25 Thread Hamish
> could you ... find and run python.exe from a cmd.exe DOS box and > post the results of typing the following commands at the > '>>>' prompt: > import os > os.name > os.environ actually don't bother to post the long result from os.environ, just: > os.environ['OS'] In 32bit linux I get: >>

Re: [GRASS-user] grass-python scripting error

2009-05-25 Thread Hamish
Milton wrote: > >> I will try this, but was thinking, as my plataform is not win32 > >> (I am running amd64 or x64) if with the change : > >> if sys.platform == "win32": > > >> if it will also work for my case?! Glynn: > > It depends upon whether Python uses a different value for > > s

Re: [GRASS-user] grass-python scripting error

2009-05-25 Thread Hamish
Milton wrote: > and I need to compile the grass (or grass.py) again, > or is just update this file with newst one?! just edit in the change by hand. python code doesn't need to be recompiled*. (* well, technically it takes care of that at run-time by itself and (re)creates a .pyc file as neede

Re: [GRASS-user] grass-python scripting error

2009-05-25 Thread Milton Cezar Ribeiro
Hi all, and I need to compile the grass (or grass.py) again, or is just update this file with newst one?! bests milton 2009/5/25 Martin Landa > Hi, > > 2009/5/25 Glynn Clements : > > > > Milton Cezar Ribeiro wrote: > > > >> I will try this, but was thinking, as my plataform is not win32 (I am

Re: [GRASS-user] grass-python scripting error

2009-05-25 Thread Martin Landa
Hi, 2009/5/25 Glynn Clements : > > Milton Cezar Ribeiro wrote: > >> I will try this, but was thinking, as my plataform is not win32 (I am >> running amd64 or x64) if with the change : >>      if sys.platform == "win32":   >> if it will also work for my case?! > > It depends upon whether Python

Re: [GRASS-user] grass-python scripting error

2009-05-25 Thread Glynn Clements
Milton Cezar Ribeiro wrote: > I will try this, but was thinking, as my plataform is not win32 (I am > running amd64 or x64) if with the change : > if sys.platform == "win32": > if it will also work for my case?! It depends upon whether Python uses a different value for sys.platform on

Re: [GRASS-user] grass-python scripting error

2009-05-25 Thread Milton Cezar Ribeiro
Hi Glynn, I will try this, but was thinking, as my plataform is not win32 (I am running amd64 or x64) if with the change : if sys.platform == "win32": if it will also work for my case?! Cheers milton 2009/5/25 Glynn Clements > > Milton Cezar Ribeiro wrote: > > > I am trying to play w

Re: [GRASS-user] grass-python scripting error

2009-05-25 Thread Glynn Clements
Milton Cezar Ribeiro wrote: > I am trying to play with grass & python, and I am trying to > reproduce the first example available at > http://grass.osgeo.org/wiki/GRASS_and_Python > with the following adaptation: > To try this I started MSYS, started GRASS with -gui option, > and then typed the

[GRASS-user] grass-python scripting error

2009-05-24 Thread Milton Cezar Ribeiro
Dear all, I am trying to play with grass & python, and I am trying to reproduce the first example available at http://grass.osgeo.org/wiki/GRASS_and_Python with the following adaptation: -- #!/usr/bin/env python import sys import grass def main(): drape_map = options['MQ_