Send grass-windows mailing list submissions to grass-windows@lists.osgeo.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/grass-windows or, via email, send a message with subject or body 'help' to grass-windows-requ...@lists.osgeo.org You can reach the person managing the list at grass-windows-ow...@lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of grass-windows digest..." Today's Topics: 1. Re: Connecting to GRASS using external Python (Brian Sanjeewa Rupasinghe) ---------------------------------------------------------------------- Message: 1 Date: Tue, 1 Jan 2013 23:16:58 +0530 From: Brian Sanjeewa Rupasinghe <jink...@gmail.com> To: Martin Landa <landa.mar...@gmail.com>, grass-...@lists.osgeo.org, grass-windows@lists.osgeo.org Subject: Re: [GRASS-windows] Connecting to GRASS using external Python Message-ID: <caema-4hncgympjmy_s_4m6swztmr60i+d5h9jphcdz1ngw_...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" 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 < jink...@gmail.com> wrote: > It gives a message: "unable to initialize device PRN" > > > On Tue, Jan 1, 2013 at 11:04 PM, Brian Sanjeewa Rupasinghe < > jink...@gmail.com> wrote: > >> You mean adding this in env.bat file? >> >> >> On Tue, Jan 1, 2013 at 10:28 PM, Martin Landa <landa.mar...@gmail.com>wrote: >> >>> Hi, >>> >>> 2013/1/1 Brian Sanjeewa Rupasinghe <jink...@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 >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/grass-windows/attachments/20130101/10157a4d/attachment-0001.html> ------------------------------ _______________________________________________ grass-windows mailing list grass-windows@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-windows End of grass-windows Digest, Vol 69, Issue 2 ********************************************