<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
So I am now completely baffled as to why GRASS is not working on my colleague's computer. it is a pretty new MacBook (last 6 months) and he has not installed much on it--Office, Mendeley. It is running the most current version of Lion (10.7.4).
<div><br>
</div>
<div>There are repeated problems with locale on it. Here is an example that works fine on my computer also running Lion.</div>
<div><br>
</div>
<div><span class="Apple-style-span" style="font-family: monospace; ">import locale</span><span class="Apple-style-span" style="font-family: monospace; "><br>
</span>
<blockquote type="cite" style="font-family: monospace; ">
<blockquote type="cite">
<blockquote type="cite">locale.getdefaultlocale()<br>
</blockquote>
</blockquote>
</blockquote>
<span class="Apple-style-span" style="font-family: monospace; ">Traceback (most recent call last):</span><span class="Apple-style-span" style="font-family: monospace; "><br>
</span><span class="Apple-style-span" style="font-family: monospace; "> File "<stdin>", line 1, in <module></span><span class="Apple-style-span" style="font-family: monospace; "><br>
</span><span class="Apple-style-span" style="font-family: monospace; "> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 496, in getdefaultlocale</span><span class="Apple-style-span" style="font-family: monospace; "><br>
</span><span class="Apple-style-span" style="font-family: monospace; "> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 428, in _parse_localename</span><span class="Apple-style-span" style="font-family: monospace; "><br>
</span><span class="Apple-style-span" style="font-family: monospace; ">ValueError: unknown locale: UTF-8</span></div>
<div><font class="Apple-style-span" face="monospace"><br>
</font></div>
<div><font class="Apple-style-span" face="monospace">I don't know where it is getting UTF-8. The GUI code in GRASS calls the language en_ES.UTF-8, but this is running Python outside of GRASS. I've tried setting locale to es_EN, and to C. But we still get this
 error when locale.getdefaultlocale() is run in wx GUI.</font></div>
<div><font class="Apple-style-span" face="monospace"><br>
</font></div>
<div><font class="Apple-style-span" face="monospace">Any ideas?????</font></div>
<div><font class="Apple-style-span" face="monospace"><br>
</font></div>
<div><font class="Apple-style-span" face="monospace">Michael<br>
</font>
<div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; 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; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; 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; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>
<div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; 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; "><span class="Apple-style-span" style="font-size: 12px; ">_____________________</span><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; 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; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; 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; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; 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; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>
<div style="font-size: 12px; ">C. Michael Barton</div>
<div style="font-size: 12px; ">Visiting Scientist, Integrated Science Program</div>
<div style="font-size: 12px; ">National Center for Atmospheric Research &</div>
<div style="font-size: 12px; ">University Consortium for Atmospheric Research</div>
<div style="font-size: 12px; ">303-497-2889 (voice)</div>
<div style="font-size: 12px; "><br>
</div>
<div style="font-size: 12px; ">Director, Center for Social Dynamics & Complexity </div>
<div style="font-size: 12px; ">Professor of Anthropology, School of Human Evolution & Social Change</div>
<div style="font-size: 12px; ">Arizona State University</div>
<div style="font-size: 12px; ">www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a>, <a href="http://csdc.asu.edu/">http://csdc.asu.edu</a></div>
</div>
<div><br>
</div>
</div>
</span></div>
</span></div>
</span></span></div>
</div>
<div><br>
</div>
</div>
</span><br class="Apple-interchange-newline">
</span><br class="Apple-interchange-newline">
</div>
<br>
</div>
</body>
</html>