<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 16, 2016 at 12:30 PM, Carlos Grohmann <span dir="ltr"><<a href="mailto:carlos.grohmann@gmail.com" target="_blank">carlos.grohmann@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>3 - This line was giving me errors:</div><div><div>    if platform.system() == "Darwin":</div><div>        cmd = ["arch", "-i386", "gdalwarp", "-t_srs", proj, srcfile, tempfile ]</div></div><div><br></div><div>arch: posix_spawnp: gdalwarp: Bad CPU type in executable<br></div><div><br></div><div><br></div><div>This is probably because I run OSC El Cap, which is 64bits. So to get it working, I had to ignore this system test and use </div><div><br></div><div>cmd = ["gdalwarp", "-t_srs", proj, srcfile, tempfile ]<br></div><div><br></div><div>Nut I'm not sure what would be the best way to keep the test and maintain compatibility with older systems. Perhaps a try/except would do.</div></blockquote></div><br></div><div class="gmail_extra">Try/except sounds like a good solution which is also Pythonic. I think you should keep if statement there (inside the except).<br><br></div><div class="gmail_extra">Here is the history of the file [1, 2]. Perhaps Michael can comment on whether this check makes even sense now. It is a distribution issue, so if we can avoid solving it in the source code, it will be good.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Vaclav<br></div><div class="gmail_extra"><br>[1] <a href="https://trac.osgeo.org/grass/browser/grass/trunk/scripts/r.in.aster/r.in.aster.py?annotate=blame">https://trac.osgeo.org/grass/browser/grass/trunk/scripts/r.in.aster/r.in.aster.py?annotate=blame</a><br>[2] <a href="https://trac.osgeo.org/grass/changeset/32178">https://trac.osgeo.org/grass/changeset/32178</a><br></div></div>