kynan/nbstripout

Setting up the git filter using `.gitattributes` gives `Installation failed: git is not on path!` error

Closed this issue · 5 comments

Attempting to install with:

nbstripout --install --attributes .gitattributes

gives the following error:

Installation failed: git is not on path!

even though git is installed and is functioning fine.

kynan commented

Which version of nbstripout are you using? Which platform?

gunar commented

Same here.

Linux zeno 5.4.123-1-MANJARO
git version 2.31.1
nbstripout==0.4.0

gunar commented

Btw, I'm using pipenv. Not working with pipenv run nbstripout --install … nor pipenv shell

I'm using a conda environment on macOS 11.4
git version 2.32.0
nbstripout==0.4.0

kynan commented

Thanks for reporting, I can reproduce the issue. I'll release a fix in 0.5.0. Meanwhile, as a workaround please use

nbstripout --install --attributes $PWD/.gitattributes