<div class="gmail_quote">On Fri, Sep 25, 2009 at 11:32 AM, David Eric <span dir="ltr">&lt;<a href="mailto:ciik13@gmail.com">ciik13@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<span class="Apple-style-span" style="font-family: &#39;courier new&#39;; border-collapse: collapse; ">ok this is really weird . . . <br>i tried running the helloworld again, and it doesnt work :/<br><br>DTm:~ davidteboul$ echo $PATH<br>

PATH$/Library/Frameworks/<div>Python.framework/Versions/3.1/bin:/Library/Frameworks/Python.framework/Versions/3.0/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin/Users/davidteboul/bin/pythonStuff<br>

DTm:~ davidteboul$ helloworld<br></div></span><div><span class="Apple-style-span" style="font-family: &#39;courier new&#39;; border-collapse: collapse; ">-bash: helloworld: command not found<span class="Apple-style-span" style="border-collapse: separate; font-family: arial; "> </span></span></div>

</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>i checked and helloworld is definitely in ~/bin/pythonStuff<br>what happened?<br><br>btw...when  i switch to ~/bin/pythonStuff and type helloworld..that doesnt run it either?<br>


i can run it when i type python<br>it worked prior, im confused<br></div></blockquote></div><br>Do you know if it has executable permissions? The easiest way to set them is chmod +x helloworld.py (or whatever the filename is)<div>

<br></div><div>You also need the &quot;shebang&quot; line at the top:</div><div><br></div><div>#!/usr/bin/env python</div><div><br></div><div>is one of the variations.</div><div><br></div><div>HTH,</div><div>Wayne</div><div>

<div>(included the list in reply... Hit reply-all when replying to list)</div><div><br clear="all"><br>-- <br>To be considered stupid and to be told so is more painful than being called gluttonous, mendacious, violent, lascivious, lazy, cowardly: every weakness, every vice, has found its defenders, its rhetoric, its ennoblement and exaltation, but stupidity hasn’t. - Primo Levi<br>


</div></div>