I reinstalled GRASS stable version 6.4.2 and set its env.bat file as given below. Still the problem exists. I just commented print sys.path in it.
set WINGISBASE=%GISBASE%
rem Directory where your .grassrc6 file will be stored
set HOME=%USERPROFILE%
rem Name of the wish (Tk) executable
set GRASS_WISH=wish.exe
rem Path to the shell command
set GRASS_SH=%GISBASE%\msys\bin\sh.exe
rem Set Path to utilities (libraries and binaries) used by GRASS
set PATH=%GISBASE%\msys\bin;%PATH%
set PATH=%GISBASE%\extrabin;%GISBASE%\extralib;%PATH%
set PATH=%GISBASE%\tcl-tk\bin;%GISBASE%\sqlite\bin;%GISBASE%\gpsbabel;%PATH%
set PATH=%GISBASE%\bin;%GISBASE%\scripts;%PATH%
rem Set Path to default web browser
set GRASS_HTML_BROWSER=explorer
rem Path to the proj files (notably the epsg projection list)
set GRASS_PROJSHARE=%GISBASE%\proj
rem Set GDAL_DATA
set GDAL_DATA=%GISBASE%\share\gdal
rem Set PROJ_LIB
set PROJ_LIB=%GISBASE%\proj
rem Set GEOTIFF_CSV
set GEOTIFF_CSV=%GISBASE%\share\epsg_csv
rem ##
set PATH=%GISBASE%\lib;%PATH%
set PATH= %GISBASE%\etc;%PATH%
set PATH=%GISBASE%\etc\python;%PATH%
set PATH=C:\Python27;%PATH%
set GISRC= C:\Users\KABS\AppData\Roaming\GRASS6\grassrc6
set LD_LIBRARY_PATH = %GISBASE%\lib
set PYTHONLIB= C:\Python27
set PYTHONPATH= %GISBASE%\etc\python;%PYTHONPATH%
rem ##
rem print sys.path
rem Path to the python directory
set PYTHONHOME=%GISBASE%\Python27
if “x%GRASS_PYTHON%” == “x” set GRASS_PYTHON=python
On Tue, Jan 1, 2013 at 11:10 PM, Brian Sanjeewa Rupasinghe <jinkabs@gmail.com> wrote:
It gives a message: “unable to initialize device PRN”
On Tue, Jan 1, 2013 at 11:04 PM, Brian Sanjeewa Rupasinghe <jinkabs@gmail.com> wrote:
You mean adding this in env.bat file?
On Tue, Jan 1, 2013 at 10:28 PM, Martin Landa <landa.martin@gmail.com> wrote:
Hi,
2013/1/1 Brian Sanjeewa Rupasinghe <jinkabs@gmail.com>:
Yes, I added PYTHONPATH inenv.bat file. Here is the env.bat file i modified.
Newly added lines are below rem #—what says
print sys.path
?
–
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa