python - Why does gitpython on windows always get file not found errors? -


While searching for a tutorial for gitpython, and following the steps from the next step, there are some problems on my machine: i is a Windows 7 environment, And GIT version 1.7.11. MMS Sigma.1 with Python 2.7 Everything is fine with Easy_install, the repo object is created successfully, and commands like repo.tree () and repo.branches work if I have a repo. Is_dirty () If I do not find any non-specific files, errors are not found. WindowsError: [Error 2] The system can not find the file specified. Any ideas?

  path = "c: \\ path_to_repo" repo = repo (path) emphasis repo.bare == wrong print repo.tree () repo.branches print dir (repo) # it always crashes ... repo.is_dirty ()  

TIA for any help.

You have git.ext in your PATH , but it can easily be tested by executing itself if you see an error, you can add it to PATH , or GIT_PYTHON_GIT_EXECUTABLE can be executable for executables that git-python should be executed for git command line services.

It works for .tree () and related item question is that gitpython uses a pure-dragon backend for these functions .is_dirty More complicated operations like () still require git executable to be in your PATH by default.


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

c# - WPF Expander overlay used in ItemsControl -

class - Kivy: how to instantiate a dynamic classes in python -