[GRASS-dev] "Line too long" error in Python with grass.parser()

Hi,

I must be missing something obvious here: I'm trying to do my first
script in Python, and I go the following error when calling
grass.parser():
Line too long or missing newline at line 63

Thinking my code must be bugged, I gave it a shot with the examples on
the wiki (d.shademaps) and on the g.parser help page. I keep on having
the same error.

Any thoughts on what I might do wrong?

Cheers,

Pierre

--
Scientist
Landcare Research, New Zealand

2011/5/27 Pierre Roudier <pierre.roudier@gmail.com>:

Hi,

I must be missing something obvious here: I'm trying to do my first
script in Python, and I go the following error when calling
grass.parser():
Line too long or missing newline at line 63

Thinking my code must be bugged, I gave it a shot with the examples on
the wiki (d.shademaps) and on the g.parser help page. I keep on having
the same error.

Any thoughts on what I might do wrong?

Put an empty new line at the end of script

Cheers,

Pierre

--
cheers
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org

Thanks Luca, that did the trick.

Cheers,

Pierre

2011/5/27 Luca Delucchi <lucadeluge@gmail.com>:

2011/5/27 Pierre Roudier <pierre.roudier@gmail.com>:

Hi,

I must be missing something obvious here: I'm trying to do my first
script in Python, and I go the following error when calling
grass.parser():
Line too long or missing newline at line 63

Thinking my code must be bugged, I gave it a shot with the examples on
the wiki (d.shademaps) and on the g.parser help page. I keep on having
the same error.

Any thoughts on what I might do wrong?

Put an empty new line at the end of script

Cheers,

Pierre

--
cheers
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org

--
Scientist
Landcare Research, New Zealand