I can not package a scirpt using gitpython module. The environment is python 2.7(and 3.6) on windows. should give you the following error. I've tried using debug=1 ...
This is exactly what GitPython should do under the hood. If it doesn't work on the command-line either, there might some problem unrelated to GitPython. If it works on the command-line, you might try ...