Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile python error #72

Open
flungo opened this issue Jan 4, 2013 · 0 comments
Open

Makefile python error #72

flungo opened this issue Jan 4, 2013 · 0 comments

Comments

@flungo
Copy link

flungo commented Jan 4, 2013

Hi,

I had some problem when executing "sudo make install". The error I got was:

echo "from git import __version__\nfrom distutils.version import LooseVersion\nif LooseVersion(__version__) < '0.3.0':\n\traise ImportError('gitpython 0.3.x required.')" | python
  File "<stdin>", line 1
    from git import __version__\nfrom distutils.version import LooseVersion\nif LooseVersion(__version__) < '0.3.0':\n\traise ImportError('gitpython 0.3.x required.')
                                                                                                                                                                     ^
SyntaxError: unexpected character after line continuation character

I fixed this by creating a gitpython-check.py file with:

from git import __version__
from distutils.version import LooseVersion

if LooseVersion(__version__) < '0.3.0':
    raise ImportError('gitpython 0.3.x required.')

And replacing the line on the make file with:

python gitpython-check.py

Not sure if this was a bug, as issue with my machine or something I did wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant