git-ftp
git-ftp copied to clipboard
Makefile python error
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?