<div dir="ltr">Hi,<br><br><div class="gmail_extra"><br><div class="gmail_quote">On 26 March 2013 16:54, Hugo Arts <span dir="ltr"><<a href="mailto:hugo.yoshi@gmail.com" target="_blank">hugo.yoshi@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 dir="ltr"><div><div class="h5">On Tue, Mar 26, 2013 at 3:18 PM, Sean Carolan <span dir="ltr"><<a href="mailto:scarolan@gmail.com" target="_blank">scarolan@gmail.com</a>></span> wrote:<br>
</div></div><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">

<div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Could it be that it is taking the system python executable which is<br>
probably 2.4?<br>
<span><font color="#888888"><br>
-Amit.</font></span></blockquote><div><br></div></div><div>I've tried it with python24, python25 and python27 and all of them give the same error. </div></div></div></div></blockquote></div></div><div><br></div><div>
<font face="arial, sans-serif">The easiest workaround I can think of is a temporary alias, i.e.:</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">$ alias python="python27" && python <a href="http://setup.by" target="_blank">setup.by</a> bdist_rpm && unalias python</font></div>


<div><br></div><div><font face="arial, sans-serif">Or some variation of such. The more permanent fix is to change the bash script that setup.py generates so it's less naive about having the right system python installed, *or* upgrading the system python version.</font></div>
</div></div></div></blockquote><div><br></div><div>Sean you might also look into virtualenv.  I suspect a suitably setup virtualenv will also avoid your problem, but is obviously more work than what Hugo's suggested.  See for example this question on stackoverflow: <a href="http://stackoverflow.com/questions/1534210/use-different-python-version-with-virtualenv">http://stackoverflow.com/questions/1534210/use-different-python-version-with-virtualenv</a><br>
<br><br>Walter<br></div><div><br> </div></div></div></div>