kynan / nbstripout

strip output from Jupyter and IPython notebooks
Other
1.19k stars 94 forks source link

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

Closed devmcp closed 3 years ago

devmcp commented 3 years ago

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 3 years ago

Which version of nbstripout are you using? Which platform?

gunar commented 3 years ago

Same here.

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

gunar commented 3 years ago

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

devmcp commented 3 years ago

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

kynan commented 3 years ago

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