Re: [GRASS-user] Problem with Python Scripts and grass.script (GRASS 6.5SVN) on Mac

2011-04-04 Thread Michael Barton
tor works fine...its just a pyhton-script problem. >> >> what should I do next? >> >> /johannes >> >> ---- Original-Nachricht ---- >>> Datum: Mon, 04 Apr 2011 11:34:54 +0200 >>> Von: "Johannes Radinger" >>> An: Mich

Re: [GRASS-user] Problem with Python Scripts and grass.script (GRASS 6.5SVN) on Mac

2011-04-04 Thread Johannes Radinger
t; Original-Nachricht > > Datum: Mon, 04 Apr 2011 11:34:54 +0200 > > Von: "Johannes Radinger" > > An: Michael Barton > > CC: grass-user@lists.osgeo.org > > Betreff: Re: [GRASS-user] Problem with Python Scripts and > grass.script (GRASS 6.5S

Re: [GRASS-user] Problem with Python Scripts and grass.script (GRASS 6.5SVN) on Mac

2011-04-04 Thread Johannes Radinger
lists.osgeo.org > Betreff: Re: [GRASS-user] Problem with Python Scripts and grass.script > (GRASS 6.5SVN) on Mac > Hello again, > > as recommended I removed the python.org-python (and removed the lines to > python.framework in the PATH. > When I now start python it is

Re: [GRASS-user] Problem with Python Scripts and grass.script (GRASS 6.5SVN) on Mac

2011-04-04 Thread Johannes Radinger
/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin So maybe the sys.path is a hint for my problem... /johannes Original-Nachricht > Datum: Sun, 3 Apr 2011 15:27:41 -0700 > Von: Michael Barton > An: Johannes Radinger > CC: "

Re: [GRASS-user] Problem with Python Scripts and grass.script (GRASS 6.5SVN) on Mac

2011-04-03 Thread Michael Barton
When I and others have had a copy of Python from python.org installed, it has usually caused problems, including bogus errors. I strongly advise against it. In theory, it should not be a problem, but in reality (in my experience) it IS a problem. I can't say for sure that thi

Re: [GRASS-user] Problem with Python Scripts and grass.script (GRASS 6.5SVN) on Mac

2011-04-03 Thread Johannes Radinger
Hello Glynn, Hello Michael, the answers to your suggestions/questions below: Am 02.04.2011 um 17:24 schrieb Michael Barton: > Have you installed Python from python.org on your Mac? If you have, there may > be a problem with that. Yes I there is python2.6.6 from python.org installed but Willia

Re: [GRASS-user] Problem with Python Scripts and grass.script (GRASS 6.5SVN) on Mac

2011-04-02 Thread Glynn Clements
Johannes Radinger wrote: > I tried to figure out the problem with william kyngesburye. > the script is also working on his mac. I saved the script in the bin > folder and ran in the GRASS terminal: > AttributeError: 'module' object has no attribute 'mapcalc' > > > What causes this AttributeErr

Re: [GRASS-user] Problem with Python Scripts and grass.script (GRASS 6.5SVN) on Mac

2011-04-02 Thread Michael Barton
Have you installed Python from python.org on your Mac? If you have, there may be a problem with that. Michael C. Michael Barton Director, Center for Social Dynamics & Complexity Professor of Anthropology, School of Human Evolution & Social Change Arizona State University vo

Re: [GRASS-user] Problem with Python Scripts and grass.script (GRASS 6.5SVN) on Mac

2011-04-01 Thread Johannes Radinger
Hello again, I tried to figure out the problem with william kyngesburye. the script is also working on his mac. I saved the script in the bin folder and ran in the GRASS terminal: GRASS 6.5.svn (gisdemo_ncspm):~ > testscript.py newmap=test elevation=elevation.10m geology=geology Traceback (most

Re: [GRASS-user] Problem with Python Scripts and grass.script (GRASS 6.5SVN) on Mac

2011-04-01 Thread Glynn Clements
Johannes Radinger wrote: > strange that this script isn't working on my mac... > ..does it produce an outputmap on linux? Yes. > what can be the reason why I don't get an output > on my mac with current 6.5? I don't know. -- Glynn Clements ___ gra

Re: [GRASS-user] Problem with Python Scripts and grass.script (GRASS 6.5SVN) on Mac

2011-04-01 Thread Johannes Radinger
Thank you for your answer... strange that this script isn't working on my mac... ..does it produce an outputmap on linux? what can be the reason why I don't get an output on my mac with current 6.5? /johannes Am 30.03.2011 um 19:22 schrieb Glynn Clements: > > Johannes Radinger wrote: > >> Th

Re: [GRASS-user] Problem with Python Scripts and grass.script (GRASS 6.5SVN) on Mac

2011-03-30 Thread Glynn Clements
Johannes Radinger wrote: > The script I am trying is the simpliest form of a script calling just one > function of GRASS (e.g. mapcalc or r.thin), > > attached you can find that script which can be applied e.g. on the spearfish > rasterdataset...and in my opinion it is correct and in the correct

Re: [GRASS-user] Problem with Python Scripts and grass.script (GRASS 6.5SVN) on Mac

2011-03-29 Thread Johannes Radinger
(input 2) >> >> if I leave the debugging code out, the interactive menu pops up and I can >> set the parameters, but nothing is afterwards processed. >> >> what am I doing wrong? >> >> /johannes >> >> >> Original-Nachricht >&

Re: [GRASS-user] Problem with Python Scripts and grass.script (GRASS 6.5SVN) on Mac

2011-03-29 Thread Johannes Radinger
oing wrong? /johannes Original-Nachricht > Datum: Tue, 29 Mar 2011 07:40:28 -0700 > Von: Michael Barton > An: grass-user grass-user , Johannes Radinger > > Betreff: [GRASS-user] Problem with Python Scripts and grass.script (GRASS > 6.5SVN) on Mac > Hi Joha

[GRASS-user] Problem with Python Scripts and grass.script (GRASS 6.5SVN) on Mac

2011-03-29 Thread Michael Barton
mbarton, http://csdc.asu.edu On Mar 29, 2011, at 3:25 AM, wrote: > Date: Tue, 29 Mar 2011 11:11:12 +0200 > From: "Johannes Radinger" > Subject: [GRASS-user] Problem with Python Scripts and grass.script > (GRASS 6.5SVN) on Mac > To: grass-user@lists.osgeo.org &g

[GRASS-user] Problem with Python Scripts and grass.script (GRASS 6.5SVN) on Mac

2011-03-29 Thread Johannes Radinger
Hello Grass users! I am working with GRASS 6.5 SVN (r45714, last weeks source) and try to run Python Scripts. After I solved the problem with the line endings, GRASS seems to be able to read my scripts (via launch script...). At least the interactive interface pops up correctly (it seems g.pars