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

0 votes
Accepted answer

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
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

710 views 3 2
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