<br><br><div class="gmail_quote">On Tue, Aug 25, 2009 at 7:25 AM, Diez B. Roggisch <span dir="ltr"><<a href="mailto:deets@nospam.web.de">deets@nospam.web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
> Hello to all!<br>
><br>
> I am struggling with a script in python for a while now, and decided<br>
> to look for some help. I am running a code that takes commands from<br>
> Marsyas(open source for Music analysis).<br>
><br>
> #!/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6<br>
> #!/bin/bashimport math<br>
<br>
</div>This is bogus. Replace it with<br>
<br>
#!/usr/bin/python<br>
<br>
and put the "import math" on the next line.<br> </blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><font color="#888888"><br>
Diez</font></blockquote></div><br>It's not bogus. That is perfectly legitimate for using the user-installed Python2.6 on OS X. /usr/bin/ is reserved for system programs on that platform so it will always point to the system python install, which is 2.5.1 on Leopard and 2.3.5 on Tiger. That being said, the #!/bin/bash line is what's screwing it up. <br>