<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>Hello Glynn,</div><div>Hello Michael,</div><div><br></div><div>the answers to your suggestions/questions below:</div><div><br></div><div><br></div><div><div>Am 02.04.2011 um 17:24 schrieb Michael Barton:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Have you installed Python from&nbsp;<a href="http://python.org/">python.org</a>&nbsp;on your Mac? If you have, there may be a problem with that.<br></span></blockquote><br><div>Yes I there is python2.6.6 from&nbsp;<a href="http://python.org/">python.org</a>&nbsp;installed but&nbsp;William Kyngesburye told me that this shouldn't be any</div><div>Problem and GRASS GIS can handle this, but I am not sure. Maybe I've to try to deinstall it, but I don't know how excatly so that everything is removed correctly also in the libs.</div><div><br></div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><br>Michael<br>____________________<br>C. Michael Barton<br>Director, Center for Social Dynamics &amp; Complexity&nbsp;<br>Professor of Anthropology, School of Human Evolution &amp; Social Change<br>Arizona State University<br><br>voice:&nbsp;<span class="Apple-tab-span" style="white-space: pre; ">        </span>480-965-6262 (SHESC), 480-727-9746 (CSDC)<br>fax: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;480-965-7671 (SHESC), &nbsp;480-727-0709 (CSDC)<br>www:&nbsp;<a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a>,&nbsp;<a href="http://csdc.asu.edu/">http://csdc.asu.ed</a></span></blockquote><div><br></div></div>Am 03.04.2011 um 00:37 schrieb Glynn Clements:<br class="Apple-interchange-newline"><blockquote type="cite"><div><br>Johannes Radinger wrote:<br><br><blockquote type="cite">I tried to figure out the problem with william kyngesburye.<br></blockquote><blockquote type="cite">the script is also working on his mac. I saved the script in the bin<br></blockquote><blockquote type="cite">folder and ran in the GRASS terminal:<br></blockquote><br><blockquote type="cite">AttributeError: 'module' object has no attribute 'mapcalc'<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">What causes this AttributeError?<br></blockquote><br>The grass.script module is either broken or very old (the mapcalc()<br></div></blockquote><div>The GRASS build I've got is compiled from last weeks source (6.5)...</div><br><blockquote type="cite"><div>function was added in December 2008).<br><br>From within GRASS, try the following:<br><br><span class="Apple-tab-span" style="white-space: pre; ">        </span>$ python<br><span class="Apple-tab-span" style="white-space: pre; ">        </span>&gt; import grass.script as grass<br><span class="Apple-tab-span" style="white-space: pre; ">        </span>&gt; print grass.__file__<br></div></blockquote>that is what I get... does that help you?</div><div><br><div>/Applications/GRASS-6.5.app/Contents/MacOS/etc/python/grass/script/__init__.pyc</div><br><blockquote type="cite"><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>&gt; print grass.__path__<br></div></blockquote>and for the path:<br><div><div>['/Applications/GRASS-6.5.app/Contents/MacOS/etc/python/grass/script']</div><div><br></div><div><br></div><div>/johannes</div><div><br></div></div><br><blockquote type="cite"><div><br>--&nbsp;<br>Glynn Clements &lt;<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>&gt;<br></div></blockquote></div><div><div><br></div></div></body></html>