When I tried to run Python script from the Shebang menu I got the following message:
"usr/bin/python: No such file or directory" I supposed BBEdit had tried to find Python executable in "usr/bin/python" directory. I spent couple of hours trying to find out what's wrong with my environment variables, but couldn't get a clue until I specifically put the following line in the beginning of my Python script: "#!/usr/bin/python" And it worked. It seems there's an issue with determining default Python location without stating it explicitly in the script. I have three versions of Python coexisting on my machine and the environment variables seems to be OK. The BBEdit's User Manual has the following on configuring Python for use with BBEdit: "BBEdit expects to find Python in /usr/bin, /usr/local/bin, or /sw/bin. If you have installed Python elsewhere, you must create a symbolic link in /usr/local/bin pointing to your copy of Python in order to use pydoc and the Python debugger." However, it seems like BBEdit 10.5 forgets about the 'root' and tries to look in 'usr/bin' or 'usr/local/bin'. It may not be true, but I just spent several hours surfing the net trying to find the solution until I put the hash bang line into the script file that specified explicitly the location of Python executable. The issue surfaced after updating to 10.5. The prior version worked fine without the #! line in the script. -- -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
