[GRASS-windows] No such file or directory

Peter Brooks peter at timedworld.com
Fri Aug 14 09:52:55 EDT 2009


No, I think it is whitespace...  I'm trying to use the 'cmd >' field 
in the 'GRASS GIS Layer Manager' (the new wxPython GUI).  I guess 
this is what a Windows user would try to do :-)

I tried adding a space to the folder name (= 'c:\nc external'), 
forward slashes don't help but speech or quote marks do.

(I think the same thing happens with all r.in commands if they are 
looking for external files - is this to be expected?)


Using the GRASS Command line utility (DOS shell type interface):

GRASS 6.4.0svn (North-Carolina)> cd c:/nc external
The system cannot find the path specified.

GRASS 6.4.0svn (North-Carolina)> cd c:\nc external
(works ok)


Thanks
Peter


On 14 Aug 2009 at 15:14, Markus Neteler wrote:

hi Peter,

On Fri, Aug 14, 2009 at 2:58 PM, Peter Brooks<peter at timedworld.com>
wrote: > Hi Markus, > >  - yes it works using the GUI (should have
thought to try this)

ok, good.

>  - yes, the path contains whitespaces. Using speech or quote marks
> around the full path + filename sorts it.  Falls over without. A
> path without whitespace works but requires unix style forward
> slashes.

I darkly remember that we added some Windows-magic for that
elsewhere but I don't remember how.


> (I stupidly thought that by creating a mapset and saving the data
> into that folder GRASS would be able to find it...

It does so on non-Windows and it should "learn" it also on Windows!

I tried:

GRASS 6.4.0svn (nc_spm_08): > r.in.poly in=/tmp/dd\ 
dd/newfacility.txt
out=new_facility_1m Writing raster map...
 100%

GRASS 6.4.0svn (nc_spm_08): > cd /tmp/dd\ dd/
GRASS 6.4.0svn (nc_spm_08):/tmp/dd dd > r.in.poly 
in=./newfacility.txt
out=new_facility_1m --o Writing raster map...
 100%

Works. So it may be rather the slash stuff than white space?

> didn't think I
> would need the full path. Will now move the data to a c:\ncexternal
> folder to reduce typing :-)

Yes, for now - we hope to figure out the problem.

Please consider to open a bug report with these findings.

best
Markus


More information about the grass-windows mailing list