<div dir="ltr">Hi,<div><br></div><div>sorry for the inconvenience, please read bellow:<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 1, 2013 at 7:36 AM, Eleftheria Paliou <span dir="ltr"><<a href="mailto:eleftheria_paliou@yahoo.gr" target="_blank">eleftheria_paliou@yahoo.gr</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div><span style="font-family:monospace,fixed;font-size:13px">Hi, </span></div>

<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:monospace,fixed"><span style="font-family:monospace,fixed;font-size:13px">I installed GRASS 7 </span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">(WinGRASS-7.0.svn-r57740-711 )on Windows 7 afew days ago and I am experiencing some problems with using the software. I hope someone in the list can help me solve some of the problems.</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">One problem is that I cannot run
 succesfully python scripts that make use of a scripted graphical interface </span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">( scripts with no arguments seem to work </span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">fine) and this applies to all scripts, also those found in GRASS 7 website and the grass </span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">7 scripts folder (although I have to add I only tried to run a couple of "simple" scripts </span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">with few required
 arguments):</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">To give you an example:</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">When I try to run <a href="http://r.rgb.py" target="_blank">r.rgb.py</a> through file-> launch script I get following error message:</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">Launching script 'C:\GRASS7\GRASS7.svn\scripts\<a href="http://r.rgb.py" target="_blank">r.rgb.py</a>'...</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">Exception in thread Thread-24:</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">Traceback (most recent call last):</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">  File "C:\GRASS7\GRASS7.svn\Python27\lib\threading.py",</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">line 810, in __bootstrap_inner</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">    self.run()</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">  File</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">"C:\GRASS7\GRASS7.svn\etc\gui\wxpython\core\gconsole.py",</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">line 153, in run</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">    self.resultQ.put((requestId, self.requestCmd.run()))</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">  File "C:\GRASS7\GRASS7.svn\etc\gui\wxpython\core\gcmd.py",</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">line 552, in run</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">    env = self.env)</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">  File "C:\GRASS7\GRASS7.svn\etc\gui\wxpython\core\gcmd.py",</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">line 172, in __init__</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">    subprocess.Popen.__init__(self, args, **kwargs)</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">  File "C:\GRASS7\GRASS7.svn\Python27\lib\subprocess.py",</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">line 711, in __init__</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">    errread, errwrite)</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">  File "C:\GRASS7\GRASS7.svn\Python27\lib\subprocess.py",</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">line 948, in _execute_child</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">    startupinfo)</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">TypeError: environment can only contain strings</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"></div></div></div></blockquote><div><br></div><div>I am not sure what's causing this and I couldn't reproduce it. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:monospace,fixed"><span style="font-family:monospace,fixed;font-size:13px">When I try the same script through the command line I get this message:</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">syntax error, unexpected '@', expecting '('</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">Parse error</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">ERROR: parse error</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">ERROR: An error occurred while running r.mapcalc</span></div>

</div></div></blockquote><div><br></div><div>I hopefully fixed this bug so you should be able to run it now.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>

<div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:monospace,fixed"><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">Nonetheless, when I give an output_prefix (which is optional) the script runs. </span><span style="font-family:monospace,fixed;font-size:13px"> Other scripts, for </span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">example, <a href="http://r.out.xyz.py" target="_blank">r.out.xyz.py</a> gives "a cannot find output error" or simply does not produce output </span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">(even when I give a name for the output which in any case is optional and should not make </span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">any difference unless I am missing something).</span></div></div></div></blockquote><div><br></div><div>Again, should be fixed now. You have to install new version from tomorrow where the changes will be applied.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:monospace,fixed">

<span style="font-family:monospace,fixed;font-size:13px"><br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:monospace,fixed"><span style="font-family:monospace,fixed;font-size:13px">The other problem I have is also with the v.db.addcolumn  and v.db.dropcolumn column commands which work when I run them from the command line, but not when I use a command through python shell</span></div>

<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:monospace,fixed">e.g. grass.run_command ("v.db.addcolumn", map="sites", columns="new_column"). These commands also don't work through the Grass GUI, e.g. through Manage tables. For example when I choose drop selected column, I get a warning message that the coulumn will be deleted, but in the end it is not removed from the table.</div>

</div></div></blockquote><div><br></div><div>This is most probably caused by the different Python versions installed (MAXREPEAT problem as previously discussed on mailing list). Typically occurs when ArcGIS (not sure about version) is installed. This affects running python scripts from other python scripts or gui, but it's not solved yet unfortunately.</div>

<div><br></div><div><br></div><div>Regards,</div><div><br></div><div>Anna</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif">

<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:monospace,fixed"><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">Does anyone have any idea what might cause these errors and how I could fix the problem?</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">Any help will be greatly appreciated!</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px">

<span style="font-family:monospace,fixed;font-size:13px">best wishes,</span><br style="padding:0px;margin:0px;font-family:monospace,fixed;font-size:13px"><span style="font-family:monospace,fixed;font-size:13px">Eleftheria</span></div>

</div></div><br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br></blockquote></div><br></div></div></div>