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: compiling WINGrass Python Scripts - ExpatError
      (Glynn Clements)
   2. Re: compiling WINGrass Python Scripts - ExpatError
      (Johannes Radinger)


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

Message: 1
Date: Wed, 7 Dec 2011 21:23:13 +0000
From: Glynn Clements <gl...@gclements.plus.com>
Subject: Re: [GRASS-windows] compiling WINGrass Python Scripts -
        ExpatError
To: Johannes Radinger <jradin...@gmx.at>
Cc: grass-...@lists.osgeo.org, grass-windows@lists.osgeo.org
Message-ID: <20191.55617.334829.441...@cerise.gclements.plus.com>
Content-Type: text/plain; charset=us-ascii


Johannes Radinger wrote:

> I tried to run the script now manually with --help
> from the command line. For simplicicity I only tried
> v.krige.py, a python script that already comes with
> the GRASS 6.5 SVN install.

v.krige.py isn't a normal Python script; it has its own GUI.

> I also tried to run my own script without the .py ending and with --help:
> '''''''''''''''''''''''''''''''''''''''
> pythontest_l --help
> Traceback (most recent call last):
>    File "C:\OSGeo4W\apps\grass\grass-6.5.svn\scripts\pythonte
> st_l.py", line 42, in <module>
>      import grass.script as grass
> ImportError: No module named grass.script
> '''''''''''''''''''''''''''''''''''''''

You need:

        set PYTHONPATH=%GISBASE%\etc\python;%PYTHONPATH%

7.0 does this automatically, but 6.x doesn't.

> What is the normal way to run a python script in windows, with or 
> without the .py ending?

I don't know. GRASS 6.x, Windows, and Python isn't a particularly
well-tested combination.

-- 
Glynn Clements <gl...@gclements.plus.com>


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

Message: 2
Date: Thu, 08 Dec 2011 13:03:36 +0100
From: "Johannes Radinger" <jradin...@gmx.at>
Subject: Re: [GRASS-windows] compiling WINGrass Python Scripts -
        ExpatError
To: Glynn Clements <gl...@gclements.plus.com>
Cc: grass-...@lists.osgeo.org, grass-windows@lists.osgeo.org
Message-ID: <20111208120336.297...@gmx.net>
Content-Type: text/plain; charset="utf-8"

Hi,

-------- Original-Nachricht --------
> Datum: Wed, 7 Dec 2011 21:23:13 +0000
> Von: Glynn Clements <gl...@gclements.plus.com>
> An: Johannes Radinger <jradin...@gmx.at>
> CC: grass-...@lists.osgeo.org, grass-windows@lists.osgeo.org
> Betreff: Re: [GRASS-windows] compiling WINGrass Python Scripts - ExpatError

> 
> Johannes Radinger wrote:
> 
> > I tried to run the script now manually with --help
> > from the command line. For simplicicity I only tried
> > v.krige.py, a python script that already comes with
> > the GRASS 6.5 SVN install.
> 
> v.krige.py isn't a normal Python script; it has its own GUI.

I just meant that it comes already with GRASS so that I can be sure
that the source of the error is not my own script!

> 
> > I also tried to run my own script without the .py ending and with
> --help:
> > '''''''''''''''''''''''''''''''''''''''
> > pythontest_l --help
> > Traceback (most recent call last):
> >    File "C:\OSGeo4W\apps\grass\grass-6.5.svn\scripts\pythonte
> > st_l.py", line 42, in <module>
> >      import grass.script as grass
> > ImportError: No module named grass.script
> > '''''''''''''''''''''''''''''''''''''''
> 
> You need:
> 
>       set PYTHONPATH=%GISBASE%\etc\python;%PYTHONPATH%
> 
> 7.0 does this automatically, but 6.x doesn't.

Where do I have to set this permanently in Windows? Do I have modify a certain 
file? I'd need to use also my system python (2.6) and its modules within the 
script - will there be conflict?

Although the combination GRASS 6.x, Windows and Python isn't well tested I want 
to give it a try - as a tester....:)

/johannes

> 
> > What is the normal way to run a python script in windows, with or 
> > without the .py ending?
> 
> I don't know. GRASS 6.x, Windows, and Python isn't a particularly
> well-tested combination.
> 
> -- 
> Glynn Clements <gl...@gclements.plus.com>


-- 
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 62, Issue 3
********************************************

Reply via email to