hellik
October 24, 2018, 5:26pm
1
Hi,
just tested following here with [1]:
- OSGeo4W-winGRASS-console: starting bash:
C:\>bash
GRASS 7.4.2>
- to see if env var are still there, e.g.
GRASS 7.4.2> echo $GRASS_PYTHON
C:\OSGEO4~1\bin\python.exe
the variables set beforehand are still there
- starting a binary grass module there:
GRASS 7.4.2> g.region --help
Manages the boundary definitions for the geographic region.
Usage:
g.region [-dsplectwmn3bgfau] [region=name] [raster=name[,name,...]]
[raster_3d=name] [vector=name[,name,...]] [n=value] [s=value]
[e=value] [w=value] [t=value] [b=value] [rows=value] [cols=value]
or
GRASS 7.4.2> g.region
just starts the GUI
- try to start a script module, e.g. r.reclass.area
GRASS 7.4.2> r.reclass.area.bat
/c/OSGEO4~1/apps/grass/grass-7.4.2/bin/r.reclass.area.bat: line 1:
@%GRASS_PYTHON%: command not found
it seems %GRASS_PYTHON%, or in the sense of bash $GRASS_PYTHON, seems not to
be expanded while running bash.
any idea how to get the script modules working?
[1]
System Info
GRASS version: 7.4.2
GRASS SVN revision: r73591
Build date: 2018-10-23
Build platform: x86_64-w64-mingw32
GDAL: 2.3.2
PROJ.4: 5.2.0
GEOS: 3.7.0
SQLite: 3.17.0
Python: 2.7.14
wxPython: 2.8.12.1
Platform: Windows-10-10.0.17134 (OSGeo4W)
-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html
On Wed, Oct 24, 2018 at 7:26 PM Helmut Kudrnovsky <hellik@web.de> wrote:
Hi,
just tested following here with [1]:
- OSGeo4W-winGRASS-console: starting bash:
C:\>bash
GRASS 7.4.2>
- to see if env var are still there, e.g.
GRASS 7.4.2> echo $GRASS_PYTHON
C:\OSGEO4~1\bin\python.exe
the variables set beforehand are still there
- starting a binary grass module there:
GRASS 7.4.2> g.region --help
Manages the boundary definitions for the geographic region.
Usage:
g.region [-dsplectwmn3bgfau] [region=name] [raster=name[,name,...]]
[raster_3d=name] [vector=name[,name,...]] [n=value] [s=value]
[e=value] [w=value] [t=value] [b=value] [rows=value] [cols=value]
or
GRASS 7.4.2> g.region
just starts the GUI
- try to start a script module, e.g. r.reclass.area
GRASS 7.4.2> r.reclass.area.bat
/c/OSGEO4~1/apps/grass/grass-7.4.2/bin/r.reclass.area.bat: line 1:
@%GRASS_PYTHON%: command not found
Is there really a "@" char at first character?
it seems %GRASS_PYTHON%, or in the sense of bash $GRASS_PYTHON, seems not to
be expanded while running bash.
any idea how to get the script modules working?
Can you try to remove the @ if it is there? I guess it shouldn't...
Markus
[1]
System Info
GRASS version: 7.4.2
GRASS SVN revision: r73591
Build date: 2018-10-23
Build platform: x86_64-w64-mingw32
GDAL: 2.3.2
PROJ.4: 5.2.0
GEOS: 3.7.0
SQLite: 3.17.0
Python: 2.7.14
wxPython: 2.8.12.1
Platform: Windows-10-10.0.17134 (OSGeo4W)
-----
best regards
Helmut
jef
October 29, 2018, 8:02am
3
Hi Helmut,
On Wed, 24. Oct 2018 at 10:26:37 -0700, Helmut Kudrnovsky wrote:
GRASS 7.4.2> r.reclass.area.bat
/c/OSGEO4~1/apps/grass/grass-7.4.2/bin/r.reclass.area.bat: line 1:
@%GRASS_PYTHON%: command not found
Looks like bash doesn't know that it should run batch files with cmd.
Jürgen
--
Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50
Software Engineer D-26506 Norden http://www.norbit.de
(attachments)
Pflichtangaben (206 Bytes)
Hi devs,
So, is this problem fixable? Where should I report this error to be able to run “all” grass commands and use bash-like for loops, env var setting, back ticks and so on when teaching GRASS to windows users while not being one?
thanks much in advance
Vero
El lun., 29 oct. 2018 a las 9:03, Jürgen E. Fischer (<jef@norbit.de >) escribió:
Hi Helmut,
On Wed, 24. Oct 2018 at 10:26:37 -0700, Helmut Kudrnovsky wrote:
GRASS 7.4.2> r.reclass.area.bat
/c/OSGEO4~1/apps/grass/grass-7.4.2/bin/r.reclass.area.bat: line 1:
@%GRASS_PYTHON%: command not found
Looks like bash doesn’t know that it should run batch files with cmd.
Jürgen
–
Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50
Software Engineer D-26506 Norden http://www.norbit.de
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev