Re: [GRASS-user] Grass 6.4 & python.

2009-04-29 Thread Milton Cezar Ribeiro
Hi Colin I will give a look on all these tips. Thanks a lot. milton 2009/4/29 Colin Nielsen > Hi Milton, > This is a common error I have come across, and shouldn't be a problem > with your Python installation. It is just a question of getting > PYTHONPATH and possibly PYTHONHOME (Which needs

Re: [GRASS-user] Grass 6.4 & python.

2009-04-29 Thread Colin Nielsen
Hi Milton, This is a common error I have come across, and shouldn't be a problem with your Python installation. It is just a question of getting PYTHONPATH and possibly PYTHONHOME (Which needs to be in a windows path format) into the right format. For example, the following has been added to the n

Re: [GRASS-user] Grass 6.4 & python.

2009-04-29 Thread Milton Cezar Ribeiro
oops again: " But if I go to a DOS windows (using cmd)" 2009/4/29 Milton Cezar Ribeiro > Hi Glym, > > But if you go to a DOS windows (using cmd) > type python (it starts python 2.6) > and try import sys, it works fine on text/DOS mode? > By the way, the pythopath was included as windows environ

Re: [GRASS-user] Grass 6.4 & python.

2009-04-29 Thread Milton Cezar Ribeiro
Hi Glym, But if you go to a DOS windows (using cmd) type python (it starts python 2.6) and try import sys, it works fine on text/DOS mode? By the way, the pythopath was included as windows environment variable. Any suggestion? miltinho 2009/4/29 Glynn Clements > > Milton Cezar Ribeiro wrote: >

Re: [GRASS-user] Grass 6.4 & python.

2009-04-29 Thread Glynn Clements
Milton Cezar Ribeiro wrote: > Thanks for the reply. I have tryed on two ways, both not work for me (under > windows vista). > 'import site' failed; use -v for traceback Traceback (most recent call last): > File "c:/OSGeo4W/apps/grass/grass-6.5.svn/etc/wxpython/gis_set.py", line > 23, in >

Re: [GRASS-user] Grass 6.4 & python.

2009-04-29 Thread Milton Cezar Ribeiro
oops I typed "grass -mx" on email instead of "grass -wx". Sorry. 2009/4/29 Milton Cezar Ribeiro > Hi Glym, > > Thanks for the reply. I have tryed on two ways, both not work for me (under > windows vista). > 1) start msys; start grass without -mx ; and try to start python from > inside grass se

Re: [GRASS-user] Grass 6.4 & python.

2009-04-29 Thread Milton Cezar Ribeiro
Hi Glym, Thanks for the reply. I have tryed on two ways, both not work for me (under windows vista). 1) start msys; start grass without -mx ; and try to start python from inside grass sesssion. The python keep stoped (no error message, but stay with only "python" words on the console) 2) start ms

Re: [GRASS-user] Grass 6.4 & python.

2009-04-29 Thread Glynn Clements
Milton Cezar Ribeiro wrote: > I started grass under Msys and with the flag -wx. > My difficult now I how can I get starting, with a simple example, like > these on the grass-python page: > My question is how can I make python find the "grass" to run the import. > I need to start python inside a

Re: [GRASS-user] Grass 6.4 & python.

2009-04-28 Thread Milton Cezar Ribeiro
Thanks Jhon, I started grass under Msys and with the flag -wx. My difficult now I how can I get starting, with a simple example, like these on the grass-python page: import sys import grass def main(): drape_map = options['drapemap'] relief_map = options['reliefmap'] brighten = option

RE: [GRASS-user] Grass 6.4 & python.

2009-04-28 Thread Jhon Ortiz
>I know that the grass 7 will works with python. >But can I play with grass 6.4 (under Msys) and python? Yes!! you can see about that in http://grass.osgeo.org/grass64/manuals/html64_user/wxGUI.html >Case yes, could you send me some tips how >can I do this? just type in your terminal grass