You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I wrote a inline python script using the script task in bamboo. The job will be run on windows so the script has "#!python" as the first line so windows knows its a python script since there isn't an interpreter option.
The script task executes fine and runs all the inline script but outputs the error "Unable to find executable at python. Will try to run it anyway."
How do I get rid of the error?
Instead of having only "#!python", set the full path to the python.exe file like the following:
#!C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\python.exe
Definitely an option to get rid of the error. I was hoping to get an answer to why Bamboo can't resolve the python via system variables? This case relies on applications having the same install path.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
According to this documentation, this is how shebang works. Bamboo is just running the command in the machine so the error message is thrown by the machine.
As a test, try saving the commands in a file and run the file manually inside the Windows machine through the Command Prompt.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have same issue in Mac, added the full python path , '/usr/bin/python' still same issue exists
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.