DontShaveTheYak / cf2tf

Convert Cloudformation templates to Terraform.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Script fails to execute

rajashekar1410 opened this issue · comments

Traceback (most recent call last):
File "C:\Program Files\Python310\lib\site-packages\git_init_.py", line 89, in
refresh()
File "C:\Program Files\Python310\lib\site-packages\git_init_.py", line 76, in refresh
if not Git.refresh(path=path):
File "C:\Program Files\Python310\lib\site-packages\git\cmd.py", line 389, in refresh
raise ImportError(err)
ImportError: Bad git executable.
The git executable must be specified in one of the following ways:
- be included in your $PATH
- be set via $GIT_PYTHON_GIT_EXECUTABLE
- explicitly set via git.refresh()

All git commands will error until this is rectified.

commented

@rajashekar1410 sorry I missed this. This issue is a duplicate of #29. So I will close this one. That issue has some steps to help you fix this. Unfortunately, the temp file is created in a random directory, so you have to run a python command to find it. I will try to make the directory a known place so its easier to fix this.

I will also look for a more permanent fix in the future. Thanks for opening the issue =)