colour-science / colour-demosaicing

CFA (Colour Filter Array) demosaicing algorithms for Python
https://www.colour-science.org
BSD 3-Clause "New" or "Revised" License
285 stars 58 forks source link

Git fatal message upon import. #12

Closed jewfro-cuban closed 5 years ago

jewfro-cuban commented 5 years ago

Getting the following message upon importing:

fatal: Not a git repository (or any of the parent directories): .git

Started ~ a month ago.

KelSolaar commented 5 years ago

@jewfro-cuban : Thanks! This is hopefully not affecting the package or import itself as all the exceptions are caught where this happens. I will swallow the error message though as they are annoying and should not happen.

KelSolaar commented 5 years ago

So for the time being, if it bothers you and until I release a new version you can replace this line:

        ['git', 'describe'], cwd=os.path.dirname(__file__)).strip()

to

        ['git', 'describe'], cwd=os.path.dirname(__file__), stderr=subprocess.STDOUT).strip()

It should swallow any error in that block.

jewfro-cuban commented 5 years ago

Great, Thanks.