Add git as a prerequisite for install
Closed this issue · 3 comments
guilhermerochas commented
I was on a fresh install trying to use and I run into the following error:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/git/__init__.py", line 83, in <module>
refresh()
File "/usr/local/lib/python3.7/dist-packages/git/__init__.py", line 73, in refresh
if not Git.refresh(path=path):
File "/usr/local/lib/python3.7/dist-packages/git/cmd.py", line 278, in refresh
raise ImportError(err)
ImportError: Bad git executable.
The git executable must be specified in one of the following ways:
- be included in your $PATH
- be set via $GIT_PYTHON_GIT_EXECUTABLE
- explicitly set via git.refresh()
All git commands will error until this is rectified.
This initial warning can be silenced or aggravated in the future by setting the
$GIT_PYTHON_REFRESH environment variable. Use one of the following values:
- quiet|q|silence|s|none|n|0: for no warning or exception
- warn|w|warning|1: for a printed warning
- error|e|raise|r|2: for a raised exception
Example:
export GIT_PYTHON_REFRESH=quiet
the problem went away when I installed git, so I would recommend you to add on your website for better documentation
akashnag commented
Were you trying to build from source? If so, you will need to install git first, as mentioned in the README (Installing ash > Build from source and install)
guilhermerochas commented
I was installing it through pip3 so I didn't had to use git, but when I tried edit a file this error came up
akashnag commented
Thanks for pointing this out! Have updated the docs & website. Closing this issue.