[GRASS-windows] problem from python & grass64 on Win XP

Liu, Huili HLiu at ap.org
Fri Sep 30 12:05:49 EDT 2011


Hello,

I am trying to run a simple python script as below on Win XP but I got
"Line too long or missing newline at line 56". I believe the problem
comes from "grass.parser()". 

Any idea how I can resolve it? I have Grass64 and python26 in my Win XP
desktop.

==============
import sys
from grass.script import core as grass

def main():
    ret = grass.run_command("g.region", rast="elevation")
    ret += grass.run_command("d.rast", "elevation")
    ret += grass.run_command("r.info", "elevation")
    sys.exit(ret)
 
if __name__ == "__main__":
    options, flags = grass.parser()
    main()

+++++++


Thanks,
Willie



The information contained in this communication is intended for the use
of the designated recipients named above. If the reader of this 
communication is not the intended recipient, you are hereby notified
that you have received this communication in error, and that any review,
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please 
notify The Associated Press immediately by telephone at +1-212-621-1898 
and delete this e-mail. Thank you.
[IP_US_DISC]
msk dccc60c6d2c3a6438f0cf467d9a4938



More information about the grass-windows mailing list