Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Weird git errors appeared #1166

Closed
JackHarley opened this Issue Jun 14, 2012 · 16 comments

Comments

Projects
None yet

These weird git errors have appeared today whenever I launch Terminal (ZSH)

git_compare_version:4: command not found: git
git_prompt_ahead:1: command not found: current_branch

Never happened before so I'm not sure what's going on...

+1 I'm having this issue as well. I'm running OS X Mountain Lion (10.8). It started happening when I upgraded to 10.8. I'm using git for other projects so I know git itself is working. I just did a manual git pull to get the latest at 5:38 pm EST on 6/15 and the issue is still there.

I'm on Mountain Lion too. This only started happening after I upgraded to Developer Preview 4. It worked fine on DP3.

mcav commented Jun 26, 2012

Same here (ML DP4). "git_compare_version:4 : command not found: git" upon a new shell.

SxDx commented Jul 19, 2012

Problem still there on Mountain Lion GM (12A269).

Im having the same issue. Mountain Lion downloaded from the app store this morning.

I also get this after just downloading Mountain Lion from the App Store.
Here's the full error message:
git_compare_version:4 : command not found: git
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named virtualenvwrapper.hook_loader
virtualenvwrapper.sh: There was a problem running the initialization hooks. If Python could not import the module virtualenvwrapper.hook_loader, check that virtualenv has been installed for VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is set properly.

Same error here. I'm using Mountain Lion.

bijanv commented Jul 25, 2012

Adding to the Mountain Lion issue...

bijanv commented Jul 25, 2012

So I installed the latest Xcode along with the Xcode command line tools (and all other updates that Mountain Lion needed to do), restarted my computer and launched oh-my-zsh again and it's all back to normal!

I can confirm that this seemed to fix my issue as well. Thanks for the tip!

Confirmed. Xcode 4.4 + Xcode Command Line Tools solves this problem

@arlobryer The 10.8 installer wipes out Python's package directory; if you're using virtualenv/virtualenvwrapper, you'll have to reinstall it (first, reinstall setuptools, then do sudo easy_install virtualenv virtualenvwrapper to reinstall virtualenv and restart your shell).

Yes, I fixed this by installing Command Line Tools in Xcode 4.4.

Hi Jonathon,
Thanks for this tip. It fixed the second problem which was of course unrelated to oh-my-zsh (although I already had easy_install apparently).
I confirm also that install command line tools in xcode4.4 fixes the oh-my-zsh related error on Mountain Lion.

On 26 Jul 2012, at 03:43, Jonathon Williams reply@reply.github.com wrote:

@arlobryer The 10.8 installer wipes out Python's package directory; if you're using virtualenv/virtualenvwrapper, you'll have to reinstall it (first, reinstall setuptools, then do sudo easy_install virtualenv virtualenvwrapper to reinstall virtualenv and restart your shell).


Reply to this email directly or view it on GitHub:
#1166 (comment)

Installing Xcode command line tools worked. That was weird.

This solution work for me as well. Thanks!

@qiulin qiulin referenced this issue Jun 18, 2015

Closed

git error #4059

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment