i got "hg status' failed with code 127:'env: python: No such file or directory '" message when starting source tree

i delete default python installation from mountain lion and install python 2.3 via brew.But i can't use sourcetree again.python seems work ok with command line.

Edit:i mistyped 2.3 here i actually install 2.7.3 via brew but it's okay.i fix this problem via removing PATH variable from .bash_profile. (PATH=${PATH}:/usr/local/share/python)

1 answer

1 accepted

Why did you delete the default install? You can have more than one version of Python installed and switch between them with environment variables / aliases.

We do not support Python 2.3, it's far too old. Python 2.6 is the minimum we've tested with (this came with Snow Leopard), Mountain Lion (and Lion) comes with 2.7.

Mac OS X GUI apps do not inherit your terminal configuration, that's why SourceTree can't see your custom Python - environment variables and the PATH are set completely differently (such as /etc/paths). But as I say, we wouldn't support using 2.3 anyway.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

729 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you