Hi<div><br></div><div>After some help from Antonio we limited my problem to v.colors</div><div>Instead of running v.db.addcol I will be running db.execute directly and It works just fine (probably one of the problems was the path that was a mixture of "/" and "\")</div>
<div>Now, when I try to run v.colors in my OSGEO4W I get:</div><div><div> 0 [main] sh 2708 open_stackdumpfile: Dumping stack</div><div>trace to sh.exe.stackdump</div><div>DBMI-DBF driver error:</div><div>Table '' doesn't exist</div>
<div>ERROR: Unable to describe table <></div><div><br></div><div><div>Scanning values ...</div><div>Looking up colors ...</div><div> 0 [main] sh 4884 open_stackdumpfile: Dumping stack</div><div>trace to sh.exe.stackdump</div>
<div>C:/OSGeo4W/apps/grass/grass-6.4.1svn/scripts/v.colors: line</div><div>296: 5984 Done v.db.select</div><div>map="$GIS_OPT_MAP" layer="$GIS_OPT_LAYER"</div><div>column="$GIS_OPT_COLUMN"</div>
<div> 2916 | sort -n</div><div> 704 | grep '^[-0-9]'</div><div> 1812 | uniq</div><div> 1852 | r.what.color -i</div>
<div>in="tmp_colr_$$"</div><div> 3068 | sed -e 's/: /|/'</div><div> 4068 | grep -v '|\*$'</div><div> 4884 Segmentation fault (core dumped) | ( while</div>
<div>read LINE; do</div><div> VALUE=`echo $LINE | cut -f1 -d'|'`; COLR=`echo $LINE |</div><div>cut -f2 -d'|'`; echo "UPDATE $TABLE SET $GIS_OPT_RGB_COLUMN</div><div>= '$COLR' WHERE $GIS_OPT_COLUMN = $VALUE;"</div>
<div>>>"${TEMPFILE}_vcol.sql";</div><div>done )</div><div>ERROR: No values found in color range</div><div>rm: cannot lstat</div><div>`C:\\DWEISdata/Brazil/Regional/.tmp/3404.0_vcol.sql': No</div><div>such file or directory</div>
</div><div><br></div><div>But exacly with the same command I'm able to run in a WinGRASS (even an older one).</div><div>My OSGEO4w is from 6.4.1 and my winGRASS (that is working) is 6.4.0</div><br><div class="gmail_quote">
On Thu, Nov 18, 2010 at 5:23 PM, Helena Herrera <span dir="ltr"><<a href="mailto:helenaherrera1980@gmail.com">helenaherrera1980@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Greetings<div><br></div><div>I'm running WinGRASS in a OSGEO4W and when I run v.db.addcol I get a strange error:</div><div><br></div><div><div>v.db.addcol map=v7@Regional columns=GRASSRGB VARCHAR(11) </div>
<div> 0 [main] sh 4404 open_stackdumpfile: Dumping stack</div><div>trace to sh.exe.stackdump</div></div><div>or even:</div><div><div>v.db.addcol map=v7@Regional columns=AI VARCHAR(11) </div>
<div> 0 [main] sh 1508 open_stackdumpfile: Dumping stack</div><div>trace to sh.exe.stackdump</div><div> 0 [main] sh 4680 open_stackdumpfile: Dumping stack</div><div>trace to sh.exe.stackdump</div><div>C:/OSGeo4W/apps/grass/grass-6.4.1svn/scripts/v.db.addcol: [:</div>
<div>: integer expression expected</div></div><div><br></div><div>Then If I try to run in v.colors I get:</div><div><div>v.colors map=v7@Regional column=cat color=aspectcolr </div><div> 0 [main] sh 2196 open_stackdumpfile: Dumping stack</div>
<div>trace to sh.exe.stackdump</div><div> 0 [main] sh 5544 open_stackdumpfile: Dumping stack</div><div>trace to sh.exe.stackdump</div><div>ERROR: Column <cat> not found</div></div><div>or even:</div><div><div>
Scanning values ...</div>
<div> 0 [main] sh 5652 open_stackdumpfile: Dumping stack</div><div>trace to sh.exe.stackdump</div><div>ERROR: Scanning data range</div></div><div>or:</div><div><div> 0 [main] sh 208 open_stackdumpfile: Dumping stack</div>
<div>trace to sh.exe.stackdump</div><div> 0 [main] sh 2304 open_stackdumpfile: Dumping stack</div><div>trace to sh.exe.stackdump</div><div>C:/OSGeo4W/apps/grass/grass-6.4.1svn/scripts/v.colors: [: :</div><div>integer expression expected</div>
<div>Scanning values ...</div><div>Looking up colors ...</div><div>ERROR: No values found in color range</div><div>rm: cannot lstat</div><div>`C:\\DWEISdata/Brazil/Regional/.tmp/3548.0_vcol.sql': No</div><div>such file or directory</div>
</div><div><br></div><div>I believe the error might be in v.db.connect</div><div>I tried to find If I had any error during compilation but I don't think so.</div><div>Here goes the Error LOG (and I attached config.log).</div>
<div><div>GRASS GIS compilation log</div><div>-------------------------</div><div>Started compilation: Wed Sep 15 00:33:24 GMTDT 2010</div><div>--</div><div>Errors in:</div><div>No errors detected.</div><div>--</div><div>
Finished compilation: Wed Sep 15 00:52:48 GMTDT 2010</div></div><div><br></div><div>The thing is, that I don't get this error in any other function and neither in distributted winGRASS.</div><div><br></div><div>Any sugfgestion?</div>
</blockquote></div><br></div>