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: [GRASS-user] Re: [GRASS-windows] WinGRASS Python 2.7
      (Johannes Radinger)


----------------------------------------------------------------------

Message: 1
Date: Tue, 06 Sep 2011 13:44:14 +0200
From: "Johannes Radinger" <jradin...@gmx.at>
Subject: Re: [GRASS-user] Re: [GRASS-windows] WinGRASS Python 2.7
To: Glynn Clements <gl...@gclements.plus.com>
Cc: grass-u...@lists.osgeo.org, grass-windows@lists.osgeo.org
Message-ID: <20110906114414.92...@gmx.net>
Content-Type: text/plain; charset="utf-8"

Hi again,


sorry for posting again, but somehow I can't get it work to
run GRASS GIS using my local Python 2.7 installation.
See comments below:

-------- Original-Nachricht --------
> Datum: Mon, 5 Sep 2011 01:57:38 +0100
> Von: Glynn Clements <gl...@gclements.plus.com>
> An: "Johannes Radinger" <jradin...@gmx.at>
> CC: grass-u...@lists.osgeo.org, grass-windows@lists.osgeo.org
> Betreff: Re: [GRASS-user] Re: [GRASS-windows] WinGRASS Python 2.7

> 
> Johannes Radinger wrote:
> 
> > As recommended I did the changes.
> > I just tried to first disable the PYTHONHOME and
> > GRASS_PYTHON. The lines in the env.bat file are now:
> > 
> > rem Path to the python directory
> > rem set PYTHONHOME=%GISBASE%\Python25
> > rem if "x%GRASS_PYTHON%" == "x" set GRASS_PYTHON=python
> > 
> > is that correct?
> > 
> > 
> > I tried at this step to start GRASS but it doesn't work
> > anymore. Nothing is started!! So it seems that this isn't
> > working! Maybe I have to set the path to python.org in the
> > env.bat, but I don't know how the lines should look like.
> 
> For the GUI, setting e.g.:
> 
>       set GRASS_PYTHON=c:\Program Files (x86)\Python27\pythonw.exe
> 
> should suffice.

So what I tried now were three different settings in the env.bat

1)
rem Path to the python directory
set PYTHONHOME=%GISBASE%\Python25
rem if "x%GRASS_PYTHON%" == "x" set GRASS_PYTHON=python
set GRASS_PYTHON=C:\Program Files (x86)\Python27\pythonw.exe

in this case: GRASS is starting using the Python25

2)
rem Path to the python directory
rem set PYTHONHOME=%GISBASE%\Python25
rem if "x%GRASS_PYTHON%" == "x" set GRASS_PYTHON=python
set GRASS_PYTHON=C:\Program Files (x86)\Python27\pythonw.exe

in this case: Nothing is started!

3)
rem Path to the python directory
rem set PYTHONHOME=%GISBASE%\Python25
rem if "x%GRASS_PYTHON%" == "x" set GRASS_PYTHON=python
set C:\Program Files (x86)\Python27
set GRASS_PYTHON=C:\Program Files (x86)\Python27\pythonw.exe

in this case: Nothing is started!


Just to inform you why I need that: I wrote a .py script (including g.parser 
elements) which I want to call inside GRASS with "file.py" (like any other 
modules e.g. r.fuzzy etc.) The script is working (tested on my Mac using GRASS 
in combination with Python 2.7)! The script calls scipy which can only be used 
in combination with Python 2.6 or newer (so far as I remember).


So hopefully this issue can be solved as soon as possible as I want to use the 
script also on my windows-office computer!!

Thank you
Johannes






> 
> If you want to run Python scripts from bash, you may run into problems
> if there are any spaces in any of the directories. Using an 8.3
> filename may work, e.g.:
> 
>       export PATH=$PATH:/c/PROGRA~2/Python27/pythonw.exe
> 
> Running Python scripts from cmd.exe should use the file association
> for the .py extension.
> 
> -- 
> Glynn Clements <gl...@gclements.plus.com>
> _______________________________________________
> grass-user mailing list
> grass-u...@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user

-- 
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!              
Jetzt informieren: http://www.gmx.net/de/go/freephone


------------------------------

_______________________________________________
grass-windows mailing list
grass-windows@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-windows


End of grass-windows Digest, Vol 59, Issue 5
********************************************

Reply via email to